curl --request POST \
--url https://api.wapikit.com/api/campaigns/{id} \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"listIds": [
"<string>"
],
"templateMessageId": "<string>",
"enableLinkTracking": true,
"tags": [
"<string>"
],
"status": "Draft",
"phoneNumber": "<string>",
"templateComponentParameters": {
"header": [
{
"nameOrIndex": "<string>",
"label": "<string>",
"parameterType": "static",
"dynamicField": "<string>",
"staticValue": "<string>",
"example": "<string>",
"placeholder": "<string>"
}
],
"body": [
{
"nameOrIndex": "<string>",
"label": "<string>",
"parameterType": "static",
"dynamicField": "<string>",
"staticValue": "<string>",
"example": "<string>",
"placeholder": "<string>"
}
],
"buttons": [
{
"nameOrIndex": "<string>",
"label": "<string>",
"parameterType": "static",
"dynamicField": "<string>",
"staticValue": "<string>",
"example": "<string>",
"placeholder": "<string>"
}
],
"catalogId": "<string>",
"productRetailerId": "<string>",
"productSections": [
{
"title": "<string>",
"productItems": [
{
"productRetailerId": "<string>"
}
]
}
]
},
"scheduledAt": "2023-11-07T05:31:56Z"
}'
{
"isUpdated": true
}
modify campaign data
curl --request POST \
--url https://api.wapikit.com/api/campaigns/{id} \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"listIds": [
"<string>"
],
"templateMessageId": "<string>",
"enableLinkTracking": true,
"tags": [
"<string>"
],
"status": "Draft",
"phoneNumber": "<string>",
"templateComponentParameters": {
"header": [
{
"nameOrIndex": "<string>",
"label": "<string>",
"parameterType": "static",
"dynamicField": "<string>",
"staticValue": "<string>",
"example": "<string>",
"placeholder": "<string>"
}
],
"body": [
{
"nameOrIndex": "<string>",
"label": "<string>",
"parameterType": "static",
"dynamicField": "<string>",
"staticValue": "<string>",
"example": "<string>",
"placeholder": "<string>"
}
],
"buttons": [
{
"nameOrIndex": "<string>",
"label": "<string>",
"parameterType": "static",
"dynamicField": "<string>",
"staticValue": "<string>",
"example": "<string>",
"placeholder": "<string>"
}
],
"catalogId": "<string>",
"productRetailerId": "<string>",
"productSections": [
{
"title": "<string>",
"productItems": [
{
"productRetailerId": "<string>"
}
]
}
]
},
"scheduledAt": "2023-11-07T05:31:56Z"
}'
{
"isUpdated": true
}
The id of campaign to update
updated campaign info
The body is of type object
.
returns updated campaign.
The response is of type object
.
Was this page helpful?