Set whether a channel opens leads
Saves one channel's setting: whether a new conversation on it opens a lead, and the lead source to give it. Name the channel with kind, and with id for a number or an email address. Answers with the whole channel list. Answers 403 desk.sales_off while Sales is switched off.
Requires: desk.admin scope, workspace owner or admin, Pro plan.
Authorization
bearerAuth A SautiDesk API key. An owner or admin makes it under Settings in SautiDesk for a named person and picks the scopes. The key is shown once. Send it as Authorization: Bearer <key>. It acts as that person and as nobody else.
In: header
Request Body
application/json
Response
OK
Example
{ "data": [ { "kind": "billing", "id": "3f2b8c1e-5a4d-4e7b-9c10-2d6a8e4f1b37", "label": "Amina Wanjiru", "opens_leads": false, "lead_source_id": "27abce66-467f-40f5-9726-6c93ba4b3e43" } ], "next_cursor": {}, "has_more": false}datarequiredobject[]kindrequiredstringWhat kind it is.idstringlabelrequiredstringA short name to recognise it by.opens_leadsrequiredbooleanlead_source_idrequiredstring (uuid) | nullnext_cursorrequiredanyhas_morerequiredanycurl -X PUT "https://api.sautidesk.com/v1/desk/lead-channels" \ -H "Content-Type: application/json" \ -d '{ "kind": "billing", "id": "3f2b8c1e-5a4d-4e7b-9c10-2d6a8e4f1b37", "label": "Amina Wanjiru", "opens_leads": false, "lead_source_id": "27abce66-467f-40f5-9726-6c93ba4b3e43" }'