prompts

Create Prompt Template With Version

For a given project, create a prompt template.

We first create a prompt template version, and then create a prompt template that points to that version as the selected version.

Parameters

project_id : UUID4 Project ID. create_request : CreatePromptTemplateWithVersionRequestBody, optional Request body, by default Body( ..., examples= [BasePromptTemplateVersion.test_data() | BasePromptTemplate.test_data()], )

Returns

CreatePromptTemplateResponse Details about the created prompt template.

post/projects/{project_id}/templates

Path parameters

project_idstring uuid4 required

Request body

rawboolean
versioninteger nullable
output_typestring nullable
hiddenboolean

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 4 of the 14 revisions of this API.35

    • 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

    • added the new optional request property settings/known_models/items/deprecation_date

      new-optional-request-property

    • added the new optional request property settings/known_models/items/lifecycle_state

      new-optional-request-property

    • added the new optional request property settings/known_models/items/replacement_alias

      new-optional-request-property

    • added the new optional request property settings/known_models/items/retirement_date

      new-optional-request-property

    This revision also has 8 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