Skip to content

DELETE child physical activity by ID

JeffMedeiros edited this page Nov 29, 2019 · 1 revision

Description

Deletes a physical activity data associated with a Child.

Permissions:

  • An Application can delete any physical activity of any Child.

  • An Educator can delete any physical activity of any Child as long as the Child belongs to one of their groups.

  • A Family user can delete any physical activity of any Child associated with it.

Scope

physicalactivities:delete

URL

DELETE https://localhost/v1/children/{child_id}/physicalactivities/{physicalactivity_id}

Parameters

child_id: string (A 24-byte hex ID)
physicalactivity_id: string (A 24-byte hex ID)

Curl example

curl -X DELETE "https://localhost/v1/children/5a62be07d6f33400146c9b61/physicalactivities/5c5277b8004ce629c1eef323" -H "accept: /" -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Response body

OCARIoT users

Integration endpoints

auth

users

institutions

children

children.physicalactivities

children.logs

children.sleep

children.weights

children.bodyfats

educators

educators.children.groups

families

families.children

healthprofessionals

healthprofessionals.children.groups

applications

institutions.environments

fitbit

fitbit.subscriber

users.fitbit.auth

users.fitbit.sync

Error patterns

400 Validation Errors

Clone this wiki locally