For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DiscordPlatform
DocumentationIntegrationsAPI referenceSDKsChangelog
DocumentationIntegrationsAPI referenceSDKsChangelog
  • API Reference
      • POSTList prompts
      • POSTCreate a prompt
      • GETRetrieve a prompt
      • PATCHUpdate a prompt
      • DELDelete a prompt
      • POSTCreate a prompt version
      • GETList prompt versions
      • GETRetrieve a prompt version
      • PATCHUpdate a prompt version
      • DELDelete a prompt version
      • POSTCommit a prompt version
      • POSTDeploy a prompt version
      • GETGet prompts summary
      • POSTGet prompts summary with filters
  • Reference
    • Filters API Reference
LogoLogo
DiscordPlatform
API ReferencePrompts

Update a prompt

PATCH
https://api.respan.ai/api/prompts/:prompt_id/
PATCH
/api/prompts/:prompt_id/
$curl -X PATCH https://api.respan.ai/api/prompts/prompt_id/ \
> -H "Authorization: Bearer sk_live_xxxxx" \
> -H "Content-Type: application/json" \
> -d '{}'
1{
2 "id": "prompt_abc123",
3 "name": "Enhanced Customer Support Assistant",
4 "description": "Improved version with better context handling",
5 "updated_at": "2026-01-21T12:30:00Z"
6}
Update prompt metadata such as its name or description.
Was this page helpful?
Previous

Delete a prompt

Next
Built with

Path parameters

prompt_idstringRequired
The unique prompt identifier.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Request

This endpoint expects an object.
namestringOptional
Updated prompt name.
descriptionstringOptional
Updated prompt description.

Response

Prompt updated successfully.
idstring
namestring
descriptionstring or null
updated_atdatetime

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error