Update a package in a hourly rate
PATCH/v1/rates/hourly/:id/packages/:packageId
Update a package in a hourly rate by ID
Request
Path Parameters
id stringrequired
Hourly rate ID
packageId stringrequired
Package ID
- application/json
Body
required
name string
Name of the package
duration number
Duration of the package
type string
Type of the package
basedFee number
Based fee of the package
feePerExtraDuration number
Fee per extra duration of the package
feePerExtraDistance number
Fee per extra distance of the package
extraDurationType string
Extra duration type of the package
coveredDistance number
Covered distance of the package. This value uses your fleet's distance unit.
Responses
- 200
- 400
- 404
- 500
Package updated in hourly rate successfully
- application/json
- Schema
- Example (from schema)
Schema
_id stringrequired
The ID of the package
name stringrequired
The name of the package
duration numberrequired
The duration of the package
type stringrequired
The type of the package
basedFee numberrequired
The based fee of the package
feePerExtraDuration numberrequired
The fee per extra duration of the package
feePerExtraDistance numberrequired
The fee per extra distance of the package
extraDurationType stringrequired
The extra duration type of the package
coveredDistance numberrequired
The covered distance of the package
{
"_id": "Package 1",
"name": "Package 1",
"duration": 1,
"type": "hour",
"basedFee": 1,
"feePerExtraDuration": 1,
"feePerExtraDistance": 1,
"extraDurationType": "minute",
"coveredDistance": 1
}
Invalid input data
Hourly rate or package not found
Internal server error
Loading...