Authorization: ********************curl --location --request POST 'https://test.your-api-server.com/api/scale/truck' \
--header 'x-token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI2Mzk3YzVmZmExMzM1MDg2YjNkYTdjNzkiLCJpYXQiOjE2NzE3NjI3MjMsImV4cCI6MTY3MTgwNTkyM30.nh2QUJqs1VEZ8t9t0__fOZnu5W3wFEpz7GB_lCKNioI' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"numberPlate":"XYQ-456",
"model":"2019",
"color":"Rojo"
}'{
"msg": "Origen creado satisfactoriamente!",
"newTruck": {
"id": "718e0df0-e30f-468c-ae94-a6e58f78b011",
"enabled": true,
"numberPlate": "XYQ-123",
"model": "2019",
"color": "Rojo",
"updatedAt": "2022-12-02T14:26:51.779Z",
"createdAt": "2022-12-02T14:26:51.779Z"
}
}