v1

latestOpenAPI 3.0.22026-07-173834119.9 KB
Prompt Management

Get Prompt Template Version

Endpoint to Get a Specific Version of a Prompt Template

This endpoint gets a specific version of a prompt template by name and version.


Request Body

FieldTypeDescription
namestrThe name of the prompt template.
vnumintThe version of the prompt template.

Example Request Body

    ```json

    {
        "name": "CHATBOT_PROMPT",
        "vnum": 1
    }

    ```

Response Body

FieldTypeDescription
idstrThe ID of the prompt template.
namestrThe name of the prompt template.
prompt_templatestrThe prompt template.
versionintThe version of the prompt template.

Errors

  • 404 Not Found: If the prompt template version is not found.
  • 500 Internal Server Error: If there is an unexpected error during the retrieval of the prompt template version.
post/prompt/template/version

Request body

namestring required
vnuminteger required

Response

Successful Response

idstring required
namestring required
prompt_templatestring required
versioninteger required