Users

Set a user's groups

POST/auth/users/{user_id}/groups/

manage Delete and money: deletes, credits, servers or panel settings. Scopes

Put an account in these groups instead of its current ones. A reseller sets only groups they manage, on accounts below them; the account's other groups are kept.

Path parameters

  • user_idstring (uuid)required

Body

  • group_idsinteger[]required

Response

200 OK

  • messagestringrequired
  • userobjectrequired

    An account: its details, status, groups, permissions and credits.

    • idstring (uuid)requiredread-only
    • usernamestringrequired
    • emailstring (email)can be null
    • first_namestring
    • last_namestring
    • phone_numberstringcan be null
    • phone_country_codestringcan be null
    • is_staffboolean

      Designates whether the user can log into this admin site.

    • is_superuserboolean

      Designates that this user has all permissions without explicitly assigning them.

    • is_activeboolean
    • groupsinteger[]
    • groups_displaystring[]requiredread-only
    • can_customize_packagesbooleanrequiredread-only
    • can_customize_bouquetsbooleanrequiredread-only
    • administers_panelbooleanrequiredread-only
    • permissionsstring[]requiredread-only

      Every permission it holds, as app.codename (for example streams.add_stream).

    • credit_balancestringrequiredread-onlycan be null
    • credits_unlimitedbooleanrequiredread-only
    • created_atstring (date-time)requiredread-only
    • updated_atstring (date-time)requiredread-only
  • groupsstring[]required

Errors

  • 400
  • 401 No credential, or one that is wrong, expired or revoked.
  • 403 The account, or the key's or app's scopes, may not do this.
  • 404 Nothing with this id, or nothing the account can see.
  • 429 Slow down: wait the seconds in the Retry-After header, then try again.

What each error means