curl --request PUT \
--url https://api.example.com/presets/{preset_id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"icon": "<string>",
"category": "<string>",
"prompt_ids": [
"<string>"
]
}
'{
"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>"
}Update an existing preset.
curl --request PUT \
--url https://api.example.com/presets/{preset_id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"icon": "<string>",
"category": "<string>",
"prompt_ids": [
"<string>"
]
}
'{
"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.
Was this page helpful?