POST /manager/chat-topics
curl \
-X POST https://domain.tld/api/v2/manager/chat-topics \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"active":true,"position":42,"color":"string","contents":[{"lang":"en_GB","content":"Hello"}]}'
Request examples
{
"active": true,
"position": 42,
"color": "string",
"contents": [
{
"lang": "en_GB",
"content": "Hello"
}
]
}
Response examples (201)
{
"id_chat_topic": 8,
"color": "#FF0000",
"contents": [
{
"id_i18n_content": 42,
"lang": "en_GB",
"content": "Hello"
}
],
"position": 1,
"date_insert": "2021-06-01T00:00:00Z",
"roles": [
"administrator",
"seller"
],
"date_update": "2022-06-01T00:00:00Z",
"active": true
}
Response examples (401)
{
"message": "Unauthorized."
}
Response examples (422)
{
"message": "field is required! (and 3 more error)",
"errors": {
"field": [
"Error message details here"
],
"additionalProperty1": [
"Error message details here"
],
"additionalProperty2": [
"Error message details here"
]
}
}