prompts

Set Selected Global Template Version

Set a global prompt template version as the selected version.

Parameters

template_id : UUID4 Prompt template id. version : int Version number.

Returns

BasePromptTemplateResponse Details about the prompt template.

put/templates/{template_id}/versions/{version}

Path parameters

template_idstring uuid4 required
versioninteger required

Response

Successful Response

idstring uuid4 required
templatestring required
selected_version_idstring uuid4 required
all_available_versionsinteger[] required
total_versionsinteger required
max_versioninteger required
created_atstring date-time required
updated_atstring date-time required

Changes

Changed in 3 of the 14 revisions of this API.31

    • added the new read_unredacted_data enum value to the permissions/items/action/anyOf[subschema #12: OrganizationAction]/ response property for the response status 200

      response-property-enum-value-added

    • added the new read_ai_usage_organization enum value to the permissions/items/action/anyOf[subschema #12: OrganizationAction]/ response property for the response status 200

      response-property-enum-value-added

    This revision also has 15 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 05003e7835a211See the full diff
    • added the new read_ai_usage enum value to the permissions/items/action/anyOf[subschema #12: OrganizationAction]/ response property for the response status 200

      response-property-enum-value-added

    • the endpoint scheme security ClassicAPIKeyHeader was added to the API

      api-security-added

    This revision also has 15 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog