eRS Actions icon

eRS Actions

Interact with the Ers App API

Booking → Create

AI-generated

Summary

Creates a booking in eRS that assigns a resource to a project for a given start and end time, with optional user-defined fields for the booking type.

Inputs

  • authentication — Credential type: OAuth2 (recommended, default) or Access Token.
  • resource_id (required) — Unique numeric ID of the resource being booked (minimum 0).
  • project_id (required) — Unique numeric ID of the project the booking belongs to (minimum 0).
  • start_time (required) — Booking start time, in yyyy-MM-ddThh:mm:00 format.
  • end_time (required) — Booking end time, in yyyy-MM-ddThh:mm:00 format.
  • mandatoryFields — Repeatable list of user-defined fields that the booking type requires. Pick the field from a list loaded from your eRS account. The value input then changes with the field type: text, number, boolean, date, select, multi-select, rich text, billing status, billing rate source (with custom rate), unit, disable-parallel, or ID.
  • otherFields — Repeatable list of optional user-defined booking fields. It uses the same field picker and type-dependent value inputs as Mandatory Fields.
  • requestOptions — Request settings: batching (items per batch, default 50, and interval, default 1000 ms), ignore SSL issues, proxy URL, and timeout (default 10000 ms).

Output shape

Not determinable from the supplied source. The create module in the pack contains only a sourcemap comment, so the return shape is not visible. Presumably it returns the created booking record from the eRS API.

This is an inference, not confirmed by the source. The request body mapping is also not visible. The only hint is that a custom billing rate is sent as rate.

Examples

Example 1: Book a resource on a project for a morning slot.

Set Resource ID and Project ID, Start Time 2026-10-05T09:00:00, End Time 2026-10-05T12:00:00. Leave the field collections empty.

Example 2: Create a billable booking where the booking type requires a billing status.

Fill the required IDs and times. Add a Mandatory Field, choose the billing status field, and set it to Billable.

Links

Discussion