Emergency Contacts

List emergency contacts

get
/emergency-contacts/
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

List of contacts

application/json
get
/emergency-contacts/
GET /api/v1/emergency-contacts/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "id": 1,
    "full_name": "text",
    "relationship": "text",
    "phone_number": "text",
    "email": "name@gmail.com",
    "address": "text",
    "photo_url": "text"
  }
]

Create emergency contact

post
/emergency-contacts/
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
full_namestringRequired
relationshipstringRequired
phone_numberstringRequired
emailstring · emailRequired
addressstring | nullableOptional
photostring · binaryOptional
Responses
post
/emergency-contacts/
POST /api/v1/emergency-contacts/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 123

{
  "full_name": "text",
  "relationship": "text",
  "phone_number": "text",
  "email": "name@gmail.com",
  "address": "text",
  "photo": "binary"
}
{
  "id": 1,
  "full_name": "text",
  "relationship": "text",
  "phone_number": "text",
  "email": "name@gmail.com",
  "address": "text",
  "photo_url": "text"
}

Get emergency contact

get
/emergency-contacts/{id}/
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired
Responses
200

Contact details

application/json
get
/emergency-contacts/{id}/
GET /api/v1/emergency-contacts/{id}/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": 1,
  "full_name": "text",
  "relationship": "text",
  "phone_number": "text",
  "email": "name@gmail.com",
  "address": "text",
  "photo_url": "text"
}

Delete emergency contact

delete
/emergency-contacts/{id}/
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired
Responses
delete
/emergency-contacts/{id}/
DELETE /api/v1/emergency-contacts/{id}/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Update emergency contact

patch
/emergency-contacts/{id}/
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired
Body
idintegerOptional
full_namestringOptional
relationshipstringOptional
phone_numberstringOptional
emailstring · emailOptional
addressstring | nullableOptional
photo_urlstring | nullableOptional
Responses
200

Contact updated

No content

patch
/emergency-contacts/{id}/
PATCH /api/v1/emergency-contacts/{id}/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 132

{
  "id": 1,
  "full_name": "text",
  "relationship": "text",
  "phone_number": "text",
  "email": "name@gmail.com",
  "address": "text",
  "photo_url": "text"
}

No content

Last updated