PUT
/
api
/
tickets
/
{ticketId}
curl --request PUT \
  --url https://api.atendai.com/api/tickets/{ticketId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "number": "<string>",
  "email": "<string>",
  "profilePicUrl": "<string>",
  "isGroup": true,
  "isAdmin": true,
  "isOpen": true,
  "isBotEnabled": true,
  "utmCampaign": "<string>",
  "utmContent": "<string>",
  "utmMedium": "<string>",
  "utmSource": "<string>",
  "utmTerms": "<string>",
  "active": true,
  "channel": "<string>",
  "whatsappId": "<string>",
  "companyId": "<string>"
}'
{
  "message": "<success message>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

ticketId
string
required

O ID do ticket a ser atualizado.

Body

application/json

Response

200
application/json

Successful response

The response is of type object.