cURL
curl --request PUT \ --url https://api.atendai.com/api/contacts/{contactId} \ --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": "Contact updated successfully" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the contact to update
Successful response
The response is of type object.
object