Log In

Add a User Contact

post/public/v1/users/{user}/contacts

Adds an emergency contact or next of kin to a user. A person who is both is added twice, once per role. A user can have up to 10 contacts.

  • Authorizationstringrequired

    Bearer authentication header of the form Bearer <token>, where <token> is your API key. See How to set up an API key.

  • userstringrequired

    The user UUID

Body

application/json
  • namestringrequiredmax length 255
  • relationshipstringrequiredmax length 255
  • phonestring | nullmax length 255
  • emailstring<email> | nullmax length 255
  • roleenum<string>required
    Available options:emergency_contactnext_of_kin

Response

200application/json

UserContactResource

  • dataobjectrequired
    ▶Show 6 child attributes
    • idstringrequired
      Example:c1o2n3t4-a5c6-47t8-9a0b-1c2d3e4f5a6b
    • namestringrequired
      Example:Margaret Doe
    • relationshipstring | nullrequired
      Example:Mother
    • phonestring | nullrequired
      Example:0412345678
    • emailstring | nullrequired
      Example:margaret.doe@example.com
    • roleenum<string>required
      Available options:emergency_contactnext_of_kin
  • 401Unauthenticated
  • 403Authorization error
  • 404Not found
  • 422Validation error