Data share (GraphQL)

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

Mutations

updateDataShare (mutation)

updateDataShare 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: General availability

Update data sharing configuration for an account

Arguments

ArgumentTypeDescription
inputUpdateDataShareInput!Data share configuration

Returns

UpdateDataShare

Example

mutation UpdateDataShare($input: UpdateDataShareInput!) {
  updateDataShare(input: $input) {
    result {
      success
      message
    }
  }
}

Types used only by updateDataShare

DataShareInput

Input object type.

FieldTypeDescription
typeDataShareTypeType of data share (default: 'snowflake') Default: "snowflake".
accountStringLegacy direct-share account locator (optional if account has only one)
regionStringData share region (optional if account has only one)
organizationStringOrganization identifier
accountNameStringAccount name for the new private-listing share (ORG.ACCOUNT_NAME). Stored alongside the legacy locator so both shares can run in parallel.
DataShareOutput

Object type. Data share configuration details

FieldTypeDescription
typeStringType of data share (e.g., 'snowflake')
accountStringLegacy direct-share account locator
regionStringData share region
organizationStringData share organization identifier
accountNameStringAccount name for the new private-listing share
DataShareType

Enum type.

ValueDescription
SNOWFLAKE
SnowflakeDataShareMethod

Enum type. Which of the two parallel Snowflake share mechanisms an operation targets.

ValueDescription
LEGACY
PRIVATE_LISTING
UpdateDataShare

Object type. Update Snowflake data sharing configuration for an account. Internal Monte Carlo users may manage any account; customers with the settings-edit permission may enable, reconfigure, or disable sharing for their own account.

FieldTypeDescription
resultUpdateDataShareOutputResult of the data share update operation
UpdateDataShareInput

Input object type. Input for updating Snowflake data share configuration

FieldTypeDescription
enabledBoolean!Whether to enable data sharing
accountIdUUID!UUID of the account to update
accountNameString!Name of the account (validation)
dataShareDataShareInputInput data share attributes
shareMethodSnowflakeDataShareMethodWhen disabling, which share to turn off — the legacy direct share or the new private listing. Omit to disable both. Ignored when enabling.
UpdateDataShareOutput

Object type. Result of updating data share configuration

FieldTypeDescription
successBoolean!Whether the operation was successful
dataShareDataShareOutputUpdated data share configuration (null if disabled)
messageString!Success or error message

Related types

UUID

Source: The GraphQL API reference

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