curl --request PATCH \
--url https://api.topsort.com/public/v1/offsite-ads/campaigns/{campaign-id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"budget": 123,
"endDate": "2023-11-07T05:31:56Z",
"locationIds": [
"<string>"
],
"name": "<string>",
"productIds": [
"<string>"
],
"startDate": "2023-11-07T05:31:56Z",
"status": "ENABLED"
}'
{
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
Update a campaign.
curl --request PATCH \
--url https://api.topsort.com/public/v1/offsite-ads/campaigns/{campaign-id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"budget": 123,
"endDate": "2023-11-07T05:31:56Z",
"locationIds": [
"<string>"
],
"name": "<string>",
"productIds": [
"<string>"
],
"startDate": "2023-11-07T05:31:56Z",
"status": "ENABLED"
}'
{
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
A valid API key generated in Topsort's UI.
The ID of the campaign to update.
The ID of the vendor to update the campaign for.
Successful Response
The response is of type object
.