curl -X POST http://localhost/fss/public/api/v1/measurements/awning_measurement_add_edit \
-H "X-API-Token: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"client_id": 456,
"awning_type": "retractable",
"width": 120,
"projection": 60,
"mount_height": 96
}'
const response = await fetch('http://localhost/fss/public/api/v1/measurements/awning_measurement_add_edit', {
method: 'POST',
headers: {
'X-API-Token': 'YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
client_id: 456,
awning_type: 'retractable',
width: 120,
projection: 60,
mount_height: 96
})
});
const data = await response.json();
{
"status": "success",
"data": {
"id": 794,
"awning_type": "retractable",
"dimensions": {
"width": 120,
"projection": 60,
"mount_height": 96
}
}
}
{
"status": "error",
"message": "Validation failed"
}
Measurements
Awning Measurement
Add/edit awning measurements
POST
/
api
/
v1
/
measurements
/
awning_measurement_add_edit
curl -X POST http://localhost/fss/public/api/v1/measurements/awning_measurement_add_edit \
-H "X-API-Token: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"client_id": 456,
"awning_type": "retractable",
"width": 120,
"projection": 60,
"mount_height": 96
}'
const response = await fetch('http://localhost/fss/public/api/v1/measurements/awning_measurement_add_edit', {
method: 'POST',
headers: {
'X-API-Token': 'YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
client_id: 456,
awning_type: 'retractable',
width: 120,
projection: 60,
mount_height: 96
})
});
const data = await response.json();
{
"status": "success",
"data": {
"id": 794,
"awning_type": "retractable",
"dimensions": {
"width": 120,
"projection": 60,
"mount_height": 96
}
}
}
{
"status": "error",
"message": "Validation failed"
}
Awning Measurement
Add or update awning measurements.Endpoint
POST /api/v1/measurements/awning_measurement_add_edit
This endpoint requires authentication
Headers
string
required
Your API access token. You can also set this globally in the API playground.
string
required
The platform making the request:
WEB, IOS, or ANDROID.Request Body
integer
required
Client ID
string
Awning type (retractable, stationary)
integer
Awning width
integer
Awning projection
integer
Mount height
Response
string
Success status
object
Response data
curl -X POST http://localhost/fss/public/api/v1/measurements/awning_measurement_add_edit \
-H "X-API-Token: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"client_id": 456,
"awning_type": "retractable",
"width": 120,
"projection": 60,
"mount_height": 96
}'
const response = await fetch('http://localhost/fss/public/api/v1/measurements/awning_measurement_add_edit', {
method: 'POST',
headers: {
'X-API-Token': 'YOUR_API_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
client_id: 456,
awning_type: 'retractable',
width: 120,
projection: 60,
mount_height: 96
})
});
const data = await response.json();
{
"status": "success",
"data": {
"id": 794,
"awning_type": "retractable",
"dimensions": {
"width": 120,
"projection": 60,
"mount_height": 96
}
}
}
{
"status": "error",
"message": "Validation failed"
}
