Create a new addon template
POST/v1/addons/templates
Add a new addon template to the system
Request
- application/json
Body
required
name stringrequired
The name of the addon template
Responses
- 201
- 409
Addon template created successfully
- application/json
- Schema
- Example (from schema)
Schema
_id stringrequired
The ID of the addon template
fleetId stringrequired
The fleet ID
name stringrequired
The name of the addon template
type numberrequired
Template type: 0 = Default, 1 = Corporate/Special
createdDate date-timerequired
Creation date
latestUpdate date-timerequired
Last update date
{
"_id": "672d07188234567890123456",
"fleetId": "FLEET001",
"name": "Default Add-ons",
"type": 0,
"createdDate": "2025-01-01T00:00:00.000Z",
"latestUpdate": "2025-01-01T00:00:00.000Z"
}
Addon template name already exists
Loading...