Skip to content

List references ​

A todo can be linked to other records, e.g. a diagnosis or an appointment. These links are deliberately not part of the todo object — resolving the targets is expensive, so they are fetched through this separate endpoint.

Returns the references of a todo.

Note: Todos are only soft-deleted. Their references survive a delete and remain readable via this endpoint. The todo itself becomes immutable afterwards: POST and DELETE on /references then return 400.

Note: References whose target the client may not see are filtered out silently. meta.total therefore counts only the references visible to the client, not everything stored.

Request ​

GET /api/oauth/v2/resource/todos/{uuid}/references

HeaderValue
AuthorizationBearer {access_token}

URL parameters ​

ParameterTypeRequiredDescription
uuidstringYesUnique todo ID

Query parameters ​

ParameterTypeRequiredDescription
offsetintegerNoStart position (default: 0)
limitintegerNoNumber of results (default: 50, max: 200)

Response ​

Success (200 OK) ​

json
{
  "data": [
    {
      "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "type": "MedicalDiagnosis",
      "target": "c3d4e5f6-a7b8-9012-cdef-234567890123"
    }
  ],
  "meta": {
    "total": 3,
    "offset": 0,
    "limit": 50
  }
}

Response fields ​

FieldTypeDescription
data[].idstring (UUID)Unique reference ID
data[].typestringType of the linked target (see Required scopes). For older references this can be a historical value (e.g. invoice or MedicalReceiptPosition) that POST does not accept — recreating the reference with that type is therefore not possible
data[].targetstring (UUID) | nullUUID of the linked record, without an embedded short designation. For the types MedicalExternalLetter, MedicalMotherChildPass, MedicalPsychotherapy, MedicalReceipt, DVPReportEntry, and Transmission there is no dedicated OAuth endpoint to look them up — the UUID identifies the target without being resolvable here
meta.totalintegerNumber of references visible to the client
meta.offsetintegerCurrent start position
meta.limitintegerNumber of returned entries
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/todos/b2c3d4e5-f6a7-8901-bcde-f01234567890/references?offset=0&limit=50" \
  -H "Authorization: Bearer {access_token}"
Parameter
Zuerst Token anfordern

Possible errors ​

StatusCodeDescription
401invalid_clientInvalid or missing access token
403insufficient_scopeScope todos not present
404not_foundTodo not found

Offisy GmbH