Skip to main content
PUT
/
hub
/
{hubId}
Update hub
curl --request PUT \
  --url https://apiweb.mile.app/api/v3/hub/{hubId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Dukuh Atas",
  "address": "12, Jalan Setia Budi VI, Dukuh Atas, Jakarta Selatan 12910, Indonesia",
  "lat": "-6.205870636762187",
  "lng": "106.82562818235002"
}
'
{
  "status": true,
  "property": {
    "_id": "642634bde1428d414838c882",
    "name": "Dukuh Atas",
    "address": "12, Jalan Setia Budi VI, Dukuh Atas, Jakarta Selatan 12910, Indonesia",
    "lat": -6.205870636762187,
    "lng": 106.82562818235002,
    "organizationId": "63c76fdb88697c70e35866e2",
    "updatedTime": "2023-03-31T01:31:48.809000Z",
    "createdTime": "2023-03-31T01:17:49.158000Z",
    "deleteAccess": true
  },
  "message": "Success"
}

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Path Parameters

hubId
string
required

Unique identifier for the hub that generated by system. Example: 642634bde1428d414838c882

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 visit. Example: '-6.230815251666679'

lng
number<double>
required

Coordinate longitude of visit. Example: '106.75684387903198'

Response

Success

status
string

Status of response.

property
object

Detail of updated hub.

message
string

Message of API response.