PUT /v1/templates/{id}/variable-bindings
PUT
/v1/templates/{id}/variable-bindings
const url = 'https://seu-endereco-da-api/v1/templates/example/variable-bindings';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"bindings":[{}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://seu-endereco-da-api/v1/templates/example/variable-bindings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "bindings": [ {} ] }'Permissão que a Chave de acesso precisa: Gerenciar modelos e formulários (templates:manage).
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”id
required
string
Request Bodyrequired
Seção intitulada “Request Bodyrequired”Media typeapplication/json
object
bindings
required
One entry per text variable, in send order (header text, body, URL buttons): { kind: “agent_text” }, { kind: “field”, key, fallback? } with a key from the quick-reply variables, or { kind: “fixed”, value }
Array<object>
object
Example generated
{ "bindings": [ {} ]}