This endpoint serves the purpose of creating a worker chat based on unique worker ID.
cURL
curl --request POST \ --url https://api.roostedhr.com/api/1_12/workers/{id}/chats \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data ' { "members": [ "<string>" ], "name": "<string>", "event_id": "<string>", "auto_add_event": true } '
{ "id": "<string>", "auto_add_workers": 0, "event_id": "<string>", "chat_admin": 0, "silenced": 0, "on_chat": 0, "date_created": "<string>", "name": "<string>", "most_recent_message_id": "<string>", "locked": 0, "last_message_timestamp": "<string>", "message": "<string>", "name_first": "<string>", "selected_picture_location": "<string>", "chats_order": "<string>", "unread_count": 1 }
Worker ID
OK
0 <= x <= 1
x >= 0