Create a new chat
POST/chats
Create a new chat
Request
Responses
- 201
- 409
- 422
Chat created. chat is returned only with Prefer: return=representation; add with_participants=true for participants (the owner is included as the first participant).
Response Headers
Preference-Applied
Present (as return=representation) when the client requested the entity via Prefer: return=representation (or the deprecated ?result=yes flag) and the server honored it. Per RFC 7240.
Chat already exists
Validation failed, owner data missing (Chat owner is required), or the create transaction failed.