prompts
prompts

Update Prompt

Update an existing prompt.

If updating a system prompt (workspace_id=NULL), automatically creates a customized copy for the workspace with the changes applied.

put/api/prompts/{prompt_id}

Request

  • Base URL: https://api.dialogbrain.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.dialogbrain.com/api/prompts/{prompt_id}
  • Auth: none declared

Path parameters

prompt_idinteger required

Request body

namestring nullable
descriptionstring nullable
categorystring nullable
context_typestring[] nullable
tagsstring[] nullable
prompt_textstring nullable
auto_reply_rulesstring nullable
modelstring nullable
cooldown_minutesinteger nullable
max_per_dayinteger nullable
is_archivedboolean nullable

Response

Successful Response

idinteger required
user_idinteger nullable required
namestring required
descriptionstring nullable required
categorystring required
context_typestring[] required
tagsstring[] required
prompt_textstring required
auto_reply_rulesstring nullable
modelstring required
cooldown_minutesinteger required
max_per_dayinteger required
advanced_settingsobject required
sort_orderinteger required
is_archivedboolean required
created_atstring required
updated_atstring required
is_systemboolean
is_customizedboolean
based_on_system_idinteger nullable
is_default_forstring[] nullable
assignment_countinteger

Changes

No recorded changes to this operation across all 5 revisions of this API.