Skip to content

PATCH educator children group by ID

JeffMedeiros edited this page Dec 2, 2019 · 5 revisions

Description

Updates a children group data associated with an Educator.

Permissions:

  • Only Educator users can update their own group of children.

Scope

childrengroups:update

URL

PATCH https://localhost:3001/v1/educators/{educator_id}/children/groups/{group_id}

Parameters

educator_id: string (A 24-byte hex ID)
group_id: string (A 24-byte hex ID)

Request body

{
  "name": "Group One",
  "children": [
    "5a62be07de34500146d9c544"
  ],
  "school_class": "4th Grade"
}

Curl example

curl -X PATCH "https://localhost:3001/v1/educators/5a62be07de34500146d9c544/children/groups/5a62be07d6f33400146c9b61" -H "accept: application/json" -H "Content-Type: application/json" -d "{"name":"New Group Name"}"

Response body

Account users

Integration endpoints

auth

users

institutions

children

families

families.children

educators

educators.children.groups

healthprofessionals

healthprofessionals.children.groups

applications

Error patterns

400 Validation Errors

Clone this wiki locally