Reject plan suggestion set
curl --request POST \
--url https://api.interchange.io/api/v2/buyer/plan-suggestion-sets/{planSuggestionSetId}/reject \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.interchange.io/api/v2/buyer/plan-suggestion-sets/{planSuggestionSetId}/reject"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.interchange.io/api/v2/buyer/plan-suggestion-sets/{planSuggestionSetId}/reject', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"planSuggestionSetId": "<string>",
"status": "<string>"
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Optimization Suggestions
Reject plan suggestion set
Reject a plan’s whole suggestion set; none of its media buys change. A rejected set is not retried or partially salvaged — the next optimizer run for the plan produces a fresh set. An optional reason may be supplied in the body.
POST
/
plan-suggestion-sets
/
{planSuggestionSetId}
/
reject
Reject plan suggestion set
curl --request POST \
--url https://api.interchange.io/api/v2/buyer/plan-suggestion-sets/{planSuggestionSetId}/reject \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.interchange.io/api/v2/buyer/plan-suggestion-sets/{planSuggestionSetId}/reject"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.interchange.io/api/v2/buyer/plan-suggestion-sets/{planSuggestionSetId}/reject', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"planSuggestionSetId": "<string>",
"status": "<string>"
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Authorizations
API key or access token
Path Parameters
Plan suggestion set id. Digits only, up to 18 characters — the underlying bigint id.
Pattern:
^[1-9][0-9]{0,17}$Body
application/json
Maximum string length:
1000