Material categories

Get material categories

get

The API gives the ability to get all material categories.

Authorizations
x-api-keystringRequired
Header parameters
x-tenant-idstring · uuidOptional

Tenant id (uuid v4)

Responses
200Success
application/json
get
/api/public/material-categories

Create material category

post

The API gives the ability to create new category.

Authorizations
x-api-keystringRequired
Header parameters
x-tenant-idstring · uuidOptional

Tenant id (uuid v4)

Body
namestringRequired

Category name

Example: Cotton
Responses
post
/api/public/material-categories

Delete material category

delete

The API gives the ability to delete category.

Authorizations
x-api-keystringRequired
Path parameters
idstringRequired

Material category id

Header parameters
x-tenant-idstring · uuidOptional

Tenant id (uuid v4)

Responses
200Success
application/json
delete
/api/public/material-categories/{id}

Update material category

patch

The API gives the ability to update an existing category’s name.

Authorizations
x-api-keystringRequired
Path parameters
idstringRequired

Material category id

Header parameters
x-tenant-idstring · uuidOptional

Tenant id (uuid v4)

Body
namestringRequired

Category name

Example: Cotton
Responses
200Success
application/json
patch
/api/public/material-categories/{id}

Last updated