POST /setting/duplicate
Duplicate Setting
Duplicate a setting — composable infra architecture.
Request Body (DuplicateSettingApiRequest)
| Field | Type | Required | Description |
|---|---|---|---|
setting_id | string | Yes | UUID of the setting to duplicate |
idempotency_key | string | No | Operation key for ack — promotes or rejects a dormant duplicate |
soft | boolean | No | Stage the duplicate dormant (active=False) — propose; the ack ({idempotency_key, accept}) promotes/rejects it |
accept | boolean | No | Accept (promote) or reject dormant state. Only meaningful with idempotency_key |
Response (DuplicateSettingApiResponse)
| Field | Type | Required | Description |
|---|---|---|---|
success | boolean | Yes | Whether the duplication succeeded |
setting_id | string | Yes | UUID of the newly created setting |
message | string | Yes | Result message |
settings | ListSettingApiSetting[] | No | Hydrated list row(s) for the duplicated setting. Single-element list (kept as a list for shape consistency with create/update) so the client’s ghost rail can materialize the new card directly. |
idempotency_key | string | No | Idempotency key echoed back for client correlation |
Last updated on