Skip to main content
POST
/
presets
Create Preset
curl --request POST \
  --url https://api.example.com/presets/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "prompt_ids": [
    "<string>"
  ],
  "icon": "<string>",
  "category": "<string>",
  "preset_type": "user"
}
'
{
  "id": "<string>",
  "email": "<string>",
  "preset_type": "<string>",
  "title": "<string>",
  "prompt_ids": [
    "<string>"
  ],
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "icon": "<string>",
  "category": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request model for creating a new preset.

title
string
required

Preset title

Required string length: 1 - 200
prompt_ids
string[]
required

Array of prompt UUIDs

Minimum array length: 1
icon
string | null

Icon identifier

Maximum string length: 100
category
string | null

Category name

Maximum string length: 100
preset_type
string
default:user

Preset type: 'user' or 'system'

Response

Successful Response

Response model for a single preset.

id
string
required
email
string
required
preset_type
string
required
title
string
required
prompt_ids
string[]
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
icon
string | null
category
string | null