KashierDevelopersKashier Developers

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>

Merchant secret key used to identify the merchant, obtained from Kashier's dashboard. Pass the raw secret key value in the Authorization header (NOT a "Bearer" token).

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

PUT
/v2/category/{id}