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
| Argument | Type | Description |
|---|---|---|
input | UpdateDataShareInput! | Data share configuration |
Returns
UpdateDataShare
Example
mutation UpdateDataShare($input: UpdateDataShareInput!) {
updateDataShare(input: $input) {
result {
success
message
}
}
}Types used only by updateDataShare
updateDataShareDataShareInput
DataShareInputInput object type.
| Field | Type | Description |
|---|---|---|
type | DataShareType | Type of data share (default: 'snowflake') Default: "snowflake". |
account | String | Legacy direct-share account locator (optional if account has only one) |
region | String | Data share region (optional if account has only one) |
organization | String | Organization identifier |
accountName | String | Account name for the new private-listing share (ORG.ACCOUNT_NAME). Stored alongside the legacy locator so both shares can run in parallel. |
DataShareOutput
DataShareOutputObject type. Data share configuration details
| Field | Type | Description |
|---|---|---|
type | String | Type of data share (e.g., 'snowflake') |
account | String | Legacy direct-share account locator |
region | String | Data share region |
organization | String | Data share organization identifier |
accountName | String | Account name for the new private-listing share |
DataShareType
DataShareTypeEnum type.
| Value | Description |
|---|---|
SNOWFLAKE |
SnowflakeDataShareMethod
SnowflakeDataShareMethodEnum type. Which of the two parallel Snowflake share mechanisms an operation targets.
| Value | Description |
|---|---|
LEGACY | |
PRIVATE_LISTING |
UpdateDataShare
UpdateDataShareObject 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.
| Field | Type | Description |
|---|---|---|
result | UpdateDataShareOutput | Result of the data share update operation |
UpdateDataShareInput
UpdateDataShareInputInput object type. Input for updating Snowflake data share configuration
| Field | Type | Description |
|---|---|---|
enabled | Boolean! | Whether to enable data sharing |
accountId | UUID! | UUID of the account to update |
accountName | String! | Name of the account (validation) |
dataShare | DataShareInput | Input data share attributes |
shareMethod | SnowflakeDataShareMethod | When disabling, which share to turn off — the legacy direct share or the new private listing. Omit to disable both. Ignored when enabling. |
UpdateDataShareOutput
UpdateDataShareOutputObject type. Result of updating data share configuration
| Field | Type | Description |
|---|---|---|
success | Boolean! | Whether the operation was successful |
dataShare | DataShareOutput | Updated data share configuration (null if disabled) |
message | String! | Success or error message |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
