Update a channel
PATCH
/v1/channels/{channelID}Authorization
bearerAuthbearerAuthrequiredor
apiKeyAuthapiKeyAuthrequiredPath parameters
channelIDstringrequiredChannel ID
Request body
requiredapplication/jsonconfiganyProvider-specific configuration
is_activebooleanWhether channel is active
metadataanyArbitrary metadata
namestringrequiredChannel name
min length 1
phonestringPhone number
statusstringChannel status
Responses
200OK
configanycreated_atstringrequiredhealth_statestringOperator-facing health: healthy, auth_required, degraded, setup_required
idstringrequiredis_activebooleanrequiredlast_connected_atstring | nullrequiredlast_errorstring | nullrequiredlast_failure_classstringauth, payload, operational (support)
linked_channel_idstring | nullrequiredmetadataanyrequiredmodestringrequirednamestringrequiredoperator_messagestringSafe message for workspace UI; never raw Meta errors
organization_idstringrequiredphone_numberstring | nullrequiredplatformstringrequiredstatusstringrequiredupdated_atstringrequired400Bad Request
errorErrorBodyrequiredShow propertiesHide properties
codestringrequireddetailsErrorDetail[] | nullShow propertiesHide properties
Array of
ErrorDetailcodestringfieldstringlocationstringmessagestringrequiredmessagestringrequiredrequest_idstring401Unauthorized
errorErrorBodyrequiredShow propertiesHide properties
codestringrequireddetailsErrorDetail[] | nullShow propertiesHide properties
Array of
ErrorDetailcodestringfieldstringlocationstringmessagestringrequiredmessagestringrequiredrequest_idstring403Forbidden
errorErrorBodyrequiredShow propertiesHide properties
codestringrequireddetailsErrorDetail[] | nullShow propertiesHide properties
Array of
ErrorDetailcodestringfieldstringlocationstringmessagestringrequiredmessagestringrequiredrequest_idstring404Not Found
errorErrorBodyrequiredShow propertiesHide properties
codestringrequireddetailsErrorDetail[] | nullShow propertiesHide properties
Array of
ErrorDetailcodestringfieldstringlocationstringmessagestringrequiredmessagestringrequiredrequest_idstring422Unprocessable Entity
errorErrorBodyrequiredShow propertiesHide properties
codestringrequireddetailsErrorDetail[] | nullShow propertiesHide properties
Array of
ErrorDetailcodestringfieldstringlocationstringmessagestringrequiredmessagestringrequiredrequest_idstring500Internal Server Error
errorErrorBodyrequiredShow propertiesHide properties
codestringrequireddetailsErrorDetail[] | nullShow propertiesHide properties
Array of
ErrorDetailcodestringfieldstringlocationstringmessagestringrequiredmessagestringrequiredrequest_idstringRequest
curl -X PATCH "/v1/channels/string" \
-H "Content-Type: application/json" \
-d '{
"config": "string",
"is_active": true,
"metadata": "string",
"name": "string",
"phone": "string",
"status": "string"
}'const response = await fetch("/v1/channels/string", {
method: "PATCH",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"config": "string",
"is_active": true,
"metadata": "string",
"name": "string",
"phone": "string",
"status": "string"
})
});import requests
response = requests.patch(
"/v1/channels/string",
headers={
"Content-Type": "application/json"
},
json={
"config": "string",
"is_active": True,
"metadata": "string",
"name": "string",
"phone": "string",
"status": "string"
},
)Response
{
"config": "string",
"created_at": "string",
"health_state": "string",
"id": "string",
"is_active": true,
"last_connected_at": "string",
"last_error": "string",
"last_failure_class": "string",
"linked_channel_id": "string",
"metadata": "string",
"mode": "string",
"name": "string",
"operator_message": "string",
"organization_id": "string",
"phone_number": "string",
"platform": "string",
"status": "string",
"updated_at": "string"
}{
"error": {
"code": "string",
"details": [
{
"code": "string",
"field": "string",
"location": "string",
"message": "string"
}
],
"message": "string",
"request_id": "string"
}
}{
"error": {
"code": "string",
"details": [
{
"code": "string",
"field": "string",
"location": "string",
"message": "string"
}
],
"message": "string",
"request_id": "string"
}
}{
"error": {
"code": "string",
"details": [
{
"code": "string",
"field": "string",
"location": "string",
"message": "string"
}
],
"message": "string",
"request_id": "string"
}
}{
"error": {
"code": "string",
"details": [
{
"code": "string",
"field": "string",
"location": "string",
"message": "string"
}
],
"message": "string",
"request_id": "string"
}
}{
"error": {
"code": "string",
"details": [
{
"code": "string",
"field": "string",
"location": "string",
"message": "string"
}
],
"message": "string",
"request_id": "string"
}
}{
"error": {
"code": "string",
"details": [
{
"code": "string",
"field": "string",
"location": "string",
"message": "string"
}
],
"message": "string",
"request_id": "string"
}
}