Related queries and mutations in Integrations and connections. Each has its own section.
Mutations
triggerGithubActionDraftPrWorkflow (mutation)
triggerGithubActionDraftPrWorkflow is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Dispatches the customer's draft-PR workflow with a finding's context
Arguments
Returns
TriggerGithubActionDraftPrWorkflow
Example
mutation TriggerGithubActionDraftPrWorkflow($findingUuid: UUID!) {
triggerGithubActionDraftPrWorkflow(findingUuid: $findingUuid) {
success
}
}Types used only by triggerGithubActionDraftPrWorkflow
triggerGithubActionDraftPrWorkflowTriggerGithubActionDraftPrWorkflow
TriggerGithubActionDraftPrWorkflowObject type. Dispatch the customer's draft-PR workflow with a finding's context.
Sends compact finding context (monteCarloId, title, context, source) as
workflow_dispatch inputs to the workflow configured for the finding's
agent. The customer's workflow performs the code change and opens the
draft PR with its own credentials. Fails when the finding's agent has no
dispatch target configured or the finding carries no action context.
Requires draft-PR workflow dispatch to be enabled for your account.
| Field | Type | Description |
|---|---|---|
success | Boolean! | True when GitHub accepted the dispatch (the run itself is asynchronous) |
dispatch | GithubActionTriggerDispatch! | Execution record created for this dispatch; follow its status via getGithubActionTriggerDispatches |
Related types
GithubActionTriggerDispatch, UUID
updateAzureDevopsInstallation (mutation)
updateAzureDevopsInstallation is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Updates an Azure DevOps installation
Arguments
| Argument | Type | Description |
|---|---|---|
basicAuthCredentials | AzureDevopsBasicAuthCredentialsInput | Provide either basic credentials or OAuth credentials |
installationUuid | UUID! | Internal UUID of the installation to update |
oauthCredentials | AzureDevopsOauthCredentialsInput | Provide either basic credentials or OAuth credentials |
Returns
UpdateAzureDevopsInstallation
Example
mutation UpdateAzureDevopsInstallation($installationUuid: UUID!) {
updateAzureDevopsInstallation(installationUuid: $installationUuid) {
oauthRedirectUrl
}
}Types used only by updateAzureDevopsInstallation
updateAzureDevopsInstallationUpdateAzureDevopsInstallation
UpdateAzureDevopsInstallationObject type.
| Field | Type | Description |
|---|---|---|
installation | AzureDevopsInstallation | Updated Azure DevOps installation |
oauthRedirectUrl | String |
Related types
AzureDevopsBasicAuthCredentialsInput, AzureDevopsInstallation, AzureDevopsOauthCredentialsInput, UUID
updateCiGateConfig (mutation)
updateCiGateConfig is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Update CI gate policy for a GitHub installation
Arguments
| Argument | Type | Description |
|---|---|---|
blockOn | String | Which risk tiers cause the CI step to fail: low+, medium+, high+, or none |
failOn | String | Deprecated alias for blockOn. Use blockOn instead. |
installationUuid | UUID! | UUID of the installation to configure |
repo | String | Repository name for a per-repo override. Omit for installation default. |
Returns
UpdateCiGateConfig
Example
mutation UpdateCiGateConfig($installationUuid: UUID!) {
updateCiGateConfig(installationUuid: $installationUuid) {
success
}
}Types used only by updateCiGateConfig
updateCiGateConfigUpdateCiGateConfig
UpdateCiGateConfigObject type. Update CI gate policy configuration for a GitHub app installation.
When repo is provided, writes a per-repo override. When omitted,
writes the installation-wide default.
| Field | Type | Description |
|---|---|---|
success | Boolean! |
Related types
updateGithubActionTriggerDispatchConfig (mutation)
updateGithubActionTriggerDispatchConfig is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Sets an agent's draft-PR dispatch target on an action-trigger app installation
Arguments
| Argument | Type | Description |
|---|---|---|
agentTraceTableMcon | String! | Trace-table MCON of the agent this dispatch target applies to |
installationUuid | UUID! | UUID of the installation to configure |
ref | String | Git ref whose copy of the workflow is run (default: main) Default: "main". |
repo | String! | Repository name without owner — the owner is the installation's organization |
workflowFile | String! | Workflow file name in the repository, e.g. mc-draft-pr.yml |
Returns
UpdateGithubActionTriggerDispatchConfig
Example
mutation UpdateGithubActionTriggerDispatchConfig($agentTraceTableMcon: String!, $installationUuid: UUID!, $repo: String!, $workflowFile: String!) {
updateGithubActionTriggerDispatchConfig(agentTraceTableMcon: $agentTraceTableMcon, installationUuid: $installationUuid, repo: $repo, workflowFile: $workflowFile) {
agentTraceTableMcon
}
}Types used only by updateGithubActionTriggerDispatchConfig
updateGithubActionTriggerDispatchConfigUpdateGithubActionTriggerDispatchConfig
UpdateGithubActionTriggerDispatchConfigObject type. Set which customer workflow an agent's draft-PR dispatches target.
Upserts the agent's entry on the installation — other agents' dispatch
targets are unaffected.
| Field | Type | Description |
|---|---|---|
agentTraceTableMcon | String! | Trace-table MCON of the agent the stored dispatch target applies to |
dispatchConfig | GithubActionTriggerDispatchConfig! | The stored dispatch target |
Related types
GithubActionTriggerDispatchConfig, UUID
updateGithubInstallation (mutation)
updateGithubInstallation is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Updates settings for the Github app installation
Arguments
| Argument | Type | Description |
|---|---|---|
installationUuid | UUID! | Internal UUID of the installation to delete |
showImpactAnalysis | Boolean | If true, show impacted models and reports as a PR comment |
Returns
UpdateGithubAppInstallation
Example
mutation UpdateGithubInstallation($installationUuid: UUID!) {
updateGithubInstallation(installationUuid: $installationUuid) {
installation {
uuid
showImpactAnalysis
host
settingsLink
ghOrg
displayName
prAgentEnabled
}
}
}Types used only by updateGithubInstallation
updateGithubInstallationUpdateGithubAppInstallation
UpdateGithubAppInstallationObject type. Updates settings for the Github app installation
| Field | Type | Description |
|---|---|---|
installation | GithubAppInstallation | Updated installation |
Related types
updateGitlabInstallation (mutation)
updateGitlabInstallation is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Updates a Gitlab app
Arguments
| Argument | Type | Description |
|---|---|---|
installationUuid | UUID! | Internal UUID of the installation to update |
showImpactAnalysis | Boolean! | If true, show impacted models and reports as a Merge Request comment |
Returns
UpdateGitlabInstallation
Example
mutation UpdateGitlabInstallation($installationUuid: UUID!, $showImpactAnalysis: Boolean!) {
updateGitlabInstallation(installationUuid: $installationUuid, showImpactAnalysis: $showImpactAnalysis) {
installation {
uuid
showImpactAnalysis
host
displayName
prAgentEnabled
}
}
}Types used only by updateGitlabInstallation
updateGitlabInstallationUpdateGitlabInstallation
UpdateGitlabInstallationObject type.
| Field | Type | Description |
|---|---|---|
installation | GitlabAppInstallation | Updated GitLab installation |
Related types
updatePrAgentConfig (mutation)
updatePrAgentConfig is a mutation in the Monte Carlo GraphQL API, in Integrations and connections. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Update PR Agent configuration for a GitHub installation
Arguments
| Argument | Type | Description |
|---|---|---|
agentEnabledRepos | [String!] | Repos that PR Agent is allowed to review |
autoReviewEnabled | Boolean | Whether the agent reviews newly opened pull requests in enabled repos. When false, it only runs on an "mc review" comment. Only takes effect while the account has unrestricted usage. |
installationUuid | UUID! | UUID of the installation to configure |
riskFactorWeights | PrAgentRiskFactorWeightsInput | PR Risk Rubric category weights — integer percentages summing to 100. |
Returns
UpdatePrAgentConfig
Example
mutation UpdatePrAgentConfig($installationUuid: UUID!) {
updatePrAgentConfig(installationUuid: $installationUuid) {
success
}
}Types used only by updatePrAgentConfig
updatePrAgentConfigPrAgentRiskFactorWeightsInput
PrAgentRiskFactorWeightsInputInput object type. Input for setting PR Risk Rubric category weights.
All 6 fields are required because the values must sum to 100; partial
payloads are not meaningful.
| Field | Type | Description |
|---|---|---|
lineageBlastRadius | Int! | |
assetCriticality | Int! | |
schemaContract | Int! | |
codeReview | Int! | |
monitoring | Int! | |
historicalSignal | Int! |
UpdatePrAgentConfig
UpdatePrAgentConfigObject type. Update PR Agent configuration for a GitHub app installation.
Each optional argument is independent: when its value is non-null the
field is validated and persisted; when omitted or explicitly null the
field is left unchanged. Empty list / empty input object still count as
a real value (e.g. agentEnabledRepos: [] clears the allowlist).
| Field | Type | Description |
|---|---|---|
success | Boolean! |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
