Download OpenAPI specification:Download
CareToSher API contract — source of truth.
The sign-in resolution. An empty teams sends the caregiver to Join a care team; anything else sends them to Home. Archived teams are not listed. The caller's record is created on first call from the verified ID token.
{- "caregiver": {
- "user_id": "string",
- "email": "user@example.com",
- "name": "string",
- "email_notifications": true
}, - "teams": [
- {
- "team_id": "string",
- "name": "string",
- "role": "admin"
}
]
}The caller's own name — what every entry and journal note they write is signed with — and whether the app may reach them by email. Push is the phone's, not stored. Fields left out are unchanged. An email address confirmed through Change email is copied onto the account by the first request made with a token carrying it, so it is not set here.
| name | string [ 1 .. 100 ] characters |
| email_notifications | boolean |
{- "name": "string",
- "email_notifications": true
}{- "user_id": "string",
- "email": "user@example.com",
- "name": "string",
- "email_notifications": true
}Checks the current password, then asks for the new address, which is sent a code. The address does not change until the code is confirmed (in the app, against the identity provider); until then the old one still signs in and still receives everything. Sending again sends a new code.
| current_password required | string non-empty |
| new_email required | string <email> |
{- "current_password": "string",
- "new_email": "user@example.com"
}{- "message": "string"
}Checks the password, then closes the account: the name and address are removed and the caller can no longer sign in, while every entry and journal note they wrote stays, attributed to a former caregiver. Each care team is left as leaving leaves it — their assignments still ahead are removed and any coverage schedule naming them ends today. Refused, naming the teams, while the caller is any care team's only admin.
| password required | string non-empty |
{- "password": "string"
}{- "message": "string"
}One message to the people behind the app; nothing is kept. Sent with a token, it goes with the caller's name and address so a reply can come by email. Sent without one, it is anonymous: nothing that identifies the caregiver goes with it or is logged with it. The version and device go either way.
| kind required | string Enum: "bug" "suggestion" "other" |
| message required | string [ 1 .. 5000 ] characters |
| app_version required | string <= 50 characters e.g. "1.4.0 (212)" |
| device required | string <= 100 characters e.g. "iPhone 15, iOS 26.1" |
{- "kind": "bug",
- "message": "string",
- "app_version": "string",
- "device": "string"
}{- "message": "string"
}| name required | string [ 1 .. 100 ] characters |
{- "name": "string"
}{- "team_id": "string",
- "name": "string",
- "role": "admin"
}Every caregiver on the team and the role each holds, readable by any member rather than admins alone. Admins first, then by name. Only the people on it now: what a former teammate looks like here is an open gap in the PRD.
| teamId required | string |
{- "team_id": "string",
- "name": "string",
- "my_role": "admin",
- "members": [
- {
- "user_id": "string",
- "name": "string",
- "role": "admin"
}
]
}Only for the last caregiver on the team. The team is archived and their membership ends, so nobody can reach it any longer, its receivers with it. Nothing recorded in it is erased; that is something support does on request.
| teamId required | string |
{- "message": "string"
}| teamId required | string |
| userId required | string |
| role required | string (Role) Enum: "admin" "caregiver" |
{- "role": "admin"
}{- "user_id": "string",
- "name": "string",
- "role": "admin"
}An admin may remove anyone; any caregiver may remove themselves, which is leaving. Takes the access and not the record — every entry and journal note they wrote stays, under their name. Their place on the roster goes with it: their assignments still ahead are removed and any coverage schedule naming them ends today; past assignments stay.
| teamId required | string |
| userId required | string |
{- "message": "string"
}The signed-in caregiver's own choices for this team, by kind for every receiver and tracker on it. All on until changed. The channels — push, email — are the account's, in Settings.
| teamId required | string |
{- "reminders": true,
- "range_alerts": true,
- "gap_alerts": true,
- "unrecorded_alerts": true
}Affects only the caller; nobody else on the team.
| teamId required | string |
| reminders required | boolean |
| range_alerts required | boolean |
| gap_alerts required | boolean |
| unrecorded_alerts required | boolean |
{- "reminders": true,
- "range_alerts": true,
- "gap_alerts": true,
- "unrecorded_alerts": true
}{- "reminders": true,
- "range_alerts": true,
- "gap_alerts": true,
- "unrecorded_alerts": true
}Includes invitations to teams the caller already belongs to; redeeming one of those is refused with 409. Expired, accepted, and revoked invitations are not listed.
[- {
- "code": "string",
- "team_id": "string",
- "team_name": "string",
- "invited_by_name": "string",
- "expires_at": "2019-08-24T14:15:22Z"
}
]Serves both accepting an invitation found under /v1/me/invitations and pasting a code. The code travels in the body, never the path, so it does not land in access logs. The caller's email is not checked against the invitation (Hide My Email); membership is.
| code required | string non-empty |
{- "code": "string"
}{- "team_id": "string",
- "name": "string",
- "role": "admin"
}Invitations not yet used and not yet expired, newest first. The code stays here to copy for as long as the invitation goes unused. Withdrawing one is an open gap in the PRD, so there is no way to here.
| teamId required | string |
[- {
- "code": "string",
- "email": "user@example.com",
- "invited_by_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "expires_at": "2019-08-24T14:15:22Z"
}
]Every invitation joins as a caregiver. The app sends no email; the admin copies the returned code and sends it themselves. Expires in fourteen days.
| teamId required | string |
| email required | string <email> <= 254 characters |
{- "email": "user@example.com"
}{- "code": "string",
- "email": "user@example.com",
- "invited_by_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "expires_at": "2019-08-24T14:15:22Z"
}Active receivers by default, which is what Team's list and the choice of the active care receiver read. status=archived lists the archived ones instead, for the group of their own on Care team. Any member may call it.
| teamId required | string |
| status | string (ReceiverStatus) Enum: "active" "archived" |
[- {
- "receiver_id": "string",
- "team_id": "string",
- "name": "string",
- "time_zone": "string"
}
]The time zone is required: every wall-clock time about this person — schedules, assignments, their day on Home — is read in it.
| teamId required | string |
| name required | string [ 1 .. 100 ] characters |
| time_zone required | string non-empty An IANA zone |
{- "name": "string",
- "time_zone": "string"
}{- "receiver_id": "string",
- "team_id": "string",
- "name": "string",
- "time_zone": "string"
}Readable by every member, archived or not. Coverage is read separately (on-duty, assignments, coverage-schedules).
| receiverId required | string |
{- "receiver_id": "string",
- "team_id": "string",
- "team_name": "string",
- "name": "string",
- "time_zone": "string",
- "status": "active",
- "archived_by_name": "string",
- "archived_at": "2019-08-24T14:15:22Z",
- "care_instructions": {
- "body": "string",
- "updated_by_name": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "emergency_contacts": [
- {
- "contact_id": "string",
- "name": "string",
- "relationship": "string",
- "phone": "string"
}
]
}Changing the time zone keeps the receiver's routines at their wall-clock times: every future scheduled entry and assignment is re-resolved in the new zone. Nothing already past moves.
| receiverId required | string |
| name required | string [ 1 .. 100 ] characters |
| time_zone required | string non-empty An IANA zone |
{- "name": "string",
- "time_zone": "string"
}{- "receiver_id": "string",
- "team_id": "string",
- "name": "string",
- "time_zone": "string"
}Home, the receiver switcher and Quick log stop showing them, and nothing about them reminds or alerts anyone: their still-waiting future scheduled entries are removed and no more are made, as when a tracker is paused. Assignments are kept, since they remind nobody. Everything recorded stays readable from Team. Archiving one already archived returns 204.
| receiverId required | string |
{- "message": "string"
}Their schedules make scheduled entries again from now on, for trackers that are not paused. Care that came due while they were archived is not made after the fact. Restoring one already active returns 204.
| receiverId required | string |
{- "message": "string"
}One free-form document. Records who changed it and when, which the Care receiver screen shows beside it. An empty body clears the instructions, and the screen goes back to saying none have been written.
| receiverId required | string |
| body required | string <= 20000 characters |
{- "body": "string"
}{- "receiver_id": "string",
- "team_id": "string",
- "team_name": "string",
- "name": "string",
- "time_zone": "string",
- "status": "active",
- "archived_by_name": "string",
- "archived_at": "2019-08-24T14:15:22Z",
- "care_instructions": {
- "body": "string",
- "updated_by_name": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "emergency_contacts": [
- {
- "contact_id": "string",
- "name": "string",
- "relationship": "string",
- "phone": "string"
}
]
}The whole list, in the order it should appear, replacing the one there. A contact sent with its contact_id keeps it; one without is new; one left out is removed. Does not change who last changed the care instructions — that stamp is about the written instructions alone.
| receiverId required | string |
required | Array of objects (EmergencyContactWrite) <= 20 items | ||||||||
Array (<= 20 items)
| |||||||||
{- "contacts": [
- {
- "contact_id": "string",
- "name": "string",
- "relationship": "string",
- "phone": "string"
}
]
}{- "receiver_id": "string",
- "team_id": "string",
- "team_name": "string",
- "name": "string",
- "time_zone": "string",
- "status": "active",
- "archived_by_name": "string",
- "archived_at": "2019-08-24T14:15:22Z",
- "care_instructions": {
- "body": "string",
- "updated_by_name": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "emergency_contacts": [
- {
- "contact_id": "string",
- "name": "string",
- "relationship": "string",
- "phone": "string"
}
]
}Serves the Trackers list. All three filters are drawn from this one response, so their counts agree with what each shows. Sorted by name; a paused tracker never needs attention.
| receiverId required | string |
[- {
- "tracker_id": "string",
- "name": "string",
- "icon": "string",
- "color": "string",
- "status": "active",
- "last_logged_at": "2019-08-24T14:15:22Z",
- "paused_at": "2019-08-24T14:15:22Z",
- "needs_attention": true
}
]Add tracker's Create. Takes no schedules — those are written afterward in Edit tracker. The server assigns every field and option id.
| receiverId required | string |
| name required | string [ 1 .. 100 ] characters |
| icon required | string An SF Symbol name |
| color required | string^#[0-9A-Fa-f]{6}$ |
required | Array of objects (TrackerFieldWrite) |
| gap_hours | integer >= 1 |
{- "name": "string",
- "icon": "string",
- "color": "string",
- "fields": [
- {
- "field_id": "string",
- "label": "string",
- "type": "number",
- "unit": "string",
- "required": true,
- "status": "active",
- "range": {
- "low": 0,
- "high": 0
}, - "multiple": true,
- "options": [
- {
- "option_id": "string",
- "label": "string",
- "status": "active"
}
]
}
], - "gap_hours": 1
}{- "tracker_id": "string",
- "receiver_id": "string",
- "team_id": "string",
- "name": "string",
- "icon": "string",
- "color": "string",
- "status": "active",
- "paused_at": "2019-08-24T14:15:22Z",
- "fields": [
- {
- "field_id": "string",
- "label": "string",
- "type": "number",
- "unit": "string",
- "required": true,
- "status": "active",
- "range": {
- "low": 0,
- "high": 0
}, - "multiple": true,
- "options": [
- {
- "option_id": "string",
- "label": "string",
- "status": "active"
}
]
}
], - "gap_hours": 0,
- "schedule_count": 0,
- "last_logged_at": "2019-08-24T14:15:22Z",
- "attention": [
- {
- "kind": "unrecorded",
- "entry_id": "string",
- "occurrence_at": "2019-08-24T14:15:22Z",
- "field_id": "string",
- "value": 0,
- "range": {
- "low": 0,
- "high": 0
}, - "since": "2019-08-24T14:15:22Z",
- "gap_hours": 0
}
], - "created_at": "2019-08-24T14:15:22Z"
}| trackerId required | string |
{- "tracker_id": "string",
- "receiver_id": "string",
- "team_id": "string",
- "name": "string",
- "icon": "string",
- "color": "string",
- "status": "active",
- "paused_at": "2019-08-24T14:15:22Z",
- "fields": [
- {
- "field_id": "string",
- "label": "string",
- "type": "number",
- "unit": "string",
- "required": true,
- "status": "active",
- "range": {
- "low": 0,
- "high": 0
}, - "multiple": true,
- "options": [
- {
- "option_id": "string",
- "label": "string",
- "status": "active"
}
]
}
], - "gap_hours": 0,
- "schedule_count": 0,
- "last_logged_at": "2019-08-24T14:15:22Z",
- "attention": [
- {
- "kind": "unrecorded",
- "entry_id": "string",
- "occurrence_at": "2019-08-24T14:15:22Z",
- "field_id": "string",
- "value": 0,
- "range": {
- "low": 0,
- "high": 0
}, - "since": "2019-08-24T14:15:22Z",
- "gap_hours": 0
}
], - "created_at": "2019-08-24T14:15:22Z"
}Name, icon, color, fields and gap commit together. Schedules are not part of this request; each is written on its own sheet's Save. Allowed on a paused tracker. Refused with 400 if fields leaves out an existing field (fields are paused, never removed), drops an existing choice option (options are retired, never removed), or changes an existing field's type (a type is fixed once the tracker exists). Turning a gap on while the tracker has schedules is refused with 409 unless remove_schedules is true, which removes every schedule as DELETE /v1/schedules/{scheduleId} would.
| trackerId required | string |
| name required | string [ 1 .. 100 ] characters |
| icon required | string |
| color required | string^#[0-9A-Fa-f]{6}$ |
required | Array of objects (TrackerFieldWrite) Every existing field by its |
| gap_hours required | integer or null >= 1 null turns the gap off |
| remove_schedules | boolean Default: false Confirms that turning the gap on removes every schedule |
{- "name": "string",
- "icon": "string",
- "color": "string",
- "fields": [
- {
- "field_id": "string",
- "label": "string",
- "type": "number",
- "unit": "string",
- "required": true,
- "status": "active",
- "range": {
- "low": 0,
- "high": 0
}, - "multiple": true,
- "options": [
- {
- "option_id": "string",
- "label": "string",
- "status": "active"
}
]
}
], - "gap_hours": 1,
- "remove_schedules": false
}{- "tracker_id": "string",
- "receiver_id": "string",
- "team_id": "string",
- "name": "string",
- "icon": "string",
- "color": "string",
- "status": "active",
- "paused_at": "2019-08-24T14:15:22Z",
- "fields": [
- {
- "field_id": "string",
- "label": "string",
- "type": "number",
- "unit": "string",
- "required": true,
- "status": "active",
- "range": {
- "low": 0,
- "high": 0
}, - "multiple": true,
- "options": [
- {
- "option_id": "string",
- "label": "string",
- "status": "active"
}
]
}
], - "gap_hours": 0,
- "schedule_count": 0,
- "last_logged_at": "2019-08-24T14:15:22Z",
- "attention": [
- {
- "kind": "unrecorded",
- "entry_id": "string",
- "occurrence_at": "2019-08-24T14:15:22Z",
- "field_id": "string",
- "value": 0,
- "range": {
- "low": 0,
- "high": 0
}, - "since": "2019-08-24T14:15:22Z",
- "gap_hours": 0
}
], - "created_at": "2019-08-24T14:15:22Z"
}No new entries, its schedules stop generating, and its thresholds stop raising alerts. Occurrences still waiting in the future are deleted; everything logged, skipped or already unrecorded stays. Pausing a paused tracker changes nothing.
| trackerId required | string |
{- "tracker_id": "string",
- "receiver_id": "string",
- "team_id": "string",
- "name": "string",
- "icon": "string",
- "color": "string",
- "status": "active",
- "paused_at": "2019-08-24T14:15:22Z",
- "fields": [
- {
- "field_id": "string",
- "label": "string",
- "type": "number",
- "unit": "string",
- "required": true,
- "status": "active",
- "range": {
- "low": 0,
- "high": 0
}, - "multiple": true,
- "options": [
- {
- "option_id": "string",
- "label": "string",
- "status": "active"
}
]
}
], - "gap_hours": 0,
- "schedule_count": 0,
- "last_logged_at": "2019-08-24T14:15:22Z",
- "attention": [
- {
- "kind": "unrecorded",
- "entry_id": "string",
- "occurrence_at": "2019-08-24T14:15:22Z",
- "field_id": "string",
- "value": 0,
- "range": {
- "low": 0,
- "high": 0
}, - "since": "2019-08-24T14:15:22Z",
- "gap_hours": 0
}
], - "created_at": "2019-08-24T14:15:22Z"
}Its schedules generate again from now, and its thresholds raise alerts again. Nothing is back-filled across the pause. Resuming an active tracker changes nothing.
| trackerId required | string |
{- "tracker_id": "string",
- "receiver_id": "string",
- "team_id": "string",
- "name": "string",
- "icon": "string",
- "color": "string",
- "status": "active",
- "paused_at": "2019-08-24T14:15:22Z",
- "fields": [
- {
- "field_id": "string",
- "label": "string",
- "type": "number",
- "unit": "string",
- "required": true,
- "status": "active",
- "range": {
- "low": 0,
- "high": 0
}, - "multiple": true,
- "options": [
- {
- "option_id": "string",
- "label": "string",
- "status": "active"
}
]
}
], - "gap_hours": 0,
- "schedule_count": 0,
- "last_logged_at": "2019-08-24T14:15:22Z",
- "attention": [
- {
- "kind": "unrecorded",
- "entry_id": "string",
- "occurrence_at": "2019-08-24T14:15:22Z",
- "field_id": "string",
- "value": 0,
- "range": {
- "low": 0,
- "high": 0
}, - "since": "2019-08-24T14:15:22Z",
- "gap_hours": 0
}
], - "created_at": "2019-08-24T14:15:22Z"
}Ordered as Add tracker shows them. A template carries no ids for its fields; creating a tracker from one assigns them.
[- {
- "template_id": "string",
- "name": "string",
- "icon": "string",
- "color": "string",
- "fields": [
- {
- "field_id": "string",
- "label": "string",
- "type": "number",
- "unit": "string",
- "required": true,
- "status": "active",
- "range": {
- "low": 0,
- "high": 0
}, - "multiple": true,
- "options": [
- {
- "option_id": "string",
- "label": "string",
- "status": "active"
}
]
}
], - "gap_hours": 0
}
]Removed schedules are not listed.
| trackerId required | string |
[- {
- "schedule_id": "string",
- "tracker_id": "string",
- "label": "string",
- "name": "string",
- "rule": {
- "freq": "weekly",
- "interval": 1,
- "by_day": [
- "MO"
]
}, - "time": "string",
- "starts_on": "2019-08-24",
- "ends_on": "2019-08-24",
- "planned_values": { },
- "unrecorded_alert": true
}
]Written at once, not with Edit tracker's Save. It starts today in the receiver's time zone, and its occurrences exist by the time this returns. On a tracker watched by a gap it is refused with 409 unless replace_gap is true, which turns the gap off. On a paused tracker it is stored but generates nothing until the tracker is resumed.
| trackerId required | string |
| label | string <= 100 characters |
required | object (Recurrence) A rule, not a preset (ADR 0012). The app's choices write into it — every week, two weeks, month and two months are intervals of 1, 2, 4 and 8 weeks. More frequencies can be added later without migrating data. |
| time required | string^([01][0-9]|2[0-3]):[0-5][0-9]$ |
| ends_on | string <date> |
required | object |
| unrecorded_alert required | boolean |
| replace_gap | boolean Default: false Confirms that the first schedule turns the tracker's gap off |
{- "label": "string",
- "rule": {
- "freq": "weekly",
- "interval": 1,
- "by_day": [
- "MO"
]
}, - "time": "string",
- "ends_on": "2019-08-24",
- "planned_values": { },
- "unrecorded_alert": true,
- "replace_gap": false
}{- "schedule_id": "string",
- "tracker_id": "string",
- "label": "string",
- "name": "string",
- "rule": {
- "freq": "weekly",
- "interval": 1,
- "by_day": [
- "MO"
]
}, - "time": "string",
- "starts_on": "2019-08-24",
- "ends_on": "2019-08-24",
- "planned_values": { },
- "unrecorded_alert": true
}Written at once. Its still-waiting future occurrences are replaced by ones made from the new rule, time and pre-filled values; nothing logged, skipped or already unrecorded moves.
| scheduleId required | string |
| label | string <= 100 characters |
required | object (Recurrence) A rule, not a preset (ADR 0012). The app's choices write into it — every week, two weeks, month and two months are intervals of 1, 2, 4 and 8 weeks. More frequencies can be added later without migrating data. |
| time required | string^([01][0-9]|2[0-3]):[0-5][0-9]$ |
| ends_on | string <date> |
required | object |
| unrecorded_alert required | boolean |
{- "label": "string",
- "rule": {
- "freq": "weekly",
- "interval": 1,
- "by_day": [
- "MO"
]
}, - "time": "string",
- "ends_on": "2019-08-24",
- "planned_values": { },
- "unrecorded_alert": true
}{- "schedule_id": "string",
- "tracker_id": "string",
- "label": "string",
- "name": "string",
- "rule": {
- "freq": "weekly",
- "interval": 1,
- "by_day": [
- "MO"
]
}, - "time": "string",
- "starts_on": "2019-08-24",
- "ends_on": "2019-08-24",
- "planned_values": { },
- "unrecorded_alert": true
}The rule and every occurrence it made that is still waiting go. Every entry already logged, skipped or unrecorded stays exactly where it is, and still names the schedule it came from. Repeating a removal is safe: on a schedule already removed it takes away anything still waiting again and returns 204, not 404.
| scheduleId required | string |
{- "message": "string"
}Logged, skipped and unrecorded together. Entries still to come are never listed — Coming up is what looks ahead. from and to are dates in the receiver's time zone, inclusive; without them the list runs back through everything, a page at a time.
| trackerId required | string |
| from | string <date> |
| to | string <date> |
| cursor | string |
| limit | integer [ 1 .. 100 ] Default: 50 |
{- "entries": [
- {
- "entry_id": "string",
- "tracker_id": "string",
- "state": "scheduled",
- "at": "2019-08-24T14:15:22Z",
- "values": { },
- "note": "string",
- "by_name": "string",
- "schedule_id": "string",
- "schedule_name": "string"
}
], - "next_cursor": "string"
}Any member may call it. With at now or earlier it logs the care ad hoc and every required active field must be given. With at in the future it plans a one-off scheduled entry instead — values pre-fill it, a reading nobody has taken may be left out, and unrecorded_alert says whether the team is told if it goes unrecorded. Only active fields and active options are accepted. Refused with 409 on a paused tracker.
| trackerId required | string |
| at | string <date-time> When the care happened, or is planned for. Absent means now. |
required | object Keyed by field_id; a choice is a list of option_ids |
| note | string <= 2000 characters |
| unrecorded_alert | boolean Default: false Only when |
{- "at": "2019-08-24T14:15:22Z",
- "values": { },
- "note": "string",
- "unrecorded_alert": false
}{- "entry": {
- "entry_id": "string",
- "tracker_id": "string",
- "state": "scheduled",
- "at": "2019-08-24T14:15:22Z",
- "values": { },
- "note": "string",
- "by_name": "string",
- "schedule_id": "string",
- "schedule_name": "string"
}, - "tracker": {
- "tracker_id": "string",
- "name": "string",
- "icon": "string",
- "color": "string"
}, - "fields": [
- {
- "field_id": "string",
- "label": "string",
- "type": "number",
- "unit": "string",
- "required": true,
- "status": "active",
- "range": {
- "low": 0,
- "high": 0
}, - "multiple": true,
- "options": [
- {
- "option_id": "string",
- "label": "string",
- "status": "active"
}
]
}
], - "planned": true,
- "occurrence_at": "2019-08-24T14:15:22Z",
- "unrecorded_alert": true,
- "settled_at": "2019-08-24T14:15:22Z",
- "updated_by_name": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "out_of_range": [
- {
- "field_id": "string",
- "value": 0,
- "range": {
- "low": 0,
- "high": 0
}
}
]
}| entryId required | string |
{- "entry": {
- "entry_id": "string",
- "tracker_id": "string",
- "state": "scheduled",
- "at": "2019-08-24T14:15:22Z",
- "values": { },
- "note": "string",
- "by_name": "string",
- "schedule_id": "string",
- "schedule_name": "string"
}, - "tracker": {
- "tracker_id": "string",
- "name": "string",
- "icon": "string",
- "color": "string"
}, - "fields": [
- {
- "field_id": "string",
- "label": "string",
- "type": "number",
- "unit": "string",
- "required": true,
- "status": "active",
- "range": {
- "low": 0,
- "high": 0
}, - "multiple": true,
- "options": [
- {
- "option_id": "string",
- "label": "string",
- "status": "active"
}
]
}
], - "planned": true,
- "occurrence_at": "2019-08-24T14:15:22Z",
- "unrecorded_alert": true,
- "settled_at": "2019-08-24T14:15:22Z",
- "updated_by_name": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "out_of_range": [
- {
- "field_id": "string",
- "value": 0,
- "range": {
- "low": 0,
- "high": 0
}
}
]
}Any member may edit any entry. Editing a skipped entry logs it: the care happened after all, and the caller becomes who logged it. A scheduled or unrecorded entry cannot be edited (409) — Log it is what records it. Records who changed it last and when.
| entryId required | string |
| occurred_at required | string <date-time> Never in the future |
required | object Keyed by field_id; a choice is a list of option_ids |
| note | string <= 2000 characters |
{- "occurred_at": "2019-08-24T14:15:22Z",
- "values": { },
- "note": "string"
}{- "entry": {
- "entry_id": "string",
- "tracker_id": "string",
- "state": "scheduled",
- "at": "2019-08-24T14:15:22Z",
- "values": { },
- "note": "string",
- "by_name": "string",
- "schedule_id": "string",
- "schedule_name": "string"
}, - "tracker": {
- "tracker_id": "string",
- "name": "string",
- "icon": "string",
- "color": "string"
}, - "fields": [
- {
- "field_id": "string",
- "label": "string",
- "type": "number",
- "unit": "string",
- "required": true,
- "status": "active",
- "range": {
- "low": 0,
- "high": 0
}, - "multiple": true,
- "options": [
- {
- "option_id": "string",
- "label": "string",
- "status": "active"
}
]
}
], - "planned": true,
- "occurrence_at": "2019-08-24T14:15:22Z",
- "unrecorded_alert": true,
- "settled_at": "2019-08-24T14:15:22Z",
- "updated_by_name": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "out_of_range": [
- {
- "field_id": "string",
- "value": 0,
- "range": {
- "low": 0,
- "high": 0
}
}
]
}Any member may delete any entry. One logged ad hoc is gone (204). One that fulfilled a planned entry returns to waiting — scheduled, or unrecorded if its time has passed — with its pre-filled values back, and is returned (200). A scheduled or unrecorded entry cannot be deleted (409).
| entryId required | string |
{- "entry": {
- "entry_id": "string",
- "tracker_id": "string",
- "state": "scheduled",
- "at": "2019-08-24T14:15:22Z",
- "values": { },
- "note": "string",
- "by_name": "string",
- "schedule_id": "string",
- "schedule_name": "string"
}, - "tracker": {
- "tracker_id": "string",
- "name": "string",
- "icon": "string",
- "color": "string"
}, - "fields": [
- {
- "field_id": "string",
- "label": "string",
- "type": "number",
- "unit": "string",
- "required": true,
- "status": "active",
- "range": {
- "low": 0,
- "high": 0
}, - "multiple": true,
- "options": [
- {
- "option_id": "string",
- "label": "string",
- "status": "active"
}
]
}
], - "planned": true,
- "occurrence_at": "2019-08-24T14:15:22Z",
- "unrecorded_alert": true,
- "settled_at": "2019-08-24T14:15:22Z",
- "updated_by_name": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "out_of_range": [
- {
- "field_id": "string",
- "value": 0,
- "range": {
- "low": 0,
- "high": 0
}
}
]
}occurred_at is the run's one time, not the occurrence's; it cannot be in the future. Refused with 409 if somebody settled it first, or if its tracker is paused.
| entryId required | string |
| occurred_at required | string <date-time> Never in the future |
required | object Keyed by field_id; a choice is a list of option_ids |
| note | string <= 2000 characters |
{- "occurred_at": "2019-08-24T14:15:22Z",
- "values": { },
- "note": "string"
}{- "entry": {
- "entry_id": "string",
- "tracker_id": "string",
- "state": "scheduled",
- "at": "2019-08-24T14:15:22Z",
- "values": { },
- "note": "string",
- "by_name": "string",
- "schedule_id": "string",
- "schedule_name": "string"
}, - "tracker": {
- "tracker_id": "string",
- "name": "string",
- "icon": "string",
- "color": "string"
}, - "fields": [
- {
- "field_id": "string",
- "label": "string",
- "type": "number",
- "unit": "string",
- "required": true,
- "status": "active",
- "range": {
- "low": 0,
- "high": 0
}, - "multiple": true,
- "options": [
- {
- "option_id": "string",
- "label": "string",
- "status": "active"
}
]
}
], - "planned": true,
- "occurrence_at": "2019-08-24T14:15:22Z",
- "unrecorded_alert": true,
- "settled_at": "2019-08-24T14:15:22Z",
- "updated_by_name": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "out_of_range": [
- {
- "field_id": "string",
- "value": 0,
- "range": {
- "low": 0,
- "high": 0
}
}
]
}Records who skipped it and when, with an optional note saying why. Its time may be past or still ahead. Refused with 409 if somebody settled it first, or if its tracker is paused.
| entryId required | string |
| note | string <= 2000 characters |
{- "note": "string"
}{- "entry": {
- "entry_id": "string",
- "tracker_id": "string",
- "state": "scheduled",
- "at": "2019-08-24T14:15:22Z",
- "values": { },
- "note": "string",
- "by_name": "string",
- "schedule_id": "string",
- "schedule_name": "string"
}, - "tracker": {
- "tracker_id": "string",
- "name": "string",
- "icon": "string",
- "color": "string"
}, - "fields": [
- {
- "field_id": "string",
- "label": "string",
- "type": "number",
- "unit": "string",
- "required": true,
- "status": "active",
- "range": {
- "low": 0,
- "high": 0
}, - "multiple": true,
- "options": [
- {
- "option_id": "string",
- "label": "string",
- "status": "active"
}
]
}
], - "planned": true,
- "occurrence_at": "2019-08-24T14:15:22Z",
- "unrecorded_alert": true,
- "settled_at": "2019-08-24T14:15:22Z",
- "updated_by_name": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "out_of_range": [
- {
- "field_id": "string",
- "value": 0,
- "range": {
- "low": 0,
- "high": 0
}
}
]
}Worked out when it is read; nothing here is dismissed. Ordered unrecorded care first, then readings outside their range, then trackers past their gap, and never more than one item for a tracker — the one that matters most by that order, then the most recent. Unrecorded care leaves the list forty-eight hours after its scheduled time, settled or not. Paused trackers contribute nothing. Home asks for three; See all leads to the Trackers list instead of asking for more.
| receiverId required | string |
| limit | integer [ 1 .. 50 ] Default: 3 |
[- {
- "tracker": {
- "tracker_id": "string",
- "name": "string",
- "icon": "string",
- "color": "string"
}, - "attention": {
- "kind": "unrecorded",
- "entry_id": "string",
- "occurrence_at": "2019-08-24T14:15:22Z",
- "field_id": "string",
- "value": 0,
- "range": {
- "low": 0,
- "high": 0
}, - "since": "2019-08-24T14:15:22Z",
- "gap_hours": 0
}, - "field_label": "string",
- "unit": "string"
}
]One entry per tracker, so a dose given twice a day cannot push next week's appointment out of sight. Only entries whose time is still ahead; paused trackers have none. Home asks for three; the Coming up screen leaves limit off and gets every one. An empty list means nothing is scheduled ahead, and Home leaves the section out.
| receiverId required | string |
| limit | integer [ 1 .. 100 ] |
[- {
- "tracker": {
- "tracker_id": "string",
- "name": "string",
- "icon": "string",
- "color": "string"
}, - "entry": {
- "entry_id": "string",
- "tracker_id": "string",
- "state": "scheduled",
- "at": "2019-08-24T14:15:22Z",
- "values": { },
- "note": "string",
- "by_name": "string",
- "schedule_id": "string",
- "schedule_name": "string"
}
}
]date is a day in the receiver's time zone, no later than today there. Holds the entries logged that day, the day's skipped and unrecorded occurrences, and the journal notes written about it, oldest first — paused trackers' entries included, since they still belong to the days they happened on. Occurrences still to come are not listed; Coming up is what looks ahead. An empty items is the day where nothing was logged and nothing was expected.
| receiverId required | string |
| date required | string <date> |
{- "date": "2019-08-24",
- "items": [
- {
- "kind": "entry",
- "at": "2019-08-24T14:15:22Z",
- "tracker": {
- "tracker_id": "string",
- "name": "string",
- "icon": "string",
- "color": "string"
}, - "entry": {
- "entry_id": "string",
- "tracker_id": "string",
- "state": "scheduled",
- "at": "2019-08-24T14:15:22Z",
- "values": { },
- "note": "string",
- "by_name": "string",
- "schedule_id": "string",
- "schedule_name": "string"
}, - "note": {
- "note_id": "string",
- "receiver_id": "string",
- "at": "2019-08-24T14:15:22Z",
- "body": "string",
- "author_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by_name": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
]
}Everything still unrecorded from the forty-eight hours before now, oldest first, then everything scheduled for the rest of today in the receiver's time zone, soonest first. Skipped and logged ones are settled and not listed; paused trackers have none.
| receiverId required | string |
[- {
- "tracker": {
- "tracker_id": "string",
- "name": "string",
- "icon": "string",
- "color": "string"
}, - "entry": {
- "entry_id": "string",
- "tracker_id": "string",
- "state": "scheduled",
- "at": "2019-08-24T14:15:22Z",
- "values": { },
- "note": "string",
- "by_name": "string",
- "schedule_id": "string",
- "schedule_name": "string"
}
}
]Any member may write one. at is the time the note is about, and cannot be in the future — a note cannot be planned. Notifies nobody.
| receiverId required | string |
| at required | string <date-time> |
| body required | string [ 1 .. 5000 ] characters |
{- "at": "2019-08-24T14:15:22Z",
- "body": "string"
}{- "note_id": "string",
- "receiver_id": "string",
- "at": "2019-08-24T14:15:22Z",
- "body": "string",
- "author_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by_name": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}{- "note_id": "string",
- "receiver_id": "string",
- "at": "2019-08-24T14:15:22Z",
- "body": "string",
- "author_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by_name": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}Any member may edit any note. Records who changed it last and when; the author stays the author. at still cannot be in the future.
| noteId required | string |
| at required | string <date-time> |
| body required | string [ 1 .. 5000 ] characters |
{- "at": "2019-08-24T14:15:22Z",
- "body": "string"
}{- "note_id": "string",
- "receiver_id": "string",
- "at": "2019-08-24T14:15:22Z",
- "body": "string",
- "author_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by_name": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}Every assignment covering this moment — more than one when they overlap. Empty when nobody is assigned, which is also every team that keeps no roster; Home and Care receiver then show nothing and "nobody assigned" respectively. A coordination signal only; it decides nothing.
| receiverId required | string |
[- {
- "assignment_id": "string",
- "receiver_id": "string",
- "user_id": "string",
- "caregiver_name": "string",
- "starts_local": "string",
- "ends_local": "string",
- "starts_at": "2019-08-24T14:15:22Z",
- "ends_at": "2019-08-24T14:15:22Z",
- "coverage_schedule_id": "string"
}
]Every assignment that has not yet ended, made by hand or by a coverage schedule. Schedules are made ahead to the same rolling horizon as scheduled entries, so a rule's assignments appear here a few weeks out.
| receiverId required | string |
[- {
- "assignment_id": "string",
- "receiver_id": "string",
- "user_id": "string",
- "caregiver_name": "string",
- "starts_local": "string",
- "ends_local": "string",
- "starts_at": "2019-08-24T14:15:22Z",
- "ends_at": "2019-08-24T14:15:22Z",
- "coverage_schedule_id": "string"
}
]One span of time one caregiver on this team is responsible for. May overlap others. Must end in the future and after it starts; times are local to the receiver.
| receiverId required | string |
| user_id required | string A caregiver on this team now |
| starts_local required | string^\d{4}-\d{2}-\d{2}T([01][0-9]|2[0-3]):[0-5][0... |
| ends_local required | string^\d{4}-\d{2}-\d{2}T([01][0-9]|2[0-3]):[0-5][0... |
{- "user_id": "string",
- "starts_local": "string",
- "ends_local": "string"
}{- "assignment_id": "string",
- "receiver_id": "string",
- "user_id": "string",
- "caregiver_name": "string",
- "starts_local": "string",
- "ends_local": "string",
- "starts_at": "2019-08-24T14:15:22Z",
- "ends_at": "2019-08-24T14:15:22Z",
- "coverage_schedule_id": "string"
}Changes this one assignment and nothing else. One a coverage schedule made belongs to no rule afterward — its coverage_schedule_id is gone — so editing or removing the rule later leaves it as it is. An assignment that has already ended cannot be changed.
| assignmentId required | string |
| user_id required | string A caregiver on this team now |
| starts_local required | string^\d{4}-\d{2}-\d{2}T([01][0-9]|2[0-3]):[0-5][0... |
| ends_local required | string^\d{4}-\d{2}-\d{2}T([01][0-9]|2[0-3]):[0-5][0... |
{- "user_id": "string",
- "starts_local": "string",
- "ends_local": "string"
}{- "assignment_id": "string",
- "receiver_id": "string",
- "user_id": "string",
- "caregiver_name": "string",
- "starts_local": "string",
- "ends_local": "string",
- "starts_at": "2019-08-24T14:15:22Z",
- "ends_at": "2019-08-24T14:15:22Z",
- "coverage_schedule_id": "string"
}Drops this one assignment and leaves the rule that made it exactly as it was; the rule does not make it again. An assignment that has already ended cannot be removed — it says who was responsible.
| assignmentId required | string |
{- "message": "string"
}Rules not removed, ended or not. Any member may read them.
| receiverId required | string |
[- {
- "coverage_schedule_id": "string",
- "receiver_id": "string",
- "user_id": "string",
- "caregiver_name": "string",
- "rule": {
- "freq": "weekly",
- "interval": 1,
- "by_day": [
- "MO"
]
}, - "start_time": "string",
- "end_time": "string",
- "starts_on": "2019-08-24",
- "ends_on": "2019-08-24"
}
]Starts today in the receiver's time zone, and makes its assignments ahead.
| receiverId required | string |
| user_id required | string A caregiver on this team now |
required | object (Recurrence) A rule, not a preset (ADR 0012). The app's choices write into it — every week, two weeks, month and two months are intervals of 1, 2, 4 and 8 weeks. More frequencies can be added later without migrating data. |
| start_time required | string^([01][0-9]|2[0-3]):[0-5][0-9]$ |
| end_time required | string^([01][0-9]|2[0-3]):[0-5][0-9]$ |
| ends_on | string <date> |
{- "user_id": "string",
- "rule": {
- "freq": "weekly",
- "interval": 1,
- "by_day": [
- "MO"
]
}, - "start_time": "string",
- "end_time": "string",
- "ends_on": "2019-08-24"
}{- "coverage_schedule_id": "string",
- "receiver_id": "string",
- "user_id": "string",
- "caregiver_name": "string",
- "rule": {
- "freq": "weekly",
- "interval": 1,
- "by_day": [
- "MO"
]
}, - "start_time": "string",
- "end_time": "string",
- "starts_on": "2019-08-24",
- "ends_on": "2019-08-24"
}Redraws the assignments still ahead of it from the new rule, except any already changed by hand, which belong to no rule and stay as they are. Nothing past moves. An end date in the past is refused; ending it today is how a rotation stops now.
| coverageScheduleId required | string |
| user_id required | string A caregiver on this team now |
required | object (Recurrence) A rule, not a preset (ADR 0012). The app's choices write into it — every week, two weeks, month and two months are intervals of 1, 2, 4 and 8 weeks. More frequencies can be added later without migrating data. |
| start_time required | string^([01][0-9]|2[0-3]):[0-5][0-9]$ |
| end_time required | string^([01][0-9]|2[0-3]):[0-5][0-9]$ |
| ends_on | string <date> |
{- "user_id": "string",
- "rule": {
- "freq": "weekly",
- "interval": 1,
- "by_day": [
- "MO"
]
}, - "start_time": "string",
- "end_time": "string",
- "ends_on": "2019-08-24"
}{- "coverage_schedule_id": "string",
- "receiver_id": "string",
- "user_id": "string",
- "caregiver_name": "string",
- "rule": {
- "freq": "weekly",
- "interval": 1,
- "by_day": [
- "MO"
]
}, - "start_time": "string",
- "end_time": "string",
- "starts_on": "2019-08-24",
- "ends_on": "2019-08-24"
}The rule and every assignment it made that is still ahead go. Every assignment for a time already past stays, still saying who was responsible, as does any assignment changed by hand. Repeating a removal returns 204.
| coverageScheduleId required | string |
{- "message": "string"
}