PUT /whatsappCampaigns/{campaignId}

You can use this API for WhatsApp only if you have setup your WhatsApp account on Brevo platform. To setup your WhatsApp account, follow the steps in the guide below. Activating Whatsapp in your account This API requires the List and Segment ids as recipients in Body params.You can use the below Contact endpoints to get the required information. Get all the Lists Get all the Segments

Servers

Path parameters

Name Type Required Description
campaignId Integer Yes

id of the campaign

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
recipients Object No

Segment ids and List ids to include/exclude from campaign

recipients.excludedListIds[] Array No

List ids to exclude from the campaign

recipients.listIds[] Array No

Mandatory if scheduledAt is not empty. List Ids to send the campaign to

recipients.segments[] Array No

Mandatory if listIds are not used. Segment ids to send the campaign to.

campaignName String No

Name of the campaign

rescheduleFor String No

Reschedule the sending UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of campaign. **Prefer to pass your timezone in date-time format for accurate result.For example: 2017-06-01T12:30:00+02:00 Use this field to update the scheduledAt of any existing draft or scheduled WhatsApp campaign.

campaignStatus String No

Status of the campaign

Valid values:

  • "suspended"
  • "scheduled"

Default value: "scheduled"

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.