Get prompt version by id
GET/v1/private/prompts/versions/:versionId
Get prompt version by id
Request
Path Parameters
versionId uuidrequired
Responses
- 200
- 404
Prompt version resource
- 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"
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
code int32
message string
details string
{
"code": 0,
"message": "string",
"details": "string"
}
Loading...