v1/mcp/preview/update_absences

Body Params
string
required

This is a testing sandbox. We advise against using credentials for production accounts here.

E-mail address of the API user.

string
required

This is a testing sandbox. We advise against using credentials for production accounts here.

Authentication token - can be fetched by login action.

int32
required
≥ 1

ID of a shyftplan account.

absence_ids
array of objects
required
absence_ids*
int32
≥ 1

ID of the absence reason.

boolean

Is the absence spanning full days only?

boolean

Whether the manager was informed directly about the Absence. Null when the absence reason has manager informed setting disabled.

string

Note saved with the object.

boolean

Determines whether the absence duration is counted as working time.

    Available options:
  • true: Only retrieve absences that are marked as 'paid' (absence counts as working time).
  • false: Only retrieve unpaid absences.

string

Note for the refusal of the absence.

date-time

Date-time (ISO 8601) for the begin of the object's span.

date-time

Date-time (ISO 8601) for the end of the object's span.

string
enum
Defaults to new

State of the absence.

    Available options:
  • new: Absence application (by manager or employee) on which no decision has been made.
  • accepted: Approved absence (by manager).
  • refused: Application refused by a manager.
  • withdrawn: Application withdrawn by the employee.

Allowed:
Response
201

created UpdateAbsence

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here!