Passer au contenu principal
POST
Create Campaign Restriction

Autorisations

Authorization
string
header
requis

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.

Paramètres de chemin

campaign-id
string<uuid>
requis

The ID of the campaign.

Corps

application/json

Limit-based restrictions for a campaign.

restrictionTypeId
integer
requis

The type of restriction.

limit
integer
requis

The limit of the restriction.

Réponse

Successful Response

Limit-based restrictions for a campaign.

id
integer
requis

The ID of the restriction.

campaignId
string<uuid>
requis

The ID of the campaign.

marketplaceId
string<uuid>
requis

The ID of the marketplace.

restrictionType
RestrictionTypeResponse · object
requis

The type of restriction.

limit
integer
requis

The limit of the restriction.

createdAt
string<date-time>
requis

The creation date of the restriction.

updatedAt
string<date-time>
requis

The last update date of the restriction.

status
enum<string>
requis

The status of the restriction.

Options disponibles:
active,
inactive