Update a prompt

Updates an existing prompt. Only provided fields are updated.

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired
Prompt TypeID

Request

This endpoint expects an object.
modelstringOptionalDefaults to kimi-k2.6
namestringOptional1-255 characters
responseFormatenumOptionalDefaults to json
Allowed values:
systemPromptstringOptional
textstringOptional>=1 character
userPromptstringOptional

Response

Updated prompt
createdAtstring
estimatedCoststring or null
estimatedTokensinteger or null
idstring
modelstring
namestring
organizationIdstring or null
responseFormatstring
textstring
updatedAtstring
userIdstring
systemPromptstring or null
userPromptstring or null

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error