Related queries and mutations in Users, accounts and access. Each has its own section.
Queries
getUserSettings (query)
getUserSettings is a query 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.
Get user-specific settings. Return only the settings that have value.
Arguments
| Argument | Type | Description |
|---|---|---|
keys | [String]! | User setting's keys |
Returns
Example
query GetUserSettings($keys: [String]!) {
getUserSettings(keys: $keys) {
id
key
value
createdTime
updatedTime
description
}
}Related types
Mutations
createOrUpdateUserSettings (mutation)
createOrUpdateUserSettings 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
Create or update a user-specific setting
Arguments
| Argument | Type | Description |
|---|---|---|
description | String | Description for this user's settings |
key | String! | User setting key |
value | JSONString | User settings |
Returns
CreateOrUpdateUserSettings
Example
mutation CreateOrUpdateUserSettings($key: String!) {
createOrUpdateUserSettings(key: $key) {
userSettings {
id
key
value
createdTime
updatedTime
description
}
}
}Types used only by createOrUpdateUserSettings
createOrUpdateUserSettingsCreateOrUpdateUserSettings
CreateOrUpdateUserSettingsObject type. Create a new user-specific setting
| Field | Type | Description |
|---|---|---|
userSettings | UserSettings | Response |
Related types
createOrUpdateUserSettingsBatch (mutation)
createOrUpdateUserSettingsBatch 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
Create or update a list of user-specific settings
Arguments
| Argument | Type | Description |
|---|---|---|
settings | [UserSettingInput!]! | List of user settings to create or update |
Returns
CreateOrUpdateUserSettingsBatch
Example
mutation CreateOrUpdateUserSettingsBatch($settings: [UserSettingInput!]!) {
createOrUpdateUserSettingsBatch(settings: $settings) {
userSettings {
id
key
value
createdTime
updatedTime
description
}
}
}Types used only by createOrUpdateUserSettingsBatch
createOrUpdateUserSettingsBatchCreateOrUpdateUserSettingsBatch
CreateOrUpdateUserSettingsBatchObject type. Create or update a list of user-specific settings
| Field | Type | Description |
|---|---|---|
userSettings | [UserSettings!] | List of updated settings |
UserSettingInput
UserSettingInputInput object type.
| Field | Type | Description |
|---|---|---|
key | String! | User setting key |
value | JSONString | User settings |
description | String | Description for this user's settings |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
