Skip to content

POST healthprofessionals

JeffMedeiros edited this page Dec 2, 2019 · 5 revisions

Description

Register a new health professional.

Permissions:

  • Only Admin user can do this.

Scope

healthprofessionals:create

URL

POST https://localhost:3001/v1/healthprofessionals

Request body

{
  "username": "healthprofessional01",
  "password": "mys3cr3tp4ss",
  "institution_id": "5a62be07de34500146d9c624"
}

Curl example

curl -X POST "https://localhost:3001/v1/healthprofessionals" -H "accept: application/json" -H "Content-Type: application/json" -d "{"username":"healthprofessional01","password":"mys3cr3tp4ss","institution_id":"5a62be07de34500146d9c624"}"

Response body

  • 201 Health professional saved sucessfully.

    {
      "id": "5db2ef6bbec1431c51ae15f8",
      "username": "healthprofessional01",
      "institution_id": "5a62be07de34500146d9c624",
      "children_groups": []
    }
  • 400 Validation errors

  • 409 Conflict Error

  • 500 Internal Server Error

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