Início
Chat
- Messages
- Tickets
- Tags
Definitions
- Contacts
- Schedules
- Departments
Campaigns
Update Campaign
PUT
/
api
/
campaigns
/
{campaignId}
Copy
curl --request PUT \
--url https://api.atendai.com/api/campaigns/{campaignId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"groupMembersLimit": 123,
"releaseDate": "2023-11-07T05:31:56Z",
"acceptEntriesUntil": "2023-11-07T05:31:56Z",
"whatsappId": "<string>"
}'
Copy
{
"id": "<string>",
"name": "<string>",
"groupMembersLimit": 123,
"releaseDate": "2023-11-07T05:31:56Z",
"acceptEntriesUntil": "2023-11-07T05:31:56Z",
"isActive": true,
"companyId": "<string>",
"whatsappId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"groups": [
{
"id": "<string>",
"jid": "<string>",
"name": "<string>",
"description": "<string>",
"picture": "<string>",
"inviteLink": "<string>",
"membersCount": 123,
"initialMembers": {},
"settings": {},
"logs": {},
"order": 123,
"campaignId": "<string>",
"companyId": "<string>",
"status": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The ID of the campaign to update
Body
application/json
Response
200
application/json
Campaign updated successfully
The response is of type object
.
Copy
curl --request PUT \
--url https://api.atendai.com/api/campaigns/{campaignId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"groupMembersLimit": 123,
"releaseDate": "2023-11-07T05:31:56Z",
"acceptEntriesUntil": "2023-11-07T05:31:56Z",
"whatsappId": "<string>"
}'
Copy
{
"id": "<string>",
"name": "<string>",
"groupMembersLimit": 123,
"releaseDate": "2023-11-07T05:31:56Z",
"acceptEntriesUntil": "2023-11-07T05:31:56Z",
"isActive": true,
"companyId": "<string>",
"whatsappId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"groups": [
{
"id": "<string>",
"jid": "<string>",
"name": "<string>",
"description": "<string>",
"picture": "<string>",
"inviteLink": "<string>",
"membersCount": 123,
"initialMembers": {},
"settings": {},
"logs": {},
"order": 123,
"campaignId": "<string>",
"companyId": "<string>",
"status": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.