curl --request POST \
--url https://apiweb.mile.app/api/v3/vehicles/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"vehicles": [
{
"name": "Mini Van 24",
"assignee": "roberto@mile.app",
"speed": 30,
"fixedCost": 15,
"tags": [
"Ganjil",
"Depok",
"B1124CC"
],
"workingTime": {
"startTime": "08:00",
"endTime": "17:00",
"multiday": 0
},
"breakTime": {
"startTime": "11:00",
"endTime": "11:30"
},
"hubId": "621dd813eb3ebf16b94d6969",
"capacity": {
"width": {
"min": 10,
"max": 1000
},
"heigh": {
"min": 10,
"max": 1000
}
}
},
{
"name": "Mini Van 25",
"assignee": "",
"speed": 30,
"tags": [
"Ganjil",
"Depok",
"B1124CC"
],
"workingTime": {
"startTime": "08:00",
"endTime": "17:00",
"multiday": 0
},
"breakTime": {
"startTime": "11:00",
"endTime": "11:30"
},
"hubId": "621dd813eb3ebf16b94d6969"
}
]
}
'{
"success": 2,
"failed": 0,
"data": [
{
"_id": "62ce3918d3f3e1681a3a54b2",
"message": "Success"
},
{
"_id": "62ce3918d3f3e1681a3a8237",
"message": "Success"
}
]
}curl --request POST \
--url https://apiweb.mile.app/api/v3/vehicles/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"vehicles": [
{
"name": "Mini Van 24",
"assignee": "roberto@mile.app",
"speed": 30,
"fixedCost": 15,
"tags": [
"Ganjil",
"Depok",
"B1124CC"
],
"workingTime": {
"startTime": "08:00",
"endTime": "17:00",
"multiday": 0
},
"breakTime": {
"startTime": "11:00",
"endTime": "11:30"
},
"hubId": "621dd813eb3ebf16b94d6969",
"capacity": {
"width": {
"min": 10,
"max": 1000
},
"heigh": {
"min": 10,
"max": 1000
}
}
},
{
"name": "Mini Van 25",
"assignee": "",
"speed": 30,
"tags": [
"Ganjil",
"Depok",
"B1124CC"
],
"workingTime": {
"startTime": "08:00",
"endTime": "17:00",
"multiday": 0
},
"breakTime": {
"startTime": "11:00",
"endTime": "11:30"
},
"hubId": "621dd813eb3ebf16b94d6969"
}
]
}
'{
"success": 2,
"failed": 0,
"data": [
{
"_id": "62ce3918d3f3e1681a3a54b2",
"message": "Success"
},
{
"_id": "62ce3918d3f3e1681a3a8237",
"message": "Success"
}
]
}Use a valid Bearer token to authenticate.
Show child attributes