topics
Creates a topic
You need workspaces.topic.create permission to access this resource
post/workspaces/{workspace_id}/topics
Request
- Base URL: https://api.elastic.io/v2
- URL: https://api.elastic.io/v2/workspaces/{workspace_id}/topics
- Auth: HTTP basic
Path parameters
workspace_idstring required
Workspace identifier
Request body
Example request
{
"data": {
"id": "5b4f337bff4304610483ba67",
"links": {
"self": "/v2/topics/5b4f337bff4304610483ba67"
},
"attributes": {
"name": "Topic name"
},
"relationships": {
"workspace": {
"data": {
"id": "5b4f337bff4304610483ba67"
},
"links": {
"self": "/v2/workspaces/5b4f337bff4304610483ba67"
}
},
"user": {
"data": {
"id": "5b4f337bff4304610483ba67"
},
"links": {
"self": "/v2/users/5b4f337bff4304610483ba67"
}
}
}
}
}Response
Created
Example response
{
"data": {
"id": "5b4f337bff4304610483ba67",
"links": {
"self": "/v2/topics/5b4f337bff4304610483ba67"
},
"attributes": {
"name": "Topic name"
},
"relationships": {
"workspace": {
"data": {
"id": "5b4f337bff4304610483ba67"
},
"links": {
"self": "/v2/workspaces/5b4f337bff4304610483ba67"
}
},
"user": {
"data": {
"id": "5b4f337bff4304610483ba67"
},
"links": {
"self": "/v2/users/5b4f337bff4304610483ba67"
}
}
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.