Rentman icon

Rentman

Interact with the Rentman rental management API

Actions206

Leave Request → Create

AI-generated

Summary

Creates a leave request in Rentman for a specified crew member by sending a POST request with the crew resource path and an optional description.

Inputs

  • requested_for (required) — Resource path of the crew member the leave request is for, e.g. /crew/42. Sent as requested_for in the request body.
  • additionalFields — Optional collection. Currently supports Description, a multi-line text sent as description in the request body.
  • requestOptions — Node-level HTTP settings: batching (items per batch, default 50, and interval in ms, default 1000), ignore SSL issues, proxy URL, and timeout in ms (default 10000).

Output shape

The Rentman API response for the newly created leave request, returned as an item per input item.

The source pack contains only stubbed modules, so the exact response fields are not visible. The request is built declaratively from the routing definitions in the properties. Batching can throttle requests when many items are processed.

Examples

Example 1: Log a leave request for crew member 42 with a reason.

Requested For (Path) = /crew/42; Additional Fields > Description = "Annual vacation".

Example 2: Create leave requests for many crew members coming from a spreadsheet, without overloading the API.

Requested For (Path) = {{ '/crew/' + $json.crewId }}; Request Options > Batching with 10 items per batch and 2000 ms interval.

Links

Discussion