v1/mcp/preview/create_absences

Compute the preview envelope for createAbsences (bulk).

Body Params

Compute the Preview envelope for createAbsences (bulk).

int32
required
≥ 1

ID of a shyftplan account.

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 the absence reason.

employment_ids
array of objects
required

List of employment IDs.

employment_ids*
string

Note saved with the object.

boolean
Defaults to true
date-time
required

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

date-time
required

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

Responses
201

Signed preview token + impact summary

400

MCP preview requires an EmploymentsApiToken

401

401 Unauthorized

403

Forbidden - caller lacks create absence permission

404

One or more employments / absence_reason not found

422

Invalid date range

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