Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Path parameters
promptIdstringRequiredThe prompt ID.
Request body Required
The request.
application/json
namestringRequired1 maxLength: 255 The display name.
descriptionstring or nullOptional2000 The optional description.
textstringRequired1 maxLength: 32000 The prompt HTML with optional context mentions.
Responses
200 OK
application/json
isOfficialbooleanOptionalWhether a workspace admin marked this item as official. False when metadata is disabled.
tagsarray of object or nullOptionalThe canonical AI tags. Empty when metadata is disabled.
Show 4 properties
idstringOptionalThe stable identifier of this workspace tag.
namestring or nullOptionalThe shared display name.
colorstring or nullOptionalThe shared display color.
assignmentCountinteger or nullOptionalThe number of active agents, skills, prompts, and connectors that use this tag. Only set by the tag list.
canEditTagsbooleanOptionalWhether the current viewer can replace this item's tags.
canSetOfficialbooleanOptionalWhether the current viewer can change this item's official status.
idstringOptionalThe prompt ID.
namestring or nullOptionalThe display name.
descriptionstring or nullOptionalThe optional description.
textstring or nullOptionalThe prompt markup with entity reference nodes.
userIdstringOptionalThe owning user.
createdBystringOptionalThe user who created the prompt.
createdOnstringOptionalThe creation time.
updatedOnstring or nullOptionalThe last update time.
accessLevelstring or nullOptionalThe effective read or manage access.
isOwnerbooleanOptionalWhether the caller owns the prompt.
hasAdminAccessOnlybooleanOptionalWhether only workspace administration grants access.
workspaceAccessLevelstring or nullOptionalThe workspace access level.
400 Bad Request
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.
401 Unauthorized
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.
404 Not Found
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.