Session settings (GraphQL)

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

Queries

getSessionSettings (query)

getSessionSettings 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.

Status: General availability

Get the session timeout settings for the calling user's account.

Returns

SessionSettings

Example

query GetSessionSettings {
  getSessionSettings {
    inactivityTimeoutMinutes
    maxAgeMinutes
  }
}

Related types

SessionSettings

Mutations

updateSessionSettings (mutation)

updateSessionSettings 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 the session timeout settings for the calling user's account.

Arguments

ArgumentTypeDescription
inactivityTimeoutMinutesInt!Minutes of server-side inactivity after which a session is invalidated. Must be 0 (disabled) or between 30 and 1440 (24 hours), and must not exceed max_age_minutes when enabled.
maxAgeMinutesInt!Absolute session lifetime in minutes. Must be between 30 and 10080 (7 days).

Returns

UpdateSessionSettings

Example

mutation UpdateSessionSettings($inactivityTimeoutMinutes: Int!, $maxAgeMinutes: Int!) {
  updateSessionSettings(inactivityTimeoutMinutes: $inactivityTimeoutMinutes, maxAgeMinutes: $maxAgeMinutes) {
    sessionSettings {
      inactivityTimeoutMinutes
      maxAgeMinutes
    }
  }
}

Types used only by updateSessionSettings

UpdateSessionSettings

Object type. Update the account's session timeout settings.

FieldTypeDescription
sessionSettingsSessionSettingsThe updated session settings.

Related types

SessionSettings

Source: The GraphQL API reference

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