v3

latestOpenAPI 3.1.02026-07-311,4541,5202.3 MB
prompts

Update Prompt

PATCH handler with superadmin lock and field protection.

Checks:

  1. Object lock (is_managed=True -> non-superadmins can't modify)
  2. Field protection (non-superadmins can't modify specific fields)
patch/api/prompts/{prompt_id}/

Path parameters

prompt_idstring required

Headers

Authorizationstring required

Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.

Request body

namestring
descriptionstring
prompt_slugstring nullable
starredboolean
is_exampleboolean
blurredboolean
deleted_atstring date-time nullable
organizationinteger
projectstring nullable
created_byinteger nullable

Response

idstring required
prompt_idstring required
namestring
descriptionstring
prompt_slugstring nullable
commit_countinteger required
starredboolean
is_exampleboolean
blurredboolean
deleted_atstring date-time nullable
organizationinteger required
projectstring nullable
created_byinteger nullable