cURL
curl --request POST \ --url https://lms.tausi.africa/v1/stocks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "stock_id": 123, "stock_name": "<string>" } '
{ "item": { "stock_id": 123, "stock_name": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }, "success": true }
Registers a new stock in the system.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Stock created successfully.
Show child attributes
true