PATCH
/
public
/
v1
/
campaign-service
/
campaigns
/
{campaign-id}
/
bids
/
{bid-id}
curl --request PATCH \
  --url https://api.topsort.com/public/v1/campaign-service/campaigns/{campaign-id}/bids/{bid-id} \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 1,
  "isActive": true
}'
{
  "amount": 1,
  "bidId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "bidsBehaviorData": "<string>",
  "campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "formatProperties": {
    "adFormat": "banner",
    "bannerAssets": [
      {
        "assetId": "asset_01j713j64yfsvtj4bs3ccpy5ca",
        "contentType": "image/png",
        "dimensions": {
          "height": 1080,
          "width": 1920
        },
        "size": 123,
        "url": "<string>"
      }
    ],
    "deviceType": "desktop",
    "slotId": "<string>"
  },
  "isActive": true,
  "location": "Santiago",
  "state": "active",
  "target": {
    "id": "p_8983",
    "type": "product"
  },
  "trigger": {
    "type": "keyword",
    "value": {
      "matchType": "exact",
      "words": [
        "<string>"
      ]
    }
  },
  "triggers": [
    {
      "type": "keyword",
      "value": {
        "matchType": "exact",
        "words": [
          "<string>"
        ]
      }
    }
  ]
}

Path Parameters

campaign-id
string
required

The ID of the campaign.

bid-id
string
required

The ID of the bid.

Body

application/json

The Bid update request body.

Response

200
application/json
Successful Response

Represents an auction bid for a specific entity and a specific maximum amount.