Skip to content

Sessie & profiel

GraphQL mutations: Sessie & profiel.

Endpoint: POST https://graphql.persmonitor.nl/graphql

Intern · VPN

Mutations voor de monitor-app; op productie via /internal/.


deleteOtherSessions

Delete all other sessions for the current user (keep current token).

Return type: Boolean!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Geen argumenten.

Voorbeeld:

graphql
query DeleteOtherSessions {
  deleteOtherSessions {
    # selecteer velden uit het return type
  }
}

deleteSession

Delete a specific session by UUID for the current user.

Return type: Boolean!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
uuidString!Ja

Voorbeeld:

graphql
query DeleteSession {
  deleteSession(uuid: $uuid) {
    # selecteer velden uit het return type
  }
}

deleteUser

Permanently delete the authenticated user account and related identity data. Required: Authorization Bearer session token.

Return type: Boolean!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Geen argumenten.

Voorbeeld:

graphql
query DeleteUser {
  deleteUser {
    # selecteer velden uit het return type
  }
}

logout

Invalidate the current token. Send the token in the Authorization header (Bearer <token>).

Return type: String!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Geen argumenten.

Voorbeeld:

graphql
query Logout {
  logout {
    # selecteer velden uit het return type
  }
}

setCurrentEnvironment

Set the current environment for the active session.

Return type: Environment

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
environmentUuidString!Ja

Voorbeeld:

graphql
query SetCurrentEnvironment {
  setCurrentEnvironment(environmentUuid: $environmentUuid) {
    # selecteer velden uit het return type
  }
}

switchEnvironment

Switch environment: creates a new AuthSession with the selected environment and a new token. The previous session is invalidated.

Return type: SwitchEnvironmentPayload

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
environmentUuidString!Ja

Voorbeeld:

graphql
query SwitchEnvironment {
  switchEnvironment(environmentUuid: $environmentUuid) {
    # selecteer velden uit het return type
  }
}

updateMe

Update the authenticated user profile and account settings. Required: Authorization Bearer session token.

Return type: User

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
inputUpdateMeInput!Ja

Voorbeeld:

graphql
query UpdateMe {
  updateMe(input: $input) {
    # selecteer velden uit het return type
  }
}