POST /profile/duplicate
Duplicate Profile
Duplicate a profile — composable infra architecture.
Request Body (DuplicateProfileApiRequest)
| Field | Type | Required | Description |
|---|---|---|---|
target_profile_id | string | Yes | UUID of the profile 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 (DuplicateProfileApiResponse)
| Field | Type | Required | Description |
|---|---|---|---|
success | boolean | Yes | Whether the duplication succeeded |
profile_id | string | Yes | UUID of the newly created profile |
message | string | Yes | Result message |
idempotency_key | string | No | Idempotency key echoed back for client correlation |
profiles | ListProfilesApiProfile[] | No | Hydrated row for the newly-created duplicate profile (mirrors /profile/search shape) |
Last updated on