Material Categories
The API gives the ability to get all material categories.
Tenant id (uuid v4)
Unique identifier of the category
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eCategory name
CottonTime when the category was created
2023-12-01T10:30:00.000ZTime when the category was last updated, null if never updated
2023-12-15T14:45:30.000ZReturned when the rate limit is exceeded
GET /api/v1/public/material-categories HTTP/1.1
Host: api-stage.hesh.tech
x-api-key: YOUR_API_KEY
Accept: */*
[
{
"id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"name": "Cotton",
"created_at": "2023-12-01T10:30:00.000Z",
"updated_at": "2023-12-15T14:45:30.000Z"
}
]The API gives the ability to create new category.
Tenant id (uuid v4)
Category name
CottonUnique identifier of the category
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eCategory name
CottonTime when the category was created
2023-12-01T10:30:00.000ZTime when the category was last updated, null if never updated
2023-12-15T14:45:30.000ZReturned when the rate limit is exceeded
POST /api/v1/public/material-categories HTTP/1.1
Host: api-stage.hesh.tech
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"name": "Cotton"
}{
"id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"name": "Cotton",
"created_at": "2023-12-01T10:30:00.000Z",
"updated_at": "2023-12-15T14:45:30.000Z"
}The API gives the ability to delete category.
Material category id
Tenant id (uuid v4)
Message returned from API confirming the operation
The operation was done successfullyReturned when the rate limit is exceeded
DELETE /api/v1/public/material-categories/{id} HTTP/1.1
Host: api-stage.hesh.tech
x-api-key: YOUR_API_KEY
Accept: */*
{
"message": "The operation was done successfully"
}The API gives the ability to update an existing category’s name.
Material category id
Tenant id (uuid v4)
Category name
CottonMessage returned from API confirming the operation
The operation was done successfullyReturned when the rate limit is exceeded
PATCH /api/v1/public/material-categories/{id} HTTP/1.1
Host: api-stage.hesh.tech
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"name": "Cotton"
}{
"message": "The operation was done successfully"
}Last updated

