Goals Endpoints
All the POST methods returns the status 201 Created and the UUID is included in the route specified by the Location header that is passed in Response Headers.
Activity Goals Resources | ||
---|---|---|
GET |
/api/v2/human/activities_goals |
The user’s current activities goals readings |
POST |
/api/v2/human/activities_goals |
Creates an activity goal resource |
PUT |
/api/v2/human/activities_goals/{code} |
Updates an activity goal resource |
DELETE |
/api/v2/human/activities_goals/{code} |
Deletes the specified activity goal resource |
Body Fat Goals Resources | ||
---|---|---|
GET |
/api/v2/human/body_fat_goals |
The user’s current body fats goals readings |
POST |
/api/v2/human/body_fat_goals |
Creates a body fat goal resource |
PUT |
/api/v2/human/body_fat_goals/{code} |
Updates a body fat goal resource |
DELETE |
/api/v2/human/body_fat_goals/{code} |
Deletes the specified body fat goal resource |
Meal Goals Resources | ||
---|---|---|
GET
|
/api/v2/human/meal_goals
|
The user’s current meals goals readings |
POST
|
/api/v2/human/meal_goals
|
Creates a meal goal resource |
PUT
|
/api/v2/human/meal_goals/{code}
|
Updates a meal goal resource |
DELETE
|
/api/v2/human/meal_goals/{code}
|
Deletes the specified meal goal resource |
Sleep Goals Resources | ||
---|---|---|
GET
|
/api/v2/human/sleep_goals
|
The user’s current sleeps goals readings |
POST
|
/api/v2/human/sleep_goals
|
Creates a sleep goal resource |
PUT
|
/api/v2/human/sleep_goals/{code}
|
Updates a sleep goal resource |
DELETE
|
/api/v2/human/sleep_goals/{code}
|
Deletes the specified sleep goal resource |
Step Goals Resources | ||
---|---|---|
GET
|
/api/v2/human/step_goals
|
The user’s current steps goals readings |
POST
|
/api/v2/human/step_goals
|
Creates a step goal resource |
PUT
|
/api/v2/human/step_goals/{code}
|
Updates a step goal resource |
DELETE
|
/api/v2/human/step_goals/{code}
|
Deletes the specified step goal resource |
Water Goals Resources | ||
---|---|---|
GET
|
/api/v2/human/water_goals
|
The user’s current waters goals readings |
POST
|
/api/v2/human/water_goals
|
Creates a water goal resource |
PUT
|
/api/v2/human/water_goals/{code}
|
Updates a water goal resource |
DELETE
|
/api/v2/human/water_goals/{code}
|
Deletes the specified water goal resource |
Weight Goals Resources | ||
---|---|---|
GET
|
/api/v2/human/weight_goals
|
The user’s current weights goals readings |
POST
|
/api/v2/human/weight_goals
|
Creates a weight goal resource |
PUT
|
/api/v2/human/weight_goals{code}
|
Updates a weight goal resource |
DELETE
|
/api/v2/human/weight_goals/{code}
|
Deletes the specified weight goal resource |