PUT /v1/channels/{id}/universal
PUT
/v1/channels/{id}/universal
const url = 'https://seu-endereco-da-api/v1/channels/example/universal';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"config":{},"credentials":{"additionalProperty":"example"},"confirmTypeRemoval":true}'};
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/channels/example/universal \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "config": {}, "credentials": { "additionalProperty": "example" }, "confirmTypeRemoval": true }'Permissão que a Chave de acesso precisa: Gerenciar canais (channels: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
config
required
object
key
additional properties
any
credentials
object
key
additional properties
string
confirmTypeRemoval
boolean
Example generated
{ "config": {}, "credentials": { "additionalProperty": "example" }, "confirmTypeRemoval": true}