Add Thread
POST/chat-svc/thread
Create a new chat thread and add the requesting user to it.
Requires the chat-svc:thread:create
permission.
Request
- application/json
Body
required
Add Thread Request
thread
object
createdAt string
id string
title string
Title of the thread.
topicIds string[]
TopicIds defines which topics the thread belongs to. Topics can roughly be thought of as tags for threads.
updatedAt string
userIds string[]
UserIds the ids of the users who can see this thread.
Responses
- 200
- 400
- 401
- 500
Thread successfully created
- application/json
- Schema
- Example (from schema)
Schema
thread
object
createdAt string
id string
title string
Title of the thread.
topicIds string[]
TopicIds defines which topics the thread belongs to. Topics can roughly be thought of as tags for threads.
updatedAt string
userIds string[]
UserIds the ids of the users who can see this thread.
{
"thread": {
"createdAt": "string",
"id": "string",
"title": "string",
"topicIds": [
"string"
],
"updatedAt": "string",
"userIds": [
"string"
]
}
}
Invalid JSON
- application/json
- Schema
Schema
string
Unauthorized
- application/json
- Schema
Schema
string
Internal Server Error
- application/json
- Schema
Schema
string
Loading...