Emergency contacts management
Emergency contacts management - single contact mode
1 Get first created (primary) emergency contact
Endpoint: GET /profile/emergency-contacts/primary
Description: Get first created user emergency contact.
Request Headers:
Request Body (JSON):
Response (200 Ok):
Response (404 Not found):
2 Update first created (primary) emergency contact
Endpoint: PUT /profile/emergency-contacts/primary
Description: Create/Update first created user emergency contact (if it not exists, it will be created). Primary disability and secondary disability can be null.
Request Headers:
Request Body (JSON):
Response (200 Ok):
3 Delete first created (primary) emergency contact
Endpoint: DELETE /profile/emergency-contacts/primary
Description: Delete first created user emergency contact.
Request Headers:
Request Body (JSON):
Response (200 Ok):
Emergency contacts management - multi contact mode
1 Get all emergency contacts
Endpoint: GET /profile/emergency-contacts
Description: Get all user emergency contacts.
Request Headers:
Request Body (JSON):
Response (200 Ok):
2 Add user emergency contact
Endpoint: POST /profile/emergency-contacts
Description: Add new user emergency contact.
Request Headers:
Request Body (JSON):
Response (200 Ok):
3 Update user emergency contact
Endpoint: PUT /profile/emergency-contacts/{contact_id}}
Description: Update the emergency contact by its id
Request Headers:
Request Body (JSON):
Response (200 Ok):
4 Delete user emergency contact
Endpoint: DELETE /profile/emergency-contacts/{contact_id}}
Description: Delete the emergency contact by its id
Request Headers:
Request Body (JSON):
Response (200 Ok):