Topics
Create a topic
Creates a new topic if it does not exist, or updates an existing topic if it already exists. Use ?failIfExists=true to prevent updates.
post/v2/topics
Query parameters
failIfExistsboolean
If true, the request will fail if a topic with the same key already exists
Request body
Example request
{
"key": "task:12345",
"name": "Task Title",
"data": {
"category": "product",
"priority": 1
}
}Response
OK
Example response
{
"_id": "64da692e9a94fb2e6449ad06",
"key": "product-updates",
"name": "Product Updates",
"data": {
"category": "product",
"priority": 1
},
"createdAt": "2023-08-15T00:00:00.000Z",
"updatedAt": "2023-08-15T00:00:00.000Z"
}Changes
Changed in 1 of the 13 revisions of this API.4
- ○
added the new optional request property
new-optional-request-property
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○