Resume a campaign
curl --request POST \
--url https://api.pineyard.ai/campaigns/{id}/resume \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reservedConcurrency": 500,
"allowBurst": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reservedConcurrency: 500, allowBurst: false})
};
fetch('https://api.pineyard.ai/campaigns/{id}/resume', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/campaigns/{id}/resume"
payload = {
"reservedConcurrency": 500,
"allowBurst": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Lifecycle
Resume a campaign
Runs the same checks as start and sets a paused campaign running again.
POST
/
campaigns
/
{id}
/
resume
Resume a campaign
curl --request POST \
--url https://api.pineyard.ai/campaigns/{id}/resume \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reservedConcurrency": 500,
"allowBurst": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reservedConcurrency: 500, allowBurst: false})
};
fetch('https://api.pineyard.ai/campaigns/{id}/resume', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/campaigns/{id}/resume"
payload = {
"reservedConcurrency": 500,
"allowBurst": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
