Remove roles from a team user

This function removes roles from a team user.

SecurityBasicAuth
Request
query Parameters
role
required
string

The role or roles to remove from the team user.

Example: role=database
user
required
string

The username of the team user.

Example: user=teamuser
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Team/remove_roles
Request samples
uapi --output=jsonpretty \
  --user=username \
  Team \
  remove_roles \
  user='teamuser' \
  role='database'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "remove_roles",
  • "module": "Team",
  • "result": {
    • "data": { },
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}