Copy the transferable results from one bundle to another
curl --request POST \
--url https://api.example.com/rpc/copy-bundle \
--header 'Content-Type: application/json' \
--data '
{
"bundleId": "<string>",
"fromBundleId": "<string>"
}
'{
"id": "<string>",
"attachments": [
{
"approvalTimelineMap": {},
"createdAt": "<string>",
"createdBy": {},
"id": "<string>",
"identifier": {}
}
],
"classificationValue": "<string>",
"commentsCount": 123,
"createdAt": "<string>",
"createdBy": {},
"gates": [
{
"bundleId": "<string>",
"id": "<string>",
"isOpen": true,
"name": "<string>",
"policyGateId": "<string>",
"reason": "<string>",
"resources": [
{
"failOpen": true,
"parameters": {}
}
]
}
],
"name": "<string>",
"policies": [
{
"bundleId": "<string>",
"classificationValue": "<string>",
"createdAt": "<string>",
"deactivatedAt": "<string>",
"enforceSequentialOrder": true,
"isPolicyArchived": true,
"policyId": "<string>",
"policyName": "<string>",
"policyVersionId": "<string>",
"stage": "<string>"
}
],
"policyId": "<string>",
"policyName": "<string>",
"policyVersionId": "<string>",
"projectId": "<string>",
"projectName": "<string>",
"projectOwner": "<string>",
"stage": "<string>",
"stageApprovals": [
{
"approvers": [
{
"editable": true,
"id": "<string>",
"name": "<string>",
"showByDefault": true,
"fromOrganizationUserId": "<string>",
"isOrganizationUser": true
}
],
"evidence": {
"artifacts": [
{
"details": {},
"id": "<string>",
"required": true,
"visibilityRule": "<string>",
"visible": true
}
],
"createdAt": "<string>",
"description": "<string>",
"externalId": "<string>",
"id": "<string>",
"name": "<string>",
"policyId": "<string>",
"policyVersionId": "<string>",
"visible": true
},
"id": "<string>",
"name": "<string>",
"required": true
}
],
"stageAssignee": {
"id": "<string>",
"name": "<string>"
},
"stages": [
{
"assignedAt": "<string>",
"assignee": {
"id": "<string>",
"name": "<string>"
},
"bundleId": "<string>",
"stage": {
"approvals": [
{
"approvers": [
{
"editable": true,
"id": "<string>",
"name": "<string>",
"showByDefault": true,
"fromOrganizationUserId": "<string>",
"isOrganizationUser": true
}
],
"evidence": {
"artifacts": [
{
"details": {},
"id": "<string>",
"required": true,
"visibilityRule": "<string>",
"visible": true
}
],
"createdAt": "<string>",
"description": "<string>",
"externalId": "<string>",
"id": "<string>",
"name": "<string>",
"policyId": "<string>",
"policyVersionId": "<string>",
"visible": true
},
"id": "<string>",
"name": "<string>",
"required": true
}
],
"evidenceSet": [
{
"artifacts": [
{
"details": {},
"id": "<string>",
"required": true,
"visibilityRule": "<string>",
"visible": true
}
],
"createdAt": "<string>",
"description": "<string>",
"externalId": "<string>",
"id": "<string>",
"name": "<string>",
"policyId": "<string>",
"policyVersionId": "<string>",
"visible": true
}
],
"id": "<string>",
"name": "<string>",
"policyVersionId": "<string>"
},
"stageId": "<string>"
}
]
}rpc
Copy the transferable results from one bundle to another
Copy the transferable results from one bundle to another
POST
/
rpc
/
copy-bundle
Copy the transferable results from one bundle to another
curl --request POST \
--url https://api.example.com/rpc/copy-bundle \
--header 'Content-Type: application/json' \
--data '
{
"bundleId": "<string>",
"fromBundleId": "<string>"
}
'{
"id": "<string>",
"attachments": [
{
"approvalTimelineMap": {},
"createdAt": "<string>",
"createdBy": {},
"id": "<string>",
"identifier": {}
}
],
"classificationValue": "<string>",
"commentsCount": 123,
"createdAt": "<string>",
"createdBy": {},
"gates": [
{
"bundleId": "<string>",
"id": "<string>",
"isOpen": true,
"name": "<string>",
"policyGateId": "<string>",
"reason": "<string>",
"resources": [
{
"failOpen": true,
"parameters": {}
}
]
}
],
"name": "<string>",
"policies": [
{
"bundleId": "<string>",
"classificationValue": "<string>",
"createdAt": "<string>",
"deactivatedAt": "<string>",
"enforceSequentialOrder": true,
"isPolicyArchived": true,
"policyId": "<string>",
"policyName": "<string>",
"policyVersionId": "<string>",
"stage": "<string>"
}
],
"policyId": "<string>",
"policyName": "<string>",
"policyVersionId": "<string>",
"projectId": "<string>",
"projectName": "<string>",
"projectOwner": "<string>",
"stage": "<string>",
"stageApprovals": [
{
"approvers": [
{
"editable": true,
"id": "<string>",
"name": "<string>",
"showByDefault": true,
"fromOrganizationUserId": "<string>",
"isOrganizationUser": true
}
],
"evidence": {
"artifacts": [
{
"details": {},
"id": "<string>",
"required": true,
"visibilityRule": "<string>",
"visible": true
}
],
"createdAt": "<string>",
"description": "<string>",
"externalId": "<string>",
"id": "<string>",
"name": "<string>",
"policyId": "<string>",
"policyVersionId": "<string>",
"visible": true
},
"id": "<string>",
"name": "<string>",
"required": true
}
],
"stageAssignee": {
"id": "<string>",
"name": "<string>"
},
"stages": [
{
"assignedAt": "<string>",
"assignee": {
"id": "<string>",
"name": "<string>"
},
"bundleId": "<string>",
"stage": {
"approvals": [
{
"approvers": [
{
"editable": true,
"id": "<string>",
"name": "<string>",
"showByDefault": true,
"fromOrganizationUserId": "<string>",
"isOrganizationUser": true
}
],
"evidence": {
"artifacts": [
{
"details": {},
"id": "<string>",
"required": true,
"visibilityRule": "<string>",
"visible": true
}
],
"createdAt": "<string>",
"description": "<string>",
"externalId": "<string>",
"id": "<string>",
"name": "<string>",
"policyId": "<string>",
"policyVersionId": "<string>",
"visible": true
},
"id": "<string>",
"name": "<string>",
"required": true
}
],
"evidenceSet": [
{
"artifacts": [
{
"details": {},
"id": "<string>",
"required": true,
"visibilityRule": "<string>",
"visible": true
}
],
"createdAt": "<string>",
"description": "<string>",
"externalId": "<string>",
"id": "<string>",
"name": "<string>",
"policyId": "<string>",
"policyVersionId": "<string>",
"visible": true
}
],
"id": "<string>",
"name": "<string>",
"policyVersionId": "<string>"
},
"stageId": "<string>"
}
]
}Response
OK
Available options:
Active, Archived, Complete Show child attributes
Show child attributes
The classification value of the primary policy
Show child attributes
Show child attributes
Show child attributes
Show child attributes
The ID of the primary policy
The version of the primary policy
The stage of the primary policy
Show child attributes
Show child attributes
The assignee to the stage of the primary policy
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?
compute a policy within the context of a bundlePublish an approval event and get the computed approval
⌘I