SmartGare
API referenceEndpoints

Add a vehicle category

Adds a vehicle category to the catalog and answers its code, the reference it is read by. **Required permission:** `referential.vehicle-category:write`

POST/referential/v1/vehicle-categories

Adds a vehicle category to the catalog and answers its code, the reference it is read by.

Required permission: referential.vehicle-category:write

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*DeclareVehicleCategoryInput

Response Body

*/*

*/*

curl -X POST "https://example.com/referential/v1/vehicle-categories" \  -H "Content-Type: application/json" \  -d '{    "code": "string",    "name": "string"  }'
{  "code": "string"}