Path parameters
-
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].
-
Id of the Resource that a Comment belongs to.
-
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
-
Comment updated successfully.
-
- 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:
-
The Comment you want does not exist. (code:
comments.comment_does_not_exist
) -
The version you sent does not match the persisted version. (code:
comments.version_conflict
)
PUT /comments/{resource_type}/{resource_id}/{comment_id}
curl \
-X PUT https://{{hostname}}/api/v1/comments/{resource_type}/{resource_id}/{comment_id} \
-d '{"message":"string"}'
Request examples
{
"message": "string"
}
Response examples (200)
# Headers
x-cloud-resource-version: string
x-cloud-resource-created: string
x-cloud-resource-last-modified: string
# Payload
{
"id": "string",
"user_id": "string",
"message": "string"
}
Response examples (401)
# Headers
x-cloud-error-codes: comments.unauthorised
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (404)
# Headers
x-cloud-error-codes: comments.comment_does_not_exist
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (409)
# Headers
x-cloud-error-codes: comments.version_conflict
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}