POST /manager/chat-topics
application/json

Body Required

  • active boolean
  • position integer(int32)
  • color string
  • contents array

Responses

  • 201 application/json

    returns the created chat topic

    Hide response attributes Show response attributes object
    • id_chat_topic integer
    • color string
    • contents array
    • position integer
    • date_insert string(date-time)
    • roles array[string]
    • date_update string(date-time)
    • active boolean
  • 403

    Forbidden - You don't have permission to access this route

POST /manager/chat-topics
curl \
 --request POST 'https://domain.tld/api/v2/manager/chat-topics' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"active":true,"position":42,"color":"string","contents":[]}'
Request examples
{
  "active": true,
  "position": 42,
  "color": "string",
  "contents": []
}
Response examples (201)
{
  "id_chat_topic": 8,
  "color": "#FF0000",
  "contents": [],
  "position": 1,
  "date_insert": "2021-06-01T00:00:00Z",
  "roles": [
    "administrator",
    "seller"
  ],
  "date_update": "2022-06-01T00:00:00Z",
  "active": true
}