Related queries and mutations in AI features. Each has its own section.
Queries
getCoverageDraft (query)
getCoverageDraft is a query in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get one coverage draft of a domain in any status, such as one that was approved, declined or replaced. Null when the domain has no draft with that id
Arguments
Returns
Example
query GetCoverageDraft($domainUuid: UUID!, $draftId: UUID!) {
getCoverageDraft(domainUuid: $domainUuid, draftId: $draftId) {
id
domainUuid
status
source
proposal
threadUuid
createdBy
resolvedBy
createdTime
remindedTime
resolvedTime
}
}Related types
getDomainCoverageDraft (query)
getDomainCoverageDraft is a query in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get the pending coverage draft of a domain, or null
Arguments
| Argument | Type | Description |
|---|---|---|
domainUuid | UUID! | UUID of the metadata domain. |
Returns
Example
query GetDomainCoverageDraft($domainUuid: UUID!) {
getDomainCoverageDraft(domainUuid: $domainUuid) {
id
domainUuid
status
source
proposal
threadUuid
createdBy
resolvedBy
createdTime
remindedTime
resolvedTime
}
}Related types
Mutations
createCoverageDraft (mutation)
createCoverageDraft is a mutation in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Create a domain's pending coverage draft. It supersedes the domain's earlier pending draft
Arguments
| Argument | Type | Description |
|---|---|---|
domainUuid | UUID! | UUID of the metadata domain. |
increment | CoverageIncrementInput! | The part of the domain the draft covers. |
proposal | GenericScalar | The proposed plan. Required for a scheduled draft. |
source | CoverageDraftSource! | Who started the draft: the weekly schedule or a person in chat. |
threadUuid | UUID | Chat thread of the draft. Required for a draft started in chat. |
Returns
CreateCoverageDraft
Example
mutation CreateCoverageDraft($domainUuid: UUID!, $increment: CoverageIncrementInput!, $source: CoverageDraftSource!) {
createCoverageDraft(domainUuid: $domainUuid, increment: $increment, source: $source) {
draft {
id
domainUuid
status
source
proposal
threadUuid
createdBy
resolvedBy
createdTime
remindedTime
resolvedTime
}
}
}Types used only by createCoverageDraft
createCoverageDraftCoverageIncrementInput
CoverageIncrementInputInput object type. The part of a domain a coverage draft covers.
| Field | Type | Description |
|---|---|---|
useCaseUuids | [String!] | Use cases the draft covers. |
schemas | [String!] | Schemas the draft covers, for a domain with no use cases. |
CreateCoverageDraft
CreateCoverageDraftObject type. Create a domain's pending coverage draft.
| Field | Type | Description |
|---|---|---|
draft | CoverageDraft! |
Related types
CoverageDraft, CoverageDraftSource, GenericScalar, UUID
markCoverageDraftReminded (mutation)
markCoverageDraftReminded is a mutation in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Record the one reminder for a pending coverage draft. A second reminder is refused
Arguments
Returns
MarkCoverageDraftReminded
Example
mutation MarkCoverageDraftReminded($domainUuid: UUID!, $draftId: UUID!) {
markCoverageDraftReminded(domainUuid: $domainUuid, draftId: $draftId) {
draft {
id
domainUuid
status
source
proposal
threadUuid
createdBy
resolvedBy
createdTime
remindedTime
resolvedTime
}
}
}Types used only by markCoverageDraftReminded
markCoverageDraftRemindedMarkCoverageDraftReminded
MarkCoverageDraftRemindedObject type. Record the reminder for a pending coverage draft.
| Field | Type | Description |
|---|---|---|
draft | CoverageDraft! |
Related types
resolveCoverageDraft (mutation)
resolveCoverageDraft is a mutation in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Approve or decline a pending coverage draft. Only a person may do either. Approving needs write access to monitors on the domain and a draft with a proposal. A replaced draft is refused
Arguments
Returns
ResolveCoverageDraft
Example
mutation ResolveCoverageDraft($decision: CoverageDraftDecision!, $domainUuid: UUID!, $draftId: UUID!) {
resolveCoverageDraft(decision: $decision, domainUuid: $domainUuid, draftId: $draftId) {
draft {
id
domainUuid
status
source
proposal
threadUuid
createdBy
resolvedBy
createdTime
remindedTime
resolvedTime
}
}
}Types used only by resolveCoverageDraft
resolveCoverageDraftCoverageDraftDecision
CoverageDraftDecisionEnum type. A person's answer to a pending coverage draft.
| Value | Description |
|---|---|
APPROVED | |
DECLINED |
ResolveCoverageDraft
ResolveCoverageDraftObject type. Approve or decline a pending coverage draft.
| Field | Type | Description |
|---|---|---|
draft | CoverageDraft! |
Related types
setCoverageDraftProposal (mutation)
setCoverageDraftProposal is a mutation in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Fill the proposal of a pending coverage draft that has none
Arguments
| Argument | Type | Description |
|---|---|---|
domainUuid | UUID! | UUID of the metadata domain. |
draftId | UUID! | Id of the pending draft being acted on. |
proposal | GenericScalar! | The proposed plan. |
Returns
SetCoverageDraftProposal
Example
mutation SetCoverageDraftProposal($domainUuid: UUID!, $draftId: UUID!, $proposal: GenericScalar!) {
setCoverageDraftProposal(domainUuid: $domainUuid, draftId: $draftId, proposal: $proposal) {
draft {
id
domainUuid
status
source
proposal
threadUuid
createdBy
resolvedBy
createdTime
remindedTime
resolvedTime
}
}
}Types used only by setCoverageDraftProposal
setCoverageDraftProposalSetCoverageDraftProposal
SetCoverageDraftProposalObject type. Fill the proposal of a pending coverage draft.
| Field | Type | Description |
|---|---|---|
draft | CoverageDraft! |
Related types
CoverageDraft, GenericScalar, UUID
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
