API reference and playgroundCategories
Update a category
curl -X PUT "https://test-api.kashier.io/v2/category/string" \ -H "Content-Type: application/json" \ -d '{ "name": "Electronics and appliances" }'{ "data": { "_id": "string", "name": "string", "description": "string", "merchantId": "string", "createdByUserId": "string", "createdAt": "string", "updatedAt": "string" }}Renames an existing category. The products filed into it are left untouched.
Authorization
secretKey Authorization<token>
Your secret key from the Kashier dashboard. Send the raw key value in the Authorization header, without a Bearer prefix.
In: header
Path Parameters
id*string
The category's record id.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json