Duplicate one or more static secrets into another environment
post/api/v4/secrets/duplicate
Request body
projectIdstring required
The ID of the project containing the secret.
sourceEnvironmentstring required
The slug of the source environment.
sourceSecretPathstring
The folder path of the source secret.
destinationEnvironmentstring required
The slug of the destination environment.
destinationSecretPathstring
The folder path where the secret will be duplicated to.
secretIdsstring[] required
Array of source secret IDs to duplicate. All secrets must belong to the source environment and path. Rotation and honey-token secrets cannot be duplicated. Maximum 50 secrets per request.
shouldOverwriteboolean
When true, overwrite an existing secret with the same key at the destination. When false (default), the request fails if the destination already has a secret with that key.