Material Parameter Values
The API gives the ability to get all material parameters values.
Parameter ID
Parameter value name
Tenant id (uuid v4)
Unique identifier of the parameter value
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eName of the parameter value
Organic CottonOrder of the parameter value
1Returned when the rate limit is exceeded
GET /api/v1/public/material-parameters/{parameter_id}/values HTTP/1.1
Host: api-stage.hesh.tech
x-api-key: YOUR_API_KEY
Accept: */*
[
{
"id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"name": "Organic Cotton",
"order": 1
}
]The API gives the ability to create a material’s parameter value.
Parameter ID
Tenant id (uuid v4)
Name of the material parameter value
RedDisplay order of the parameter value (used for sorting in UI)
1Unique identifier of the parameter value
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eName of the parameter value
Organic CottonOrder of the parameter value
1Returned when the rate limit is exceeded
POST /api/v1/public/material-parameters/{parameter_id}/values HTTP/1.1
Host: api-stage.hesh.tech
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"name": "Red",
"order": 1
}{
"id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"name": "Organic Cotton",
"order": 1
}The API gives the ability to update a material’s parameter value name.
Material parameter value ID
Parameter ID
Tenant id (uuid v4)
Name of the material parameter value
BlueDisplay order of the parameter value (used for sorting in UI)
2Message returned from API confirming the operation
The operation was done successfullyReturned when the rate limit is exceeded
PATCH /api/v1/public/material-parameters/{parameter_id}/values/{value_id} HTTP/1.1
Host: api-stage.hesh.tech
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 25
{
"name": "Blue",
"order": 2
}{
"message": "The operation was done successfully"
}Last updated

