Skip to main content
PUT
/
stocks
/
{id}
Update stock
curl --request PUT \
  --url https://lms.tausi.africa/v1/stocks/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "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.

Path Parameters

id
integer<int64>
required

Body

application/json
stock_name
string

Response

Stock updated successfully.

item
object
required
success
boolean
required
Example:

true