Skip to content

Report sick leave status

Request

Requires scope: absence.

Report a status update for a sick leave registration. This endpoint is used by external integration partners to report the processing status of a sick leave registration that was sent via webhook.

The status transitions follow a state machine:

  • in_progress, The registration is being processed by the external system.
  • success, The registration was successfully processed (terminal state).
  • failed, The registration failed to process. Can be retried by sending a new status.

Note: The initial statuses new and acknowledged are set automatically by Dyflexis when the webhook is sent and received. Only in_progress, success, and failed can be reported via this endpoint.

Security
apiKey(Required scopes: absence)
Path
sickLeaveRegistrationIdstring(Ulid)^[0-9A-HJKMNP-TV-Z]{26}$required

The ULID of the sick leave registration.

Example:01GYS27FFVTP63WGPV34V1WR6P
Bodyapplication/jsonrequired
statusstringrequired

The status to report.

Enum:"in_progress""success""failed"
Example:"success"
messagestring or null, <= 1000 characters

An optional message providing details about the status (e.g. error details on failure). Maximum 1000 characters.

Example:"Successfully imported into external system."
externalReferencestring or null, <= 255 characters

An optional external reference identifier from the integration partner's system. Maximum 255 characters.

Example:"EXT-2026-001234"
curl -i -X POST \
  https://developer.dyflexis.com/_mock/openapi/api/absence/v3/sick-leave/01GYS27FFVTP63WGPV34V1WR6P/status \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "status": "success",
    "message": "Successfully imported into external system.",
    "externalReference": "EXT-2026-001234"
  }'

Responses

Status reported successfully.

Response
No content