Chats
Create a new member chat.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Only workspace ("Team Chat") member chats may be created; project-scoped member chats are deprecated. No field is enforced as required by validation, but scopeType, scopeId and memberIds are needed to create a chat. When color is omitted a random approved color is assigned.
Response Body
application/json
curl -X POST "https://example.com/chats/member" \ -H "Content-Type: application/json" \ -d '{}'{ "scopeId": "65fafe40-a220-4dd7-8724-4598b81c0643", "scopeType": "project", "scope": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "slug": "string", "logo": "3c06f846-1ab1-40a9-8645-a19a9fdeae85" }, "subject": "string", "icon": "bc9b3dc5-578a-4929-a13c-7d1a9725e2b0", "members": [ "15b1f20b-98d8-4c50-b89a-13711baf259b" ], "participants": [ "e3139958-26f5-4fd4-a9c9-fe1c29c5cbac" ], "totalMessages": 0, "recentMessages": [ "6738c803-41a8-4296-a5bd-8d9974ec6fa0" ], "status": "active", "createdBefore": 0, "createdAt": 1678886400000, "updatedAt": 1678886400000}