Get prompt by id
GET/v1/private/prompts/:id
Get prompt by id
Request
Path Parameters
id uuidrequired
Responses
- 200
- 404
Prompt resource
- application/json
- Schema
- Example (from schema)
Schema
id uuid
name stringrequired
description string
Possible values: Value must match regular expression (?s)^\s*(\S.*\S|\S)\s*$
created_at date-time
created_by string
last_updated_at date-time
last_updated_by string
version_count int64
latest_version
object
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",
"name": "string",
"description": "string",
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": "string",
"last_updated_at": "2024-07-29T15:51:28.071Z",
"last_updated_by": "string",
"version_count": 0,
"latest_version": {
"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...