Skip to main content

Clone a Project

Create a new Project from an existing Project and selectively copy resources. This is a superadmin operation. Choose included resource types and exclusions deliberately; copied clinical data can contain sensitive information.

MethodPath
POST/fhir/R4/Project/:id/$clone

Request​

curl --request POST \
--url "https://api.sandbox.ovok.com/fhir/R4/Project/${PROJECT_ID}/\$clone" \
--header "Authorization: Bearer ${OVOK_TOKEN}" \
--header 'Content-Type: application/fhir+json' \
--data '{"name":"Sandbox copy","resourceTypes":["Patient","Observation"],"includeIds":[],"excludeIds":[]}'
Body fieldTypeDescription
namestringName for the new Project.
resourceTypesstring arrayResource types to copy.
includeIdsstring arrayOptional IDs to include in the clone.
excludeIdsstring arrayOptional IDs to omit.

Successful response​

The operation creates and returns the new FHIR Project resource, typically with 201 Created.

Project fieldDescription
resourceTypeProject.
idServer-assigned ID of the cloned Project.
nameName supplied for the new Project.

Only an authorized superadmin can perform this operation.