Retrieve prompt version
POST/v1/private/prompts/versions/retrieve
Retrieve prompt version
Request
- application/json
Body
name stringrequired
commit string
Responses
- 200
- 400
- 404
- 422
OK
- application/json
- Schema
- Example (from schema)
Schema
id uuid
version unique identifier, generated if absent
prompt_id uuid
commit string
Possible values: Value must match regular expression ^[a-zA-Z0-9]{8}$
version short unique identifier, generated if absent. it must be 8 characters long
template stringrequired
variables string[]
created_at date-time
created_by string
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"prompt_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"commit": "string",
"template": "string",
"variables": [
"string"
],
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
code int32
message string
details string
{
"code": 0,
"message": "string",
"details": "string"
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
code int32
message string
details string
{
"code": 0,
"message": "string",
"details": "string"
}
Unprocessable Content
- application/json
- Schema
- Example (from schema)
Schema
code int32
message string
details string
{
"code": 0,
"message": "string",
"details": "string"
}
Loading...