Update the settings for a channel.
Response format | JSON |
---|---|
Requires authentication? | Yes |
onreceived_url optional | Endpoint to which Essential will send callbacks when incoming messages are received. |
---|---|
cs_provider_data optional | Customer service tool configuration |
curl -X PUT \
-u '[SID]:[TOKEN]' \
-H 'Content-Type: application/json' \
'https://api.essential.to/v2/account/channels/p03Gjl8Uzn0RkZSpHXHnrw' \
-d '{"onreceived_url":"https://example.com/onreceived_endpoint"}'
# Sample response
{
"name": "Example Project",
"onreceived_url": "https://example.com/onreceived_endpoint",
"created_at": "2017-01-24T01:24:35.000Z",
"updated_at": "2017-01-25T21:33:16.422Z",
"area_codes": null,
"deliveries_paused_at": null,
"received_paused_at": null,
"cs_provider_data": null,
"sid": "p03Gjl8Uzn0RkZSpHXHnrw",
"account_sid": "p03Gjl8Uzn0RkZSpHXHnrw",
"bot_sid": "p03Gjl8Uzn0RkZSpHXHnrw"
}
Python coming soon.
Node coming soon.