POST families - ocariot/api-gateway GitHub Wiki

Description

Register a new family.

Permissions:

  • Only Admin users can do this.

Scope

families:create

URL

POST https://localhost/v1/families

Request body

{
  "username": "family01",
  "password": "mys3cr3tp4ss",
    "children": [
        "5a62be07de34500146d9c544", "5a70be07de34500146d9c380"
    ],
  "institution_id": "5a62be07de34500146d9c624"
}

Curl example

curl -X POST "https://localhost/v1/families" -H "accept: application/json" -H "Authorization: Bearer YOUR_ACCESS_TOKEN" -H "Content-Type: application/json" -d "{"username":"family01","password":"mys3cr3tp4ss","children":["5a62be07de34500146d9c544","5a70be07de34500146d9c380"],"institution_id":"5a62be07de34500146d9c624"}"

Response body