POSTapi.synup.com/api/v4/local-post-ideas/refresh-ideas
Refresh local ideas
Regenerates the set of AI post ideas for a location. Returns a pipeline ID; poll Local pipeline status for progress.
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 |
Request
Request
curl -X POST 'https://api.synup.com/api/v4/local-post-ideas/refresh-ideas' \
-H 'Authorization: API YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"locationId": "TG9jYXRpb246MQ=="
}'const res = await fetch('https://api.synup.com/api/v4/local-post-ideas/refresh-ideas', {
method: 'POST',
headers: {
Authorization: 'API YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"locationId": "TG9jYXRpb246MQ=="
}),
});
const data = await res.json();import requests
res = requests.post(
"https://api.synup.com/api/v4/local-post-ideas/refresh-ideas",
headers={
"Authorization": "API YOUR_API_KEY",
"Content-Type": "application/json",
},
json={
"locationId": "TG9jYXRpb246MQ=="
},
)
data = res.json()req, _ := http.NewRequest("POST", "https://api.synup.com/api/v4/local-post-ideas/refresh-ideas", 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": {
"refreshLocalIdeas": {
"success": true,
"pipelineId": "string",
"error": {
"message": "string",
"code": "string",
"contextInfo": [
{
"key": "string",
"value": "string"
}
]
}
}
}
}Response body
| Name | Type | Required | Description |
|---|---|---|---|
data | object | optional | |
data.refreshLocalIdeas | object | optional | |
data.refreshLocalIdeas.success | boolean | optional | |
data.refreshLocalIdeas.pipelineId | string | optional | |
data.refreshLocalIdeas.error | object | optional | |
data.refreshLocalIdeas.error.message | string | optional | |
data.refreshLocalIdeas.error.code | string | optional | |
data.refreshLocalIdeas.error.contextInfo | array of object | optional | |
data.refreshLocalIdeas.error.contextInfo[].key | string | optional | |
data.refreshLocalIdeas.error.contextInfo[].value | string | optional |