- createUser
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" ] } }
Update policy status
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 updatePolicyStatus($id: ID!, $status: PolicyStatus!) {
updatePolicyStatus(id: $id, status: $status) {
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", "status": "ACTIVE" }
{ "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" ] } }
Delete a policy
Arguments
Return type
Boolean!The Boolean scalar type represents true or false.
mutation deletePolicy($id: ID!) {
deletePolicy(id: $id)
}{ "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4" }
{ "data": true }
Arguments
Return type
User!mutation updateUser(
$id: ID!
$firstName: String!
$lastName: String!
$role: UserRole!
) {
updateUser(
id: $id
firstName: $firstName
lastName: $lastName
role: $role
) {
id
firstName
lastName
email
role
createdAt
updatedAt
status
}
}{ "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "firstName": "Example String", "lastName": "Example String", "role": "ADMIN" }
{ "data": { "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "firstName": "Example String", "lastName": "Example String", "email": "Example String", "role": "ADMIN", "createdAt": "Example Custom Scalar", "updatedAt": "Example Custom Scalar", "status": "ENABLED" } }
Arguments
Return type
IThe ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.
mutation removeUserFromTenant($id: ID!) {
removeUserFromTenant(id: $id)
}{ "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4" }
{ "data": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4" }
Arguments
Return type
User!mutation createUser(
$email: String!
$firstName: String!
$lastName: String!
$role: UserRole!
) {
createUser(
email: $email
firstName: $firstName
lastName: $lastName
role: $role
) {
id
firstName
lastName
email
role
createdAt
updatedAt
status
}
}{ "email": "Example String", "firstName": "Example String", "lastName": "Example String", "role": "ADMIN" }
{ "data": { "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "firstName": "Example String", "lastName": "Example String", "email": "Example String", "role": "ADMIN", "createdAt": "Example Custom Scalar", "updatedAt": "Example Custom Scalar", "status": "ENABLED" } }
Configure SSO for an organization
Arguments
Return type
Organizationmutation setOrganizationSSOConfiguration($config: ConfigureSSOInput!) {
setOrganizationSSOConfiguration(config: $config) {
enabled
values {
__typename
# ...OrganizationSSOConfigurationValuesFragment
}
}
}{ "config": { "signInEndpoint": "Example String", "signingCertBase64": "Example String", "domains": [ "Example String" ] } }
{ "data": { "enabled": true, "values": { "__typename": "OrganizationSSOConfigurationValues" } } }
Clear SSO configuration for an organization
Return type
Organizationmutation clearOrganizationSSOConfiguration {
clearOrganizationSSOConfiguration {
enabled
values {
__typename
# ...OrganizationSSOConfigurationValuesFragment
}
}
}{ "data": { "enabled": true, "values": { "__typename": "OrganizationSSOConfigurationValues" } } }