Users and accounts, part 2 of 2 (GraphQL)

Related queries and mutations in Users, accounts and access. Each has its own section.

Mutations

toggleMuteDatasets (mutation)

toggleMuteDatasets is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Deprecated

Start/Stop creating incidents for the given datasets

Arguments

ArgumentTypeDescription
inputToggleMuteDatasetsInput!

Returns

ToggleMuteDatasetsPayload

Example

mutation ToggleMuteDatasets($input: ToggleMuteDatasetsInput!) {
  toggleMuteDatasets(input: $input) {
    clientMutationId
  }
}

Types used only by toggleMuteDatasets

ToggleDatasetInputItem

Input object type.

FieldTypeDescription
dwIdUUID!Warehouse the dataset is contained in.
dsIdUUID!ID of the dataset.
ToggleMuteDatasetsInput

Input object type.

FieldTypeDescription
datasets[ToggleDatasetInputItem]The datasets being muted
muteBoolean!True for muting the table, False for un-muting
mutedEventTypes[MutedEventType]Restrict muting to the following event types (optional)
clientMutationIdString
ToggleMuteDatasetsPayload

Object type. Start/Stop creating incidents for the given datasets

FieldTypeDescription
muted[Dataset]
clientMutationIdString

Related types

Dataset, MutedEventType, UUID

toggleMuteWithRegex (mutation)

toggleMuteWithRegex is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Deprecated: Use table monitor rules instead. New regex muting rules will be ignored.

DEPRECATED. End of life: August 01, 2025. Toggle mute for a set of tables and datasets.

Arguments

ArgumentTypeDescription
inputToggleMuteWithRegexInput!

Returns

ToggleMuteWithRegexPayload

Example

mutation ToggleMuteWithRegex($input: ToggleMuteWithRegexInput!) {
  toggleMuteWithRegex(input: $input) {
    clientMutationId
  }
}

Types used only by toggleMuteWithRegex

ToggleMuteWithRegexInput

Input object type.

FieldTypeDescription
dwIdUUID!Warehouse the dataset is contained in.
ruleRegexString!Valid regex to match fullTableIds. FullTableIds have the following format: "PROJECT_NAME:DATASET_NAME.TABLE_ID"
muteBoolean!True for muting the table, False for un-muting
mutedEventTypes[MutedEventType]Restrict muting to the following event types (optional)
clientMutationIdString
ToggleMuteWithRegexPayload

Object type. Start/Stop creating incidents for all matched elements. Use wildcards to match more than one table or dataset.

FieldTypeDescription
clientMutationIdString

Related types

MutedEventType, UUID

updateDailyUsageAlertConfig (mutation)

updateDailyUsageAlertConfig is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Update the account's daily usage alerts config

Arguments

ArgumentTypeDescription
usageAlertConfigUsageAlertConfigInput

Returns

UpdateDailyUsageAlertConfig

Example

mutation UpdateDailyUsageAlertConfig {
  updateDailyUsageAlertConfig {
    success
  }
}

Types used only by updateDailyUsageAlertConfig

UpdateDailyUsageAlertConfig

Object type.

FieldTypeDescription
successBooleanWhether the mutation succeeded.
UsageAlertConfigInput

Input object type. input variables for daily usage alert

FieldTypeDescription
thresholdInt!Usage threshold that triggers the alert
emails[String]!List of recipients
disabledBooleanDisable the alert (optional)

updateStatementOption (mutation)

updateStatementOption is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Update the account's statement option

Arguments

ArgumentTypeDescription
emails[String]Required when option is SPECIFIC_ADDRESSES
optionStatementOption!

Returns

UpdateStatementOption

Example

mutation UpdateStatementOption($option: StatementOption!) {
  updateStatementOption(option: $option) {
    success
  }
}

Types used only by updateStatementOption

UpdateStatementOption

Object type.

FieldTypeDescription
successBooleanWhether the mutation succeeded.

Related types

StatementOption

updateUserPersona (mutation)

updateUserPersona is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Update a persona that can help personalize the home page experience and the onboarding flow.

Arguments

ArgumentTypeDescription
personaUserPersona

Returns

UpdateUserPersona

Example

mutation UpdateUserPersona {
  updateUserPersona {
    user {
      id
      cognitoUserId
      email
      firstName
      lastName
      displayName
      state
      createdOn
      isSso
      ssoGroups
      ssoGroupsUpdatedAt
      tokenId
      isDeleted
      deletedAt
      deleteReason
      invalidatedAt
      persona
      role
    }
  }
}

Types used only by updateUserPersona

UpdateUserPersona

Object type. Update user's persona for personalised experience.

FieldTypeDescription
userUser
UserPersona

Enum type.

ValueDescription
AI_ENGINEER
DATA_ENGINEER
DATA_ANALYST
DATA_SCIENTIST
BI_ANALYST_ENGINEER
TEAM_LEAD
EXECUTIVE
SOFTWARE_ENGINEER
PRODUCT_MANAGER_OWNER
EARLY_USER
OTHER

Related types

User

updateUserState (mutation)

updateUserState is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Arguments

ArgumentTypeDescription
inputUpdateUserStateInput!

Returns

UpdateUserStatePayload

Example

mutation UpdateUserState($input: UpdateUserStateInput!) {
  updateUserState(input: $input) {
    clientMutationId
  }
}

Types used only by updateUserState

UpdateUserStateInput

Input object type.

FieldTypeDescription
stateString!
clientMutationIdString
UpdateUserStatePayload

Object type.

FieldTypeDescription
userUser
clientMutationIdString

Related types

User

updateWorkspaceIdentifier (mutation)

updateWorkspaceIdentifier is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Updates the workspace identifier for this account

Arguments

ArgumentTypeDescription
valueString!A new workspace identifier

Returns

UpdateWorkspaceIdentifier

Example

mutation UpdateWorkspaceIdentifier($value: String!) {
  updateWorkspaceIdentifier(value: $value) {
    value
  }
}

Types used only by updateWorkspaceIdentifier

UpdateWorkspaceIdentifier

Object type.

FieldTypeDescription
valueStringThis account's workspace identifier

Source: The GraphQL API reference

This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.