[PATCH] Atualizar
Atualiza uma requisição http de estágio de chat.
Requisição
curl --location 'https://api.zaia.app/v1.1/api/agent-service-chat-stage-http-request/update' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <sua chave de api aqui>' \
--data '{
"agentId": 123,
"body": {
"name": "Alfred",
"user": "alfred"
},
"formattedData": "Model: {{response.results[0].property}}",
"headers": {
"header": "exemplo"
},
"id": "5b8d21e9",
"method": "post",
"query": {
"param":"example"
},
"url": "http://testapi.com"
}'
Headers (Cabeçalhos)
Chave
Tipo
Exemplo
Obrigatório
Authorization
String
Bearer <sua chave aqui>
✓
Body (Corpo)
Chave
Tipo
Exemplo
Obrigatório
agentId
Number
123
✓
id
String
321
✓
method
String
get | post | update | patch | delete
url
String
query
Object
{ "id": "example" }
headers
Object
{ "key": "123"}
Body
Object
{ "name": "Alfred", "user": "alfred" }
formattedData
String
"Response: {{response.data.name}}"
Respostas
Chave
Tipo
Exemplo
chatStageId
Number
123
id
String
321
httpRequestId
String
123
method
String
get | post | update | patch | delete
url
String
query
Object
{ "id": "example" }
headers
Object
{ "key": "123"}
Body
Object
{ "name": "Alfred", "user": "alfred" }
formattedData
String
"Response: {{response.data.name}}"
Exemplo de resposta:
{
"body": {
"name": "Alfred",
"user": "alfred"
},
"chatStageId": "dd513b",
"formattedData": "Model: {{response.results[0].property}}",
"headers": {
"header": "example"
},
"httpRequestId": "05bf5",
"id": "5b8d21",
"method": "post",
"query": {
"param":"example"
},
"url": "http://testapi.com"
}
Atualizado