Create a Comment
Creates a comment for the given Resource.
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.
Responses
-
The Comment that was just created.
-
Your current session does not have a user id associated with it. (code:
comments.no_user_id
) -
No Resource of the given type and id exist. (code:
comments.resource_does_not_exist
) -
A Comment already exists with the generated id. Please try again. (code:
comments.id_already_exists
)
POST
/comments/{resource_type}/{resource_id}
curl \
-X POST https://{{hostname}}/api/v1/comments/{resource_type}/{resource_id} \
-d '{"message":"string"}'
Request examples
{
"message": "string"
}
Response examples (201)
# 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.no_user_id
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (404)
# Headers
x-cloud-error-codes: comments.resource_does_not_exist
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (409)
# Headers
x-cloud-error-codes: comments.id_already_exists
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}