POST
https://api.topsort.com
/
public
/
v1
/
campaign-service
/
campaigns
/
{campaign-id}
/
restrictions
curl --request POST \
  --url https://api.topsort.com/public/v1/campaign-service/campaigns/{campaign-id}/restrictions \
  --header 'Content-Type: application/json' \
  --data '{
  "limit": 123,
  "restrictionTypeId": 123
}'
{
  "campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "createdAt": "2023-11-07T05:31:56Z",
  "id": 123,
  "limit": 123,
  "marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "restrictionType": {
    "frequencyType": "daily",
    "id": 123,
    "interactionType": "impressions",
    "level": "campaign"
  },
  "status": "active",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Path Parameters

campaign-id
string
required

The ID of the campaign.

Body

application/json

Limit-based restrictions for a campaign.

Response

201
application/json

Successful Response

Limit-based restrictions for a campaign.