Pular para o conteúdo

PUT /v1/channels/{id}/default-text-template

PUT
/v1/channels/{id}/default-text-template
curl --request PUT \
--url https://seu-endereco-da-api/v1/channels/example/default-text-template \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "slot": "text", "templateId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'

Permissão que a Chave de acesso precisa: Gerenciar canais (channels:manage).

id
required
string
Media typeapplication/json
object
slot

Text (default), media (image or video header) or document (document header)

string
Allowed values: text media document
templateId
required
string format: uuid
nullable

Default_template_unsupported | template_from_another_account | template_not_approved | template_needs_one_agent_text | template_agent_text_outside_body | template_has_unbound_variables | template_header_without_sample | template_header_not_for_slot