Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

Latest commit

 

History

History
59 lines (44 loc) · 815 Bytes

File metadata and controls

59 lines (44 loc) · 815 Bytes

staff/update Endpoint

The staff/update endpoint enables you to update the role of a user in your room.

You can view information on staff roles, here.

Endpoint

staff/update

Method

POST

Parameters

userID: ID of the user you want to add to the staff

roleID: ID of the role you want to apply

{
    "userID": -1,
    "roleID": 1
}

Possible error messages

Insufficient permissions

{
    "data": [
        "You are not authorized to access this resource."
    ],
    "status": "notAuthorized",
}

userID or roleID is missing

{
    "data": [
        "xxxxxxxx is required"
    ],
    "status": "requestError",
}

Data returned

{
    'data': [],
    'meta': {},
    'status': 'ok',
    'time': 'xx.xxxxxxxxxxx'
}