Create prompt
POST/v1/private/prompts
Create prompt
Request
- application/json
Body
id uuid
name stringrequired
description string
Possible values: Value must match regular expression (?s)^\s*(\S.*\S|\S)\s*$
template string
Possible values: Value must match regular expression (?s)^\s*(\S.*\S|\S)\s*$
Responses
- 201
- 400
- 409
- 422
Created
Response Headers
Location
string
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
code int32
message string
details string
{
"code": 0,
"message": "string",
"details": "string"
}
Conflict
- 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...