Skip to main content
POST
Create hub

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Body

application/json
name
string
required

The name of hub. User can define hub name with hub's location, or something else. Example: Hub transit Jakarta

address
string
required

Location of the hub. Example: 'Neo Soho, Jakarta Barat'

lat
number<double>
required

Coordinate latitude of hub. Example: '-6.230815251666679'

lng
number<double>
required

Coordinate longitude of hub. Example: '106.75684387903198'

Response

Success

status
string

Status of response.

data
object

Detail object of created hub.