POSTapi.synup.com/api/v4/local-post-ideas/generate-all-series-posts
Generate all local series posts
Generates all remaining posts for a content series in one call. Returns the generated ideas and a count.
Requires an API key. Send it as
Authorization: API <your-key> — see Getting started.Parameters
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Synup-Version | string | required | API version date (YYYY-MM-DD). |
Body
| Name | Type | Required | Description |
|---|---|---|---|
locationId | string | required | |
seriesId | string | required |
Request
Request
curl -X POST 'https://api.synup.com/api/v4/local-post-ideas/generate-all-series-posts' \
-H 'Authorization: API YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"locationId": "TG9jYXRpb246MQ==",
"seriesId": "3a1f..."
}'const res = await fetch('https://api.synup.com/api/v4/local-post-ideas/generate-all-series-posts', {
method: 'POST',
headers: {
Authorization: 'API YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"locationId": "TG9jYXRpb246MQ==",
"seriesId": "3a1f..."
}),
});
const data = await res.json();import requests
res = requests.post(
"https://api.synup.com/api/v4/local-post-ideas/generate-all-series-posts",
headers={
"Authorization": "API YOUR_API_KEY",
"Content-Type": "application/json",
},
json={
"locationId": "TG9jYXRpb246MQ==",
"seriesId": "3a1f..."
},
)
data = res.json()req, _ := http.NewRequest("POST", "https://api.synup.com/api/v4/local-post-ideas/generate-all-series-posts", bytes.NewBufferString(payload))
req.Header.Set("Authorization", "API YOUR_API_KEY")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)Responses
| Status | Description |
|---|---|
200 | Successful response |
401 | Unauthorized - Invalid or missing API key |
Example response (generated from the schema)
{
"data": {
"generateAllLocalSeriesPosts": {
"success": true,
"ideas": [
{}
],
"pipelineId": "string",
"generatedCount": 0,
"error": {
"message": "string",
"code": "string",
"contextInfo": [
{
"key": "string",
"value": "string"
}
]
}
}
}
}Response body
| Name | Type | Required | Description |
|---|---|---|---|
data | object | optional | |
data.generateAllLocalSeriesPosts | object | optional | |
data.generateAllLocalSeriesPosts.success | boolean | optional | |
data.generateAllLocalSeriesPosts.ideas | array of object | optional | Generated post ideas (see Local post idea for the full shape). |
data.generateAllLocalSeriesPosts.pipelineId | string | optional | |
data.generateAllLocalSeriesPosts.generatedCount | integer | optional | |
data.generateAllLocalSeriesPosts.error | object | optional | |
data.generateAllLocalSeriesPosts.error.message | string | optional | |
data.generateAllLocalSeriesPosts.error.code | string | optional | |
data.generateAllLocalSeriesPosts.error.contextInfo | array of object | optional | |
data.generateAllLocalSeriesPosts.error.contextInfo[].key | string | optional | |
data.generateAllLocalSeriesPosts.error.contextInfo[].value | string | optional |