/v2/agents/configs/{config_id}/cloneClone an Environment Config under a new name.
Copies the source config's sanitized manifest to a new UUID. Source and clone are independent (no lineage). Credential bindings are never copied: if the manifest declares secret slots, supply secrets/oauth_assignments again (write-only). content_hash matches the source when the manifest is unchanged.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Clone body with required new name plus write-only credentials for any declared slots.
A 400 is returned: Invalid name, missing credential slots, or source environment spec fails current durable validation. A 401 is returned: Authentication failed due to invalid credentials. A 404 is returned: The resource was not found. A 409 is returned: An active config with this name already exists for the team. A 413 is returned: Request body exceeds 1 MiB. A 415 is returned: Content-Type is not application/json. A 429 is returned: The API rate limit has been exceeded. A 500 is returned: There was a server error. Any other status is an error: There was an unexpected error.