Pre-release — content may change.

Leaves

Bulk-update a person's leaves

PATCH
/people/{person_id}/leaves/bulk_update

Apply a batch of leave creates, updates, and deletions for a person in a single request. On success the response is the parent person with the updated leaves included.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

person_id*string

UUID of the person whose leaves to bulk-update.

Request Body

TypeScript Definitions

Use the request body type in TypeScript.

Bulk-update request for a person's leaves. Applies a batch of creates, updates, and deletions in one call. The owning person comes from the path (/people/{person_id}/leaves/bulk_update). Each creates / updates entry is a leave object and delete_ids lists the ids of leaves to remove.

Response Body

application/json

application/json

application/json

curl -X PATCH "https://example.com/people/497f6eca-6276-4993-bfeb-53cbbbba6f08/leaves/bulk_update" \  -H "Content-Type: application/json" \  -d '{}'
{  "data": {},  "included": [    {      "type": "string",      "id": "string"    }  ]}
{  "errors": [    {      "status": 0,      "title": "string",      "source": {        "pointer": "string",        "parameter": "string"      },      "meta": {        "error": "string",        "field": "string"      }    }  ]}
{  "errors": [    {      "status": 0,      "title": "string",      "source": {        "pointer": "string",        "parameter": "string"      },      "meta": {        "error": "string",        "field": "string"      }    }  ]}