Skip to content

Create health notification

Creates a new health notification.

Note: This endpoint requires a user-scoped OAuth token. A pure client_credentials token without user context will be rejected. The issuing user is automatically derived from the token and cannot be set manually.

Request

POST /api/oauth/v2/resource/health-notifications

HeaderValue
AuthorizationBearer {access_token}
Content-Typeapplication/json

Body parameters

FieldTypeRequiredDescription
customerUuidstringYesUUID of the assigned customer
datestringNoDate of the health notification (YYYY-MM-DD, default: today)
customStartDatestringNoCustom start date (YYYY-MM-DD)
customEndDatestringNoCustom end date (YYYY-MM-DD)
diagnosestringNoDiagnosis
reasonstringNoReason
bedrestbooleanNoBed rest ordered
curfew1StartTimestringNoStart of 1st curfew period (HH:MM)
curfew1EndTimestringNoEnd of 1st curfew period (HH:MM)
curfew2StartTimestringNoStart of 2nd curfew period (HH:MM)
curfew2EndTimestringNoEnd of 2nd curfew period (HH:MM)
hospitalCareStartTimestringNoHospital care start time (HH:MM)
hospitalCareEndTimestringNoHospital care end time (HH:MM)
hospitalCareStartDatestringNoHospital care start date (YYYY-MM-DD)
hospitalCareEndDatestringNoHospital care end date (YYYY-MM-DD)
occupationalDiseaseintegerNoOccupational disease (0 = no)
electricalAccidentbooleanNoElectrical accident
reorderDate1stringNo1st follow-up appointment (YYYY-MM-DD)
reorderDate2stringNo2nd follow-up appointment (YYYY-MM-DD)
reorderDate3stringNo3rd follow-up appointment (YYYY-MM-DD)
reasonForBackdatingstringNoReason for backdating
specialIllnessReasonstringNoReason for special illness
noticeForInsurancestringNoNotice for insurance
printedbooleanNoAlready printed

Response

Success (201 Created)

json
{
  "data": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "date": "2026-06-09",
    "customStartDate": "2026-06-09",
    "customEndDate": "2026-06-16",
    "diagnose": "Common cold",
    "reason": null,
    "bedrest": true,
    "curfew1StartTime": "08:00",
    "curfew1EndTime": "12:00",
    "curfew2StartTime": null,
    "curfew2EndTime": null,
    "hospitalCareStartTime": null,
    "hospitalCareEndTime": null,
    "hospitalCareStartDate": null,
    "hospitalCareEndDate": null,
    "occupationalDisease": 0,
    "electricalAccident": false,
    "reorderDate1": "2026-06-12",
    "reorderDate2": null,
    "reorderDate3": null,
    "reasonForBackdating": null,
    "specialIllnessReason": null,
    "noticeForInsurance": null,
    "printed": false,
    "customer": {
      "id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
      "firstName": "Anna",
      "lastName": "Muster"
    }
  }
}

Response fields

See Get health notification for the full field description.

Beispiele
bash
curl -X POST "https://my.offisy.at/api/oauth/v2/resource/health-notifications" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{
    "customerUuid": "b2c3d4e5-f6a7-8901-bcde-f01234567890",
    "date": "2026-04-15T10:00:00",
    "customStartDate": "2026-04-15T10:00:00",
    "customEndDate": "2026-04-15T10:00:00",
    "diagnose": "beispiel",
    "reason": "beispiel",
    "bedrest": "beispiel",
    "curfew1StartTime": "beispiel",
    "curfew1EndTime": "beispiel",
    "curfew2StartTime": "beispiel",
    "curfew2EndTime": "beispiel",
    "hospitalCareStartTime": "beispiel",
    "hospitalCareEndTime": "beispiel",
    "hospitalCareStartDate": "2026-04-15T10:00:00",
    "hospitalCareEndDate": "2026-04-15T10:00:00",
    "occupationalDisease": "1",
    "electricalAccident": "b2c3d4e5-f6a7-8901-bcde-f01234567890",
    "reorderDate1": "2026-04-15T10:00:00",
    "reorderDate2": "2026-04-15T10:00:00",
    "reorderDate3": "2026-04-15T10:00:00",
    "reasonForBackdating": "beispiel",
    "specialIllnessReason": "beispiel",
    "noticeForInsurance": "beispiel",
    "printed": "beispiel"
  }'
Parameter
Zuerst Token anfordern

Possible errors

StatusCodeDescription
400invalid_requestNo user-scoped token provided
400validation_errorcustomerUuid missing
401invalid_clientInvalid or missing access token
403insufficient_scopeScope medicals not present
404not_foundCustomer not found

Offisy GmbH