cURL
curl --request POST \ --url https://app.blinksale.test/api/v1/units \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Hour" }'
{ "success": true, "message": "Unit created successfully", "data": { "id": "01jtbf0c9zaraqx3swthf88n5y", "organization_id": "01jtbf0c9zaraqx3swthf88n5y", "name": "Hour", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } }
Create a new unit of measurement
Access token obtained from the /v1/auth/login endpoint
"Hour"
Unit created successfully
true
"Unit created successfully"
Show child attributes