Path parameters
-
resource_type
string Required The kind of Resource that a Comment belongs to. Should be one of [elasticsearch, kibana, apm, appsearch, enterprise_search, integrations_server, allocator, constructor, runner, proxy].
-
resource_id
string Required Id of the Resource that a Comment belongs to.
-
comment_id
string Required Id of a Comment
Query parameters
-
version
string If specified then checks for conflicts against the version stored in the persistent store (returned in 'x-cloud-resource-version' of the GET request)
Responses
-
200 application/json
Comment updated successfully.
-
401 application/json
- The Comment does not belong to you. (code:
comments.unauthorised
) - Your current session does not have a user id associated with it. (code:
comments.no_user_id
)
- The Comment does not belong to you. (code:
-
404 application/json
The Comment you want does not exist. (code:
comments.comment_does_not_exist
) -
409 application/json
The version you sent does not match the persisted version. (code:
comments.version_conflict
)
PUT
/comments/{resource_type}/{resource_id}/{comment_id}
curl \
--request PUT 'https://{{hostname}}/api/v1/comments/{resource_type}/{resource_id}/{comment_id}' \
--user "username:password" \
--header "Content-Type: application/json" \
--data '{"message":"string"}'