SBT
The Host
The host object is the same as here with the same methods (GET/POST/PATCH/DELETE) there are only 2 more properties linesAllowed
and driverLine
Attribute | Description |
linesAllowed | An array of allowed lines ids that indicates which lines this user can use. E.g.: (Set as an empty array to remove all lines) |
driverLine | This property indicates if this user is a driver and what is his line.
E.g.: (Set as an empty string to remove it) |
Available lines
Obs.: Every line id starts with lowercase L
id | Name |
| VILA NINO |
| EDU CHAVES |
| TREMEMBÉ |
| CIDADE TIRA-DENTES |
| ITAIM PAULISTA |
| SAPOPEMA |
| GUARULHOS VIA DUTRA |
| METRÔ CONCEIÇÃO |
| SANTO ANDRÉ / SÃO CAETANO DO SUL |
| JUNDIAI |
| SÃO MIGUEL |
| OSASCO |
| BARRA FUNDA |
| TRANSPORTE NOTURNO |
Sample request
Update a host
PATCH
https://api.w3lcome.com/v1/host/:id
This is the same endpoint as Update a Host but with the 2 extra parameters.
Path Parameters
Name | Type | Description |
---|---|---|
id | string | ID of the host |
Headers
Name | Type | Description |
---|---|---|
Content-Type | string | application/JSON |
Authentication | string | Basic |
Request Body
Name | Type | Description |
---|---|---|
linesAllowed | array | An array of lines id |
driverLine | string | A single line id |
Table of errors
Methos | Type | Description |
| INVALID_LINE_ID | The line id provided is not a valid one |
Last updated