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

Latest commit

 

History

History
81 lines (63 loc) · 973 Bytes

booth_add.md

File metadata and controls

81 lines (63 loc) · 973 Bytes

booth/add Endpoint

The booth/add endpoint enables you to add a user to the waitlist.

Note: You need to have sufficient permissions in the room to access this resource.

Endpoint

booth/add

Method

POST

Parameters

id: ID of the user you want to add

{
    "id": -1
}

Possible error messages

Insufficient permissions

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

User isn't in the room

{
    "data": [],
    "status": "roomMismatch",
}

Waitlist is full

{
    "data": [],
    "status": "boothFull",
}

User doesn't have a playlist

{
    "data": [],
    "status": "noValidPlaylist",
}

id is missing

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

Data returned

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