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

keystring required

Prompt catalogue key

Request body

$schemastring uri

A URL to the JSON Schema for this object.

valuestring required

Example request

{
  "$schema": "https://example.com/api/v1/schemas/SaveAIPromptInputBody.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

default_valuestring required
default_versionstring required
keystring required
kind'base' | 'platform' required
overriddenboolean required
platformstring
updated_atstring
updated_bystring
valuestring required

Example response

{
  "$schema": "https://example.com/api/v1/schemas/AIPromptResponse.json"
}

Changes

No recorded changes to this operation across all 1 revision of this API.