Update Route Ritage
Update Route Ritage Data
Path Parameters
id number required
Route Ritage ID
application/json
application/x-www-form-urlencoded
Request Body
ritageName string required
departureRoute string required
returnRoute string
Request Body
ritageName string required
departureRoute string required
returnRoute string
Responses
- 200
- 400
- 401
Success
application/json
Schema
Example (from schema)
Example
Schema
- Array [
- ]
message string required
data object[]
routeName string required
routeId number required
routeStatus string required
mileage number required
mainRoute string[] required
alternateRoute string[] required
{
"message": "string",
"data": [
{
"routeName": "string",
"routeId": 0,
"routeStatus": "string",
"mileage": 0
}
]
}
{
"message": "Success",
"data": {
"ritageId": 1,
"ritageName": "Ritage #1",
"departureRoute": 1,
"departureRouteName": "Jakarta",
"returnRoute": 2,
"returnRouteName": "Bekasi",
"status": "Aktif",
"createdOn": "2024-05-14T00:00:00.000Z"
}
}
Bad Request
application/json
Schema
Example (from schema)
Expired Token
Bad Token
Schema
code string
message string
detail string
{
"code": "string",
"message": "string",
"detail": "string"
}
{
"code": "E-V1/1-03",
"message": "An error occurred while executing query",
"detail": "Context creation failed: jwt expired"
}
{
"code": "E-V1/1-03",
"message": "An error occurred while executing query",
"detail": "Context creation failed: jwt malformed"
}
Unauthorized Request
application/json
Schema
Example (from schema)
Example
Schema
code string
message string
{
"code": "string",
"message": "string"
}
{
"code": "E-G1/1-01",
"message": "Authentication token is required"
}
Loading...