Skip to main content
PATCH
Update a preset draft
This endpoint requires a management API key with presets:write.
Use replace_config to replace the complete draft config. Otherwise supplied config fields are merged at the top level.

Authorizations

Authorization
string
header
required

Bearer token authentication

Path Parameters

id
string
required

Preset UUID, slug, or canonical name.

Body

application/json
name
string
Required string length: 2 - 100
Pattern: ^@[a-zA-Z0-9][a-zA-Z0-9_.-]*$
slug
string
description
string | null
Maximum string length: 500
config
object

Bounded gateway request defaults, including prompts, parameters, routing, and plugins.

replace_config
boolean

Replace the draft config instead of merging top-level fields.

visibility
enum<string>
Available options:
private,
team,
public
versioning_method
enum<string>
Available options:
sequential,
semver,
date

Response

Updated preset draft

data
object
required
Last modified on August 30, 2026