---
title: "Save an instance AI prompt"
method: PUT
path: "/admin/ai-prompts/{key}"
tags: ["Admin"]
---

# Save an instance AI prompt

`PUT /admin/ai-prompts/{key}`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/admin/ai-prompts/{key}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

## Path parameters

- `key` string, required: Prompt catalogue key

## Request body

- SaveAIPromptInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `value` string, required

## Response `200`

OK

- AIPromptResponse
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `default_value` string, required
  - `default_version` string, required
  - `key` string, required
  - `kind` 'base' | 'platform', required
  - `overridden` boolean, required
  - `platform` string
  - `updated_at` string
  - `updated_by` string
  - `value` string, required

## Other responses

- `default`: Error

---

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