Skip to content
SynupAPI
Get an API key
POSTapi.synup.com/api/v4/local-post-ideas/regenerate-idea-content

Regenerate local idea content

Regenerates the text content (title/copy) of an existing post idea, keeping its image. Optionally steer the result with a topic.

Requires an API key. Send it as Authorization: API <your-key> — see Getting started.

Parameters

Headers

NameTypeRequiredDescription
Synup-VersionstringrequiredAPI version date (YYYY-MM-DD).

Body

NameTypeRequiredDescription
ideaIdstringrequired
topicstringoptional

Request

Request
curl -X POST 'https://api.synup.com/api/v4/local-post-ideas/regenerate-idea-content' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "ideaId": "91b2...",
  "topic": "weekend sale"
}'

Responses

StatusDescription
200Successful response
401Unauthorized - Invalid or missing API key
Example response (generated from the schema)
{
  "data": {
    "regenerateLocalIdeaContent": {
      "success": true,
      "idea": {},
      "error": {
        "message": "string",
        "code": "string",
        "contextInfo": [
          {
            "key": "string",
            "value": "string"
          }
        ]
      }
    }
  }
}

Response body

NameTypeRequiredDescription
dataobjectoptional
data.regenerateLocalIdeaContentobjectoptional
data.regenerateLocalIdeaContent.successbooleanoptional
data.regenerateLocalIdeaContent.ideaobjectoptionalThe updated post idea (see Local post idea for the full shape).
data.regenerateLocalIdeaContent.errorobjectoptional
data.regenerateLocalIdeaContent.error.messagestringoptional
data.regenerateLocalIdeaContent.error.codestringoptional
data.regenerateLocalIdeaContent.error.contextInfoarray of objectoptional
data.regenerateLocalIdeaContent.error.contextInfo[].keystringoptional
data.regenerateLocalIdeaContent.error.contextInfo[].valuestringoptional