curl --request POST \
--url https://api.apostra.com/api/v2/buyer/media-buys/{mediaBuyId}/reactivate \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.apostra.com/api/v2/buyer/media-buys/{mediaBuyId}/reactivate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.apostra.com/api/v2/buyer/media-buys/{mediaBuyId}/reactivate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"mediaBuyId": "<string>",
"name": "<string>",
"previousStatus": "<string>",
"newStatus": "<string>",
"success": true,
"error": "<string>",
"pauseRequestedAt": "2023-11-07T05:31:56Z",
"resumeRequestedAt": "2023-11-07T05:31:56Z"
}{
"mediaBuyId": "<string>",
"name": "<string>",
"previousStatus": "<string>",
"newStatus": "<string>",
"success": true,
"error": "<string>",
"pauseRequestedAt": "2023-11-07T05:31:56Z",
"resumeRequestedAt": "2023-11-07T05:31:56Z"
}{
"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": {}
}
}Reactivate media buy
Reactivate a single paused media buy without affecting the rest of its campaign or any sibling media buys. Returns 200 when the seller confirmed the resume, and 202 with resumeRequestedAt when the seller accepted it but is still applying it: the buy stays PAUSED until the seller confirms.
curl --request POST \
--url https://api.apostra.com/api/v2/buyer/media-buys/{mediaBuyId}/reactivate \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.apostra.com/api/v2/buyer/media-buys/{mediaBuyId}/reactivate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.apostra.com/api/v2/buyer/media-buys/{mediaBuyId}/reactivate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"mediaBuyId": "<string>",
"name": "<string>",
"previousStatus": "<string>",
"newStatus": "<string>",
"success": true,
"error": "<string>",
"pauseRequestedAt": "2023-11-07T05:31:56Z",
"resumeRequestedAt": "2023-11-07T05:31:56Z"
}{
"mediaBuyId": "<string>",
"name": "<string>",
"previousStatus": "<string>",
"newStatus": "<string>",
"success": true,
"error": "<string>",
"pauseRequestedAt": "2023-11-07T05:31:56Z",
"resumeRequestedAt": "2023-11-07T05:31:56Z"
}{
"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
Buyer media buy ID
1"mb_ETBn4gJ9Wu"
Response
Reactivate media buy
Response from pausing or reactivating a single media buy. Only this media buy is affected — its campaign is never cascaded.
The media buy ID
The media buy name
Status of the media buy before the status change
Status of the media buy after the status change
Whether the media buy status change succeeded
Error message when the media buy status change failed
Pause, HTTP 202: the seller accepted the pause but has not applied it (first request time). The buy stays ACTIVE until it does.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$Reactivate, HTTP 202: the seller accepted the resume but has not applied it. The buy stays PAUSED until it does.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$