List Vitals Templates
const url = 'https://api.upvio.com/v1/businesses/example/vitals/templates';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.upvio.com/v1/businesses/example/vitals/templates \ --header 'Authorization: Bearer <token>'List all available vitals templates for a business
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The ID of the Business.
Responses
Section titled “Responses”List of Vitals Templates
object
object
The unique identifier for the template.
Time when the resource was created (ISO 8601 format).
Time when the resource was last updated (ISO 8601 format).
The name of the template.
An optional description of the template.
The number of credits consumed per scan using this template.
The metrics included in this template.
The number of links using this template.
When the template was archived, if applicable.
object
Total number of templates available.
Example
{ "data": [ { "metrics": [ "A_BODY_SHAPE_INDEX" ] } ]}The request is invalid.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 400, "type": "BadRequestError", "title": "Business ID does not match API key" }}The API key is missing or invalid, or the Business cannot be accessed with it.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 403, "type": "UnauthorizedError", "title": "Invalid API token" }}The Business does not exist.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 404, "type": "BusinessNotFoundError", "title": "Business not found" }}