- startIntegrationInstallation
Arguments
Return type
Integrationmutation startIntegrationInstallation($platformType: PlatformType!) {
startIntegrationInstallation(platformType: $platformType) {
integration {
__typename
# ...IntegrationFragment
}
error
redirectUri
claudeCodeConfig {
__typename
# ...ClaudeCodeConfigFragment
}
gitHubCopilotConfig {
__typename
# ...GitHubCopilotConfigFragment
}
}
}{ "platformType": "POWERPLATFORM" }
{ "data": { "integration": { "__typename": "Integration" }, "error": "Example String", "redirectUri": "Example String", "claudeCodeConfig": { "__typename": "ClaudeCodeConfig" }, "gitHubCopilotConfig": { "__typename": "GitHubCopilotConfig" } } }
Arguments
Return type
Integration!mutation finishIntegrationInstallation($installIntegrationInput: InstallIntegrationInput!) {
finishIntegrationInstallation(installIntegrationInput: $installIntegrationInput) {
platform {
__typename
# ...PlatformFragment
}
status
description
error
}
}{ "installIntegrationInput": { "platformType": "POWERPLATFORM", "code": "Example String", "state": "Example String", "roleArn": "Example String" } }
{ "data": { "platform": { "__typename": "Platform" }, "status": "DISABLED", "description": "Example String", "error": "Example String" } }
Arguments
Return type
Integration!mutation updateIntegrationStatus($platformType: PlatformType!, $enabled: Boolean!) {
updateIntegrationStatus(platformType: $platformType, enabled: $enabled) {
platform {
__typename
# ...PlatformFragment
}
status
description
error
}
}{ "platformType": "POWERPLATFORM", "enabled": true }
{ "data": { "platform": { "__typename": "Platform" }, "status": "DISABLED", "description": "Example String", "error": "Example String" } }
Arguments
Return type
Integration!mutation syncIntegration($platformType: PlatformType!) {
syncIntegration(platformType: $platformType) {
platform {
__typename
# ...PlatformFragment
}
status
description
error
}
}{ "platformType": "POWERPLATFORM" }
{ "data": { "platform": { "__typename": "Platform" }, "status": "DISABLED", "description": "Example String", "error": "Example String" } }
Arguments
Return type
Agent!mutation syncAgent($agentId: ID!) {
syncAgent(agentId: $agentId) {
externalId
id
platform {
__typename
# ...PlatformFragment
}
name
environment {
__typename
# ...EnvironmentFragment
}
owner {
__typename
# ...OwnerFragment
}
accessibility
description
nodes {
id
name
}
edges {
connectionA
connectionB
direction
type
}
tools {
__typename
# ...ToolFragment
}
createdAt
updatedAt
highestIssueSeverity {
__typename
# ...IssueFragment
}
usage {
__typename
# ...UsageFragment
}
findings {
__typename
# ...FindingFragment
}
detections {
__typename
# ...DetectionTypeAggregationFragment
}
isRuntimeProtected
}
}{ "agentId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4" }
{ "data": { "externalId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "platform": { "__typename": "Platform" }, "name": "Example String", "environment": { "__typename": "Environment" }, "owner": { "__typename": "Owner" }, "accessibility": "PUBLIC", "description": "Example String", "nodes": [ { "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "name": "Example String" } ], "edges": [ { "connectionA": "Example String", "connectionB": "Example String", "direction": "ATOB", "type": "NORMAL" } ], "tools": [ { "__typename": "Tool" } ], "createdAt": "Example Custom Scalar", "updatedAt": "Example Custom Scalar", "highestIssueSeverity": { "__typename": "Issue" }, "usage": { "__typename": "Usage" }, "findings": [ { "__typename": "Finding" } ], "detections": [ { "__typename": "DetectionTypeAggregation" } ], "isRuntimeProtected": true } }
Arguments
Return type
Integrationmutation testIntegrationConnection($input: TestIntegrationConnectionInput!) {
testIntegrationConnection(input: $input) {
success
error {
__typename
# ...IntegrationTestErrorFragment
}
}
}{ "input": { "platformType": "POWERPLATFORM", "roleArn": "Example String" } }
{ "data": { "success": true, "error": { "__typename": "IntegrationTestError" } } }
Arguments
Return type
Flow!mutation syncFlow($flowId: ID!) {
syncFlow(flowId: $flowId) {
id
externalId
name
description
platform {
__typename
# ...PlatformFragment
}
environment {
__typename
# ...EnvironmentFragment
}
owner {
__typename
# ...OwnerFragment
}
status
mode
version
graph {
__typename
# ...FlowGraphFragment
}
agents {
__typename
# ...AgentPreviewFragment
}
tools {
__typename
# ...ToolPreviewFragment
}
dataSources {
__typename
# ...DataSourcePreviewFragment
}
findings {
__typename
# ...FindingFragment
}
issues {
__typename
# ...IssueFragment
}
createdAt
updatedAt
capturedAt
platformCreatedAt
platformUpdatedAt
metadata
}
}{ "flowId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4" }
{ "data": { "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "externalId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "name": "Example String", "description": "Example String", "platform": { "__typename": "Platform" }, "environment": { "__typename": "Environment" }, "owner": { "__typename": "Owner" }, "status": "ACTIVE", "mode": "SYNC", "version": "Example String", "graph": { "__typename": "FlowGraph" }, "agents": [ { "__typename": "AgentPreview" } ], "tools": [ { "__typename": "ToolPreview" } ], "dataSources": [ { "__typename": "DataSourcePreview" } ], "findings": [ { "__typename": "Finding" } ], "issues": [ { "__typename": "Issue" } ], "createdAt": "Example Custom Scalar", "updatedAt": "Example Custom Scalar", "capturedAt": "Example Custom Scalar", "platformCreatedAt": "Example Custom Scalar", "platformUpdatedAt": "Example Custom Scalar", "metadata": "Example Custom Scalar" } }
Create a new policy
Arguments
Return type
Policy!Unique identifier for the policy
Policy name
Detailed description of what the policy does
Current enforcement mode of the policy
Current status of the policy
Event that triggers policy evaluation
Conditions that must be met for the policy to match
Actions to execute when policy conditions match
Automatically resolve issues when conditions are no longer met
Indicates if this policy is a system default or custom/modified by the tenant
Number of issues created by this policy
When the policy was last executed
When the policy was created
When the policy was last updated
User who created the policy
User who last updated the policy
Version number, incremented on each update
When the policy was soft-deleted (null if active)
Effective environment types where this policy applies. Returns specific environments if conditions include environment filters, or all environments (Prod, Sandbox, Dev) if no environment filter is specified.
mutation createPolicy($input: CreatePolicyInput!) {
createPolicy(input: $input) {
id
name
description
mode
status
trigger {
__typename
# ...PolicyTriggerFragment
}
conditions {
__typename
# ...PolicyConditionGroupFragment
}
actions {
__typename
# ...PolicyActionFragment
}
autoResolve
isDefault
issuesCount
lastExecutedAt
createdAt
updatedAt
createdBy {
__typename
# ...OwnerFragment
}
updatedBy {
__typename
# ...OwnerFragment
}
version
deletedAt
environmentTypes
}
}{ "input": { "name": "Example String", "trigger": { "__typename": "PolicyTriggerInput" }, "conditions": { "__typename": "PolicyConditionGroupInput" }, "actions": [ { "__typename": "PolicyActionInput" } ], "autoResolve": true } }
{ "data": { "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "name": "Example String", "description": "Example String", "mode": "DRAFT", "status": "ACTIVE", "trigger": { "__typename": "PolicyTrigger" }, "conditions": { "__typename": "PolicyConditionGroup" }, "actions": [ { "__typename": "PolicyAction" } ], "autoResolve": true, "isDefault": true, "issuesCount": 40, "lastExecutedAt": "Example Custom Scalar", "createdAt": "Example Custom Scalar", "updatedAt": "Example Custom Scalar", "createdBy": { "__typename": "Owner" }, "updatedBy": { "__typename": "Owner" }, "version": 40, "deletedAt": "Example Custom Scalar", "environmentTypes": [ "Prod" ] } }
Update an existing policy
Arguments
Return type
Policy!Unique identifier for the policy
Policy name
Detailed description of what the policy does
Current enforcement mode of the policy
Current status of the policy
Event that triggers policy evaluation
Conditions that must be met for the policy to match
Actions to execute when policy conditions match
Automatically resolve issues when conditions are no longer met
Indicates if this policy is a system default or custom/modified by the tenant
Number of issues created by this policy
When the policy was last executed
When the policy was created
When the policy was last updated
User who created the policy
User who last updated the policy
Version number, incremented on each update
When the policy was soft-deleted (null if active)
Effective environment types where this policy applies. Returns specific environments if conditions include environment filters, or all environments (Prod, Sandbox, Dev) if no environment filter is specified.
mutation updatePolicy($id: ID!, $input: UpdatePolicyInput!) {
updatePolicy(id: $id, input: $input) {
id
name
description
mode
status
trigger {
__typename
# ...PolicyTriggerFragment
}
conditions {
__typename
# ...PolicyConditionGroupFragment
}
actions {
__typename
# ...PolicyActionFragment
}
autoResolve
isDefault
issuesCount
lastExecutedAt
createdAt
updatedAt
createdBy {
__typename
# ...OwnerFragment
}
updatedBy {
__typename
# ...OwnerFragment
}
version
deletedAt
environmentTypes
}
}{ "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "input": { "name": "Example String", "description": "Example String", "trigger": { "__typename": "PolicyTriggerInput" }, "conditions": { "__typename": "PolicyConditionGroupInput" }, "actions": [ { "__typename": "PolicyActionInput" } ], "autoResolve": true } }
{ "data": { "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "name": "Example String", "description": "Example String", "mode": "DRAFT", "status": "ACTIVE", "trigger": { "__typename": "PolicyTrigger" }, "conditions": { "__typename": "PolicyConditionGroup" }, "actions": [ { "__typename": "PolicyAction" } ], "autoResolve": true, "isDefault": true, "issuesCount": 40, "lastExecutedAt": "Example Custom Scalar", "createdAt": "Example Custom Scalar", "updatedAt": "Example Custom Scalar", "createdBy": { "__typename": "Owner" }, "updatedBy": { "__typename": "Owner" }, "version": 40, "deletedAt": "Example Custom Scalar", "environmentTypes": [ "Prod" ] } }
Update policy mode
Arguments
Return type
Policy!Unique identifier for the policy
Policy name
Detailed description of what the policy does
Current enforcement mode of the policy
Current status of the policy
Event that triggers policy evaluation
Conditions that must be met for the policy to match
Actions to execute when policy conditions match
Automatically resolve issues when conditions are no longer met
Indicates if this policy is a system default or custom/modified by the tenant
Number of issues created by this policy
When the policy was last executed
When the policy was created
When the policy was last updated
User who created the policy
User who last updated the policy
Version number, incremented on each update
When the policy was soft-deleted (null if active)
Effective environment types where this policy applies. Returns specific environments if conditions include environment filters, or all environments (Prod, Sandbox, Dev) if no environment filter is specified.
mutation updatePolicyMode($id: ID!, $mode: PolicyMode!) {
updatePolicyMode(id: $id, mode: $mode) {
id
name
description
mode
status
trigger {
__typename
# ...PolicyTriggerFragment
}
conditions {
__typename
# ...PolicyConditionGroupFragment
}
actions {
__typename
# ...PolicyActionFragment
}
autoResolve
isDefault
issuesCount
lastExecutedAt
createdAt
updatedAt
createdBy {
__typename
# ...OwnerFragment
}
updatedBy {
__typename
# ...OwnerFragment
}
version
deletedAt
environmentTypes
}
}{ "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "mode": "DRAFT" }
{ "data": { "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "name": "Example String", "description": "Example String", "mode": "DRAFT", "status": "ACTIVE", "trigger": { "__typename": "PolicyTrigger" }, "conditions": { "__typename": "PolicyConditionGroup" }, "actions": [ { "__typename": "PolicyAction" } ], "autoResolve": true, "isDefault": true, "issuesCount": 40, "lastExecutedAt": "Example Custom Scalar", "createdAt": "Example Custom Scalar", "updatedAt": "Example Custom Scalar", "createdBy": { "__typename": "Owner" }, "updatedBy": { "__typename": "Owner" }, "version": 40, "deletedAt": "Example Custom Scalar", "environmentTypes": [ "Prod" ] } }