---
title: "Generate local holiday idea variant"
method: POST
path: "/local-post-ideas/generate-holiday-idea-variant"
tags: ["Local Post Ideas"]
---

# Generate local holiday idea variant

`POST /local-post-ideas/generate-holiday-idea-variant`

## Request

- Base URL: `https://api.synup.com/api/v4`
- URL: `https://api.synup.com/api/v4/local-post-ideas/generate-holiday-idea-variant`
- Auth: none required
- TypeScript: <https://skmtc.dev/synup/apis/synup-api/docs/local-post-ideas/generate-holiday-idea-variant/post.ts> (a function with typed inputs; its response is checked against the schema)

Generates a new post-idea variant for a given observance/holiday at a location. Optionally steer with an `observanceDate` and `topic`.

## Headers

- `Synup-Version` string, required
- `Authorization` string, required

## Request body

- GenerateLocalHolidayIdeaVariantRequest
  - `locationId` string, required
  - `observanceName` string, required
  - `observanceDate` string
  - `topic` string

## Response `200`

Successful response

- object
  - `data` object
    - `generateLocalHolidayIdeaVariant` LocalRegenerateResponse
      - `success` boolean
      - `idea` object: The updated post idea (see Local post idea for the full shape).
      - `error` LocalError
        - `message` string
        - `code` string
        - `contextInfo` object[]
          - `key` string
          - `value` string

## Other responses

- `401`: Unauthorized - Invalid or missing API key

---

[API](https://skmtc.dev/synup/apis/synup-api.md) - [All operations](https://skmtc.dev/synup/apis/synup-api/llms.txt) - [OpenAPI document](https://skmtc.dev/synup/apis/synup-api/revisions/67de2d51c22e?raw)
