ResourceAccessRules
Get one ResourceAccessRule
Retrieve a single ResourceAccessRule record by its Id.
GET
Get one ResourceAccessRule
A ResourceAccessRule defines additional booking policies and restrictions for one or moreDocumentation Index
Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
Use this file to discover all available pages before exploring further.
Resource(s) or for all resources in a location (Business), scoped by date/time, customer, team, plan, or other criteria. Rules are evaluated in EvaluationOrder and can optionally stop further evaluation when matched (StopEvaluationIfRuleIsMet).
The booking-policy fields (BookInAdvanceLimit, LateBookingLimit, LateCancellationLimit, IntervalLimit, MaxBookingLength, MinBookingLength, NoReturnPolicy*, cancellation-fee fields, and repeat-booking limits) mirror those on Resource and carry the same semantics — they override the resource-level defaults when the rule matches.
When BusinessId is set and Resources is empty, the rule applies to all resources in the business and its children (if any). When specific Resources are listed, the rule applies only to those resources.
Scope: who the rule applies to
OnlyForMembers/OnlyForContacts— quick toggles to limit the rule to members or contacts.Tariffs— pricing plans this rule applies to. When set, the rule only fires for customers on one of these plans.Teams— teams this rule applies to. When set, the rule only fires for members of one of these teams.Courses— the rule applies only to customers who have completed one of these courses.EventCategories— the rule applies only to customers who have attended (checked in to) an event in one of these categories.
Scope: who is allowed to book when the rule fires
AllowedTariffs— only customers on one of these plans are allowed to book when the rule applies to them.AllowedTeams— only members of one of these teams are allowed to book when the rule applies to them.
List mutation helpers
For each list field (Tariffs, AllowedTariffs, Teams, AllowedTeams, Members, EventCategories, Courses) there are Added* and Removed* variants that append or remove entries on update without replacing the full list.
Authentication
This endpoint requires OAuth2 authentication. Include a valid bearer token in the
Authorization header.
The authenticated user must be a full unrestricted administrator or have the ResourceAccessRule-Read role.Path Parameters
The Id of the ResourceAccessRule record to retrieve.
Code Examples
Response
200
ID of the business linked to this record.
List of resources linked to this record.
Rule name.
Whether this rule is currently active and evaluated during booking..
When true, this rule applies only to contacts (non-member customers)..
Date from which this rule starts being evaluated. Null means no start-date restriction..
Date after which this rule stops being evaluated. Null means no end-date restriction..
Maximum number of days in advance a booking can be made. Null means no limit..
Minimum lead time (in minutes) required before a booking can start. Prevents last-minute bookings..
Cut-off in minutes before the booking start time. Cancellations after this point are considered late and may incur a fee..
Minimum interval (in minutes) between consecutive bookings on this resource, used as a buffer for setup or cleaning..
Maximum allowed duration for a single booking, in minutes..
Minimum allowed duration for a single booking, in minutes..
The applied resources count value for this resource access rule.
Cooldown in minutes: prevents the same user from booking this specific resource again within this window after their last booking ends..
Cooldown in minutes: prevents the same user from booking any resource after booking this one, for the specified window..
Cooldown in minutes: prevents any user from booking this resource within the specified window after the previous booking ends..
Message shown to the user when their booking is rejected by this rule..
When true, this rule applies only to active members (coworkers with a plan)..
List of tariffs linked to this record.
List of allowed tariffs linked to this record.
List of members linked to this record.
List of teams linked to this record.
List of allowed teams linked to this record.
List of event categories linked to this record.
List of courses linked to this record.
Order in which this rule is evaluated relative to other rules on the same resource. Lower values are evaluated first..
When true, no further rules are evaluated after this one matches..
ID of the cancellation fee product linked to this record.
Name of the cancellation fee product (read-only, resolved from CancellationFeeProductId)..
When true, a fee is charged for late cancellations (past the LateCancellationLimit)..
How the cancellation fee is calculated: Absolute (fixed amount) or Percentage (of booking cost).. See
eCancellationFeeType enum values: 0 = None, 1 = Absolute, 2 = Percentage.Fixed cancellation fee amount. Used when CancellationFeeType is Absolute..
Cancellation fee as a percentage of the booking cost. Used when CancellationFeeType is Percentage..
Maximum number of occurrences allowed when creating a recurring booking under this rule..
Maximum time span (in months) over which a recurring booking series can extend under this rule..
Unique record identifier.
UUID of the record.
Date and time the record was created (ISO 8601).
Date and time the record was last updated (ISO 8601).
Email of the user who last updated this record.
Whether the record was recently created.
External system identifier.
Example Response
Get one ResourceAccessRule