PATCH
/
v1
/
sms
/
conversations
/
{conversation_id}
Update SMS Conversation
curl --request PATCH \
  --url https://api.bland.ai/v1/sms/conversations/{conversation_id} \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '{
  "is_active": true
}'
{
  "message": "Conversation updated successfully",
  "conversation": {
    "id": "conv_1234567890",
    "is_active": false,
    "updated_at": "2024-01-15T10:30:00.000Z"
  }
}
Enterprise Feature - This endpoint is available for enterprise customers only.

Headers

authorization
string
required
Your API key for authentication.

Path Parameters

conversation_id
string
required
The unique identifier of the SMS conversation to update.

Body Parameters

is_active
boolean
Sets the active status of the conversation. When set to false, the conversation will be marked as inactive.

Response

message
string
Confirmation message indicating the conversation was updated successfully.
conversation
object
The updated conversation object containing the new values.
conversation.id
string
The unique identifier of the conversation.
conversation.is_active
boolean
The current active status of the conversation.
conversation.updated_at
string
ISO 8601 timestamp of when the conversation was last updated.
{
  "message": "Conversation updated successfully",
  "conversation": {
    "id": "conv_1234567890",
    "is_active": false,
    "updated_at": "2024-01-15T10:30:00.000Z"
  }
}