Future Me
This operation provides the asset urls of a specific body shape prediction.
The unique ID of the body shape prediction
unique-body-shape-prediction-id
GET /body-shape-prediction/{bodyShapePredictionId}/asset-urls HTTP/1.1
Host: api.hosted.prismlabs.tech
Accept: */*
{
"bodyShapePrediction": "text"
}
This operation registers a new body shape prediction for a specific scan.
NOTE: Either a target weight or a target body fat percentage (but not both) must be specified
The unique ID of the scan on which the prediction should be based on
unique-scan-id
The prediction type that should be used for the prediction
weight_loss
Possible values: The target weight (in kg) for the prediction. This or 'targetBodyfat' should be specified
50
The target body fat percentage for the prediction. This or 'targetWeight' should be specified
20
POST /body-shape-prediction HTTP/1.1
Host: api.hosted.prismlabs.tech
Content-Type: application/json
Accept: */*
Content-Length: 95
{
"scanId": "unique-scan-id",
"predictionType": "weight_loss",
"targetWeight": 50,
"targetBodyfat": 20
}
{
"id": "unique-body-shape-prediction-id",
"status": "PROCESSING",
"scanId": "unique-scan-id",
"predictionType": "weight_loss",
"targetWeight": 50,
"targetBodyfat": 20,
"createdAt": "text",
"updatedAt": "text"
}
This operation provides the status of a specific body shape prediction.
The unique ID of the body shape prediction
unique-body-shape-prediction-id
GET /body-shape-prediction/{bodyShapePredictionId} HTTP/1.1
Host: api.hosted.prismlabs.tech
Accept: */*
{
"id": "unique-body-shape-prediction-id",
"status": "PROCESSING",
"scanId": "unique-scan-id",
"predictionType": "weight_loss",
"targetWeight": 50,
"targetBodyfat": 20,
"createdAt": "text",
"updatedAt": "text"
}
This operation deletes a specific body shape prediction.
The unique ID of the body shape prediction
unique-body-shape-prediction-id
DELETE /body-shape-prediction/{bodyShapePredictionId} HTTP/1.1
Host: api.hosted.prismlabs.tech
Accept: */*
{
"id": "unique-body-shape-prediction-id",
"status": "PROCESSING",
"scanId": "unique-scan-id",
"predictionType": "weight_loss",
"targetWeight": 50,
"targetBodyfat": 20,
"createdAt": "text",
"updatedAt": "text"
}
This operation returns all body shape predictions associated with a specific scan.
The unique ID of the scan
unique-scan-id
GET /scans/{scanId}/body-shape-predictions HTTP/1.1
Host: api.hosted.prismlabs.tech
Accept: */*
[
{
"id": "unique-body-shape-prediction-id",
"status": "PROCESSING",
"scanId": "unique-scan-id",
"predictionType": "weight_loss",
"targetWeight": 50,
"targetBodyfat": 20,
"createdAt": "text",
"updatedAt": "text"
}
]