Saltar para o conteúdo principal
POST
Create Campaign Restriction

Autorizações

Authorization
string
header
obrigatório

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.

Parâmetros de caminho

campaign-id
string<uuid>
obrigatório

The ID of the campaign.

Corpo

application/json

Limit-based restrictions for a campaign.

restrictionTypeId
integer
obrigatório

The type of restriction.

limit
integer
obrigatório

The limit of the restriction.

Resposta

Successful Response

Limit-based restrictions for a campaign.

id
integer
obrigatório

The ID of the restriction.

campaignId
string<uuid>
obrigatório

The ID of the campaign.

marketplaceId
string<uuid>
obrigatório

The ID of the marketplace.

restrictionType
RestrictionTypeResponse · object
obrigatório

The type of restriction.

limit
integer
obrigatório

The limit of the restriction.

createdAt
string<date-time>
obrigatório

The creation date of the restriction.

updatedAt
string<date-time>
obrigatório

The last update date of the restriction.

status
enum<string>
obrigatório

The status of the restriction.

Opções disponíveis:
active,
inactive