---
title: "Upsert extended location config"
method: POST
path: "/local-post-ideas/upsert-extended-location-config"
tags: ["Local Post Ideas"]
---

# Upsert extended location config

`POST /local-post-ideas/upsert-extended-location-config`

## Request

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

Creates or updates the extended generation config for a location — brand tone, target customers, contact/address, brand colors and logos, and the services/products/content-rules that ground post-idea generation. Only the fields you send are changed. `services`, `products`, and `contentRules` are JSON values.

## Headers

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

## Request body

- UpsertExtendedLocationConfigRequest
  - `locationId` string, required
  - `tone` string
  - `targetCustomers` string
  - `country` string
  - `phone` string
  - `address` string
  - `location` string
  - `primaryColor` string
  - `secondaryColor` string
  - `logoLight` string
  - `logoDark` string
  - `services` object: Free-form JSON describing services.
  - `products` object: Free-form JSON describing products.
  - `contentRules` object: Free-form JSON content rules.
  - `additionalContext` string

## Response `200`

Successful response

- object
  - `data` object
    - `upsertExtendedLocationConfig` LocalMutationResponse
      - `success` boolean
      - `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)
