PATCH family by ID - ocariot/api-gateway GitHub Wiki

Description

Updates a family data.

Permissions:

  • Admin User can update information of any Family user.

  • Families users can update only their own information.

Scope

families:update

URL

PATCH https://localhost/v1/families/{family_id}

Parameters

family_id: string (A 24-byte hex ID)

Request body

{
  "username": "family01",
  "children": [
    "5a62be07de34500146d9c544"
  ],
  "institution_id": "5a62be07de34500146d9c544"
}

Curl example

curl -X PATCH "https://localhost/v1/families/5a62be07de34500146d9c544" -H "accept: application/json" -H "Authorization: Bearer YOUR_ACCESS_TOKEN" -H "Content-Type: application/json" -d "{"username":"new_family_username"}"

Response body