Update an incident

patch/v1/incidents/{id}

Changes the fields you send and returns the updated incident. Send null to clear an optional field. Available to keys belonging to office staff and caregivers. With a caregiver's or patient's key, a saved record that key cannot read back is answered with only object and id. Requires a key with write scope.

Authorization

Authorization: Bearer ak_...requiredscope: read + write

An AveeCare API key created in Settings → API Keys. This endpoint changes data, so the key needs read + write scope. About authentication

Path parameters

id
stringrequired

ID of the incident.

Request body

application/json
title
stringmax length 200

Short summary.

description
string | nullmax length 20000

What happened.

incidentDateTime
string · date-time | null

When the incident happened.

category
string | null

Kind of incident.

One ofFallMedicationBehavioralInjuryEquipmentAttendanceConductOthernull
severity
string | null

How serious it was.

One ofLowMediumHighCriticalnull
status
string | null

Where follow-up stands. New incidents start Open. Only keys belonging to office staff can set this.

One ofOpenMonitoringAwaitingFollowUpResolvedClosednull
patientId
string | nullmax length 64

The patient involved.

caregiverId
string | nullmax length 64

The caregiver involved.

visitId
string | nullmax length 64

The visit during which it happened.

actionsTaken
string | nullmax length 20000

What was done at the time.

injuryBodyPart
string | nullmax length 100

Body part injured, if any.

witnessName
string | nullmax length 200

Witness, if any.

emergencyServicesContacted
boolean | null

Whether 911 or other emergency services were called.

hospitalTransport
boolean | null

Whether the patient went to hospital.

hospitalName
string | nullmax length 200

Hospital, if transported.

physicianNotified
boolean | null

Whether the patient's physician was told.

familyNotified
boolean | null

Whether family was told.

regulatoryReportRequired
boolean | null

Whether the incident must be reported to a regulator.

followUpRequired
boolean | null

Whether follow-up is needed.

followUpDueAt
string · date-time | null

When follow-up is due. Only keys belonging to office staff can set this.

followUpNotes
string | nullmax length 20000

Follow-up notes.

resolved
boolean | null

Whether the incident is resolved. Only keys belonging to office staff can set this.

resolutionNotes
string | nullmax length 20000

How it was resolved. Only keys belonging to office staff can set this.

isConfidential
boolean | null

Whether only administrators can see it. Only keys belonging to office staff can set this.

Response

200

The updated incident.

object
stringread-only

String representing the object's type. Always incident.

id
stringread-only

Unique identifier of the incident.

title
string | nullmax length 200

Short summary.

description
string | nullmax length 20000

What happened.

incidentDateTime
string · date-time | null

When the incident happened.

category
string | null

Kind of incident.

One ofFallMedicationBehavioralInjuryEquipmentAttendanceConductOthernull
severity
string | null

How serious it was.

One ofLowMediumHighCriticalnull
status
string | null

Where follow-up stands. New incidents start Open.

One ofOpenMonitoringAwaitingFollowUpResolvedClosednull
patientId
string | nullmax length 64

The patient involved.

caregiverId
string | nullmax length 64

The caregiver involved.

visitId
string | nullmax length 64

The visit during which it happened.

actionsTaken
string | nullmax length 20000

What was done at the time.

injuryBodyPart
string | nullmax length 100

Body part injured, if any.

witnessName
string | nullmax length 200

Witness, if any.

emergencyServicesContacted
boolean | null

Whether 911 or other emergency services were called.

hospitalTransport
boolean | null

Whether the patient went to hospital.

hospitalName
string | nullmax length 200

Hospital, if transported.

physicianNotified
boolean | null

Whether the patient's physician was told.

familyNotified
boolean | null

Whether family was told.

regulatoryReportRequired
boolean | null

Whether the incident must be reported to a regulator.

followUpRequired
boolean | null

Whether follow-up is needed.

followUpDueAt
string · date-time | null

When follow-up is due.

followUpNotes
string | nullmax length 20000

Follow-up notes.

resolved
boolean | null

Whether the incident is resolved.

resolutionNotes
string | nullmax length 20000

How it was resolved.

isConfidential
boolean | null

Whether only administrators can see it.

reportedByName
string | nullread-onlymax length 2000

Who reported it.

reportedAt
string · date-time | nullread-only

When it was reported.

resolvedAt
string · date-time | nullread-only

When it was resolved.

createdAt
string · date-time | nullread-only

When the incident was created.

updatedAt
string · date-time | nullread-only

When the incident was last changed.

Response headers

Request-IdstringUnique ID of this request. Quote it when contacting support.
RateLimit-LimitintegerRequests allowed in the current window.
RateLimit-RemainingintegerRequests left in the current window.
RateLimit-ResetintegerSeconds until the window resets.

Errors

StatusCodeMeaning
400
n/a
The request was malformed, a value was invalid, or it contained an unknown field (invalid_request, unknown_field).
401
n/a
The API key is missing, malformed, expired or revoked (unauthorized).
403
n/a
The key is read-only (insufficient_scope), or its user's role cannot do this (forbidden).
404
n/a
No such object, or it is not visible to this key (not_found).
429
n/a
Too many requests (rate_limited). Wait for Retry-After seconds.
500
n/a
Something went wrong on our side (internal_error). Retry, and quote the request ID if it persists.

Every error uses the same body. See Errors for the full list of codes.