PATCH
/
public
/
v1
/
offsite-ads
/
campaigns
/
{campaign-id}
curl --request PATCH \
  --url https://api.topsort.com/public/v1/offsite-ads/campaigns/{campaign-id} \
  --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"
}

Path Parameters

campaign-id
string
required

The ID of the campaign to update.

Query Parameters

vendor_id
string
required

The ID of the vendor to update the campaign for.

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.