Apps

Change the role of a user

Sets one of the app's roles. The app sees the new role in x-hypamoon-user within seconds.

patch/apps/{id}/users/{userId}

Request

  • Base URL: https://api.hypamoon.com/api/v1
  • URL: https://api.hypamoon.com/api/v1/apps/{id}/users/{userId}
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://app.hypamoon.com/oauth/authorize, token URL https://api.hypamoon.com/oauth/token, scopes: sites:write)

Path parameters

idstring uuid required

The id of the app.

userIdstring uuid required

The id of the user (sub in x-hypamoon-user).

Request body

rolestring required

One of the app's roles.

Response

The user with the new role.

idstring uuid required

The person's id: sub in x-hypamoon-user.

emailstring required
namestring nullable required
rolestring required
created_atstring required
last_sign_in_atstring nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.