Coverage drafts (GraphQL)

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

ArgumentTypeDescription
domainUuidUUID!UUID of the metadata domain.
draftIdUUID!Id of the draft.

Returns

CoverageDraft

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

CoverageDraft, UUID

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

ArgumentTypeDescription
domainUuidUUID!UUID of the metadata domain.

Returns

CoverageDraft

Example

query GetDomainCoverageDraft($domainUuid: UUID!) {
  getDomainCoverageDraft(domainUuid: $domainUuid) {
    id
    domainUuid
    status
    source
    proposal
    threadUuid
    createdBy
    resolvedBy
    createdTime
    remindedTime
    resolvedTime
  }
}

Related types

CoverageDraft, UUID

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

ArgumentTypeDescription
domainUuidUUID!UUID of the metadata domain.
incrementCoverageIncrementInput!The part of the domain the draft covers.
proposalGenericScalarThe proposed plan. Required for a scheduled draft.
sourceCoverageDraftSource!Who started the draft: the weekly schedule or a person in chat.
threadUuidUUIDChat 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

CoverageIncrementInput

Input object type. The part of a domain a coverage draft covers.

FieldTypeDescription
useCaseUuids[String!]Use cases the draft covers.
schemas[String!]Schemas the draft covers, for a domain with no use cases.
CreateCoverageDraft

Object type. Create a domain's pending coverage draft.

FieldTypeDescription
draftCoverageDraft!

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

ArgumentTypeDescription
domainUuidUUID!UUID of the metadata domain.
draftIdUUID!Id of the pending draft being acted on.

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

MarkCoverageDraftReminded

Object type. Record the reminder for a pending coverage draft.

FieldTypeDescription
draftCoverageDraft!

Related types

CoverageDraft, UUID

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

ArgumentTypeDescription
decisionCoverageDraftDecision!Whether to approve or decline the draft.
domainUuidUUID!UUID of the metadata domain.
draftIdUUID!Id of the pending draft being acted on.

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

CoverageDraftDecision

Enum type. A person's answer to a pending coverage draft.

ValueDescription
APPROVED
DECLINED
ResolveCoverageDraft

Object type. Approve or decline a pending coverage draft.

FieldTypeDescription
draftCoverageDraft!

Related types

CoverageDraft, UUID

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

ArgumentTypeDescription
domainUuidUUID!UUID of the metadata domain.
draftIdUUID!Id of the pending draft being acted on.
proposalGenericScalar!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

SetCoverageDraftProposal

Object type. Fill the proposal of a pending coverage draft.

FieldTypeDescription
draftCoverageDraft!

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.