Skip to main content
POST
Copy Resources

Path Parameters

project_id
string
required

Body

application/json

Request body for the subgraph copy operation.

Attributes: resource_ids: Resource IDs to copy (roots of the subgraph). tags: Tags to apply to all copied resources. rewire_dependencies: If True, rewrite dependencies between copied resources to point to their copies instead of the originals. depth: Maximum traversal depth from roots. None means unlimited. strategy: Default copy strategy for resources that do not specify one.

resource_ids
string[]
required
Minimum array length: 1
tags
string[]
rewire_dependencies
boolean
default:true
depth
integer | null
Required range: x >= 0
strategy
enum<string>
default:stateless

Strategy for how a resource should be copied.

Attributes: STATELESS: Config-only copy. The resource is duplicated by creating a new instance with the same (or modified) configuration. No data migration. STATEFUL: Data-bearing copy. The resource needs to clone underlying data (e.g., database contents, vector indices) and may produce patches for ongoing synchronization.

Available options:
stateless,
stateful

Response

Successful Response

Response body for the subgraph copy operation.

Attributes: copied: List of per-resource copy results. total: Total resources in the selected subgraph. succeeded: Number of resources successfully copied. failed: Number of resources that failed to copy.

copied
CopyResourceResult · object[]
required
total
integer
required
succeeded
integer
required
failed
integer
required