curl --request PATCH \
--url https://api.topsort.com/public/v1/campaign-service/campaigns/{campaign-id}/restrictions/{restriction-id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"limit": 123,
"status": "active"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Endpoint to update a campaign restriction.
curl --request PATCH \
--url https://api.topsort.com/public/v1/campaign-service/campaigns/{campaign-id}/restrictions/{restriction-id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"limit": 123,
"status": "active"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}A valid API key generated in Topsort's UI.
The ID of the campaign. The ID of the campaign.
The ID of the restriction. The ID of the restriction.
Successful Response
Was this page helpful?