Log In

Restrict a User

post/public/v1/users/{user}/restrict

Signs an active user out everywhere and stops them signing in, while keeping them on the roster with their shifts and coordinator roles. A restricted user still counts towards the subscription, and any API keys they own keep working.

Refuses with a 409 when the user is not active, and with a 400 for the account owner.

  • Authorizationstringrequired

    Bearer authentication header of the form Bearer <token>, where <token> is your API key. See How to set up an API key.

  • userstringrequired

    The user UUID

Response

200application/json

UserResource

  • dataobjectrequired
    ▶Show 6 child attributes
    • idstringrequired
      Example:u1s2e3r4-a5b6-47c8-9d0e-1f2a3b4c5d6e
    • first_namestringrequired
      Example:John
    • last_namestringrequired
      Example:Doe
    • emailstringrequired
      Example:john.doe@example.com
    • statusenum<string>required
      Available options:activedeactivatedinvitedrestricted
    • employment_titlestring | nullrequired
      Example:Service Manager
  • 401Unauthenticated
  • 403Authorization error
  • 404Not found
  • 409An error