PATCH
/
whatsapp_conversations
/
{whatsapp_conversation_id}
/
conversation_assignments
/
{id}
curl --request PATCH \
  --url https://app.kapso.ai/api/v1/whatsapp_conversations/{whatsapp_conversation_id}/conversation_assignments/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "conversation_assignment": {
    "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "notes": "<string>",
    "active": true
  }
}'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "active": true,
    "notes": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "created_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Authorizations

X-API-Key
string
header
required

API key required for all endpoints

Path Parameters

whatsapp_conversation_id
string
required

ID of the WhatsApp conversation

id
string
required

ID of the conversation assignment

Body

application/json

Response

200
application/json

Assignment updated successfully

The response is of type object.