Workspace Chats

Assign or unassign a workspace chat

Updates the assignee for one exact connected-account and Telegram-chat pair. Send an empty assignedToUserId to unassign. This uses the same WorkspaceChatAssignment model as the Entergram CRM assignee field and filters.

patch/v1/workspace/chats/{chat_id}/assignment

Request

  • Base URL: https://api.entergram.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.entergram.com/v1/workspace/chats/{chat_id}/assignment
  • Auth: API key in header X-API-Key

Path parameters

chat_idstring required

Canonical Telegram chat identifier.

Example:-1000001234567

Request body

assignedToUserIdstring required

Workspace member user id to assign. Send an empty string to unassign.

connectedAccountIdstring required

Connected account id for the exact workspace chat occurrence.

Example request

{
  "assignedToUserId": "00000000-0000-4000-8000-000000000001",
  "connectedAccountId": "acct_demo_123"
}

Response

OK

Example response

{
  "data": {
    "assignment": {
      "assignedByUserId": "00000000-0000-4000-8000-000000000002",
      "assignedToUserId": "00000000-0000-4000-8000-000000000001",
      "connectedAccountId": "acct_demo_123",
      "telegramId": "-1000001234567"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.