Skip to main content
POST
/
stocks
Create a new stock
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
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
stock_id
integer<int64>
required
stock_name
string
required

Response

Stock created successfully.

item
object
required
success
boolean
required
Example:

true