/v1/private/prompts/versionsUpdate prompt versionsUpdate one or more prompt versions.
Note: Prompt versions are immutable by design. Only organizational properties, such as tags etc., can be updated. Core properties like template and metadata cannot be modified after creation.
PATCH semantics:
- non-empty values update the field
- null values preserve existing field values (no change)
- empty values explicitly clear the field
Request body
application/json
Request to update one or more prompt versions. Note: Prompt versions are immutable by design - only organizational properties (such as tags etc.) can be updated.
idsarray of string · uuidrequiredIDs of prompt versions to update
Show child attributes
merge_tagsbooleanTag merge behavior: - true: Add new tags to existing tags (union) - false: Replace all existing tags with new tags (default behaviour if not provided)
updateobjectrequiredUpdate to apply to prompt versions. Note: Prompt versions are immutable by design. Only organizational properties (such as tags etc.) can be updated. Core properties like template, metadata etc. cannot be modified after creation.
Show child attributes
tagsarray of stringTags to set or merge with existing tags. Follows PATCH semantics: - If merge_tags is true, these tags will be added to existing tags. - If merge_tags is false, these tags will replace all existing tags. - null: preserve existing tags (no change). - empty set: clear all tags when merge_tags is false.
Show child attributes
{
"ids": [
"00000000-0000-0000-0000-000000000000"
],
"merge_tags": false,
"update": {
"tags": [
"string"
]
}
}Responses
codeinteger · int32detailsstringmessagestring{
"code": 0,
"details": "string",
"message": "string"
}