---
title: "Set location image credits"
method: POST
path: "/local-post-ideas/set-location-image-credits"
tags: ["Local Post Ideas"]
---

# Set location image credits

`POST /local-post-ideas/set-location-image-credits`

## Request

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

Sets the monthly image-generation credit limit for a location and whether image-credit metering is active. Returns the updated credit status.

## Headers

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

## Request body

- SetLocationImageCreditsRequest
  - `locationId` string, required
  - `monthlyLimit` integer
  - `isActive` boolean

## Response `200`

Successful response

- object
  - `data` object
    - `setLocationImageCredits` LocalImageCredits
      - `locationId` string
      - `monthlyLimit` integer
      - `isActive` boolean
      - `usedThisMonth` integer
      - `remainingThisMonth` integer
      - `addonPurchased` integer
      - `addonConsumed` integer
      - `addonRemaining` integer

## 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)
