Create a STELLANTIS contract
POST
/contracts
Request Body required
object
fleetId
required
string
b6059208-64bb-4a04-ac81-f978439b8fa1 name
required
string
My fleet name description
required
string
A description of the fleet vin
required
string
VF3M45GBULS125887 from
required
string
2024-01-01T00:00:00.000Z to
required
string
2025-01-01T00:00:00.000Z pack
required
string
pack-5Responses
201
Examples
Example with cURL
curl -X POST http://localhost:3005/contracts-H 'Content-Type: application/json' \-d '{"fleetId":"b6059208-64bb-4a04-ac81-f978439b8fa1","name":"My fleet name","description":"A description of the fleet","vin":"VF3M45GBULS125887","from":"2024-01-01T00:00:00.000Z","to":"2025-01-01T00:00:00.000Z","pack":"pack-5"}'