Spaces method and path for this operation:
post /s/{space_id}/api/tags
Refer to Spaces for more information.
Creates a new tag and returns it.
POST
/api/tags
curl \
--request POST 'https://localhost:5601/api/tags' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"color":"#F04E98","description":"Content related to security investigations.","name":"Security"}'
Request example
{
"color": "#F04E98",
"description": "Content related to security investigations.",
"name": "Security"
}
Response examples (201)
{
"data": {
"color": "#F04E98",
"description": "Content related to security investigations.",
"name": "Security"
},
"id": "tag-security",
"meta": {
"created_at": "2026-06-03T14:15:00.000Z",
"managed": false,
"updated_at": "2026-06-03T14:15:00.000Z",
"version": "WzMsMV0="
}
}