Headers

Path parameters

  • id integer Required

    The chatroom id

application/json

Body

Responses

  • 200 application/json

    Thread created and attached to the chatroom

    Hide response attribute Show response attribute object
  • 401 application/json

    Unauthorized.

    Hide response attribute Show response attribute object
  • Forbidden - You don't have permission to access this route

POST /chat/chatrooms/{id}/thread
curl \
 -X POST https://domain.tld/api/v2/chat/chatrooms/{id}/thread \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -H "X-Popsell-Brand: 3" \
 -d '{"thread_id":"string"}'
Request examples
# Headers
X-Popsell-Brand: 3

# Payload
{
  "thread_id": "string"
}
Response examples (200)
{
  "thread_id": "string"
}
Response examples (401)
{
  "message": "Unauthorized."
}