Admin — replace an administrator's roles

ADMIN

Requires the funtrips/admin.users.write scope.

Sets the administrator's roles to exactly those supplied. Takes effect on
their next sign-in or token refresh, since permissions are fixed when a
session is issued.

The email is supplied in the body rather than the path so administrator
addresses do not appear in request logs.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Replaces an administrator's roles with exactly those supplied — roles omitted here are removed.

string
required
roles
array of objects
required
length ≥ 1
roles*
Allowed:
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json