Skip to main content
POST
Create Campaign Restriction

Authorizations

Authorization
string
header
required

A valid API key generated in Topsort's UI. Use the TSE API key if calling auctions or events API, otherwise use the TSC API key.

Path Parameters

campaign-id
string<uuid>
required

The ID of the campaign.

Body

application/json

Limit-based restrictions for a campaign.

restrictionTypeId
integer
required

The type of restriction.

limit
integer
required

The limit of the restriction.

Response

Successful Response

Limit-based restrictions for a campaign.

id
integer
required

The ID of the restriction.

campaignId
string<uuid>
required

The ID of the campaign.

marketplaceId
string<uuid>
required

The ID of the marketplace.

restrictionType
RestrictionTypeResponse · object
required

The type of restriction.

limit
integer
required

The limit of the restriction.

createdAt
string<date-time>
required

The creation date of the restriction.

updatedAt
string<date-time>
required

The last update date of the restriction.

status
enum<string>
required

The status of the restriction.

Available options:
active,
inactive