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>"
}Create a new 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>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request model for creating a new preset.
Preset title
1 - 200Array of prompt UUIDs
1Icon identifier
100Category name
100Preset type: 'user' or 'system'
Was this page helpful?