Skip to main content
PUT
Update ResourceAccessRule
Updates an existing ResourceAccessRule record. You must include the Id of the record to update along with all required fields.

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-Edit role.

Enums

Request Body

Required Fields

integer
required
The Id of the ResourceAccessRule record to update.
integer
required
ID of the business linked to this record.
string
required
Rule name.
integer
required
The applied resources count value for this resource access rule.
integer
required
Order in which this rule is evaluated relative to other rules on the same resource. Lower values are evaluated first..
integer
required
How the cancellation fee is calculated: Absolute (fixed amount) or Percentage (of booking cost)..

Optional Fields

integer[]
List of resources linked to this record.
integer[]
The added resources value for this resource access rule.
integer[]
The removed resources value for this resource access rule.
boolean
Whether this rule is currently active and evaluated during booking..
boolean
When true, this rule applies only to contacts (non-member customers)..
string
Date from which this rule starts being evaluated. Null means no start-date restriction..
string
Date after which this rule stops being evaluated. Null means no end-date restriction..
number
Maximum number of days in advance a booking can be made. Null means no limit..
number
Minimum lead time (in minutes) required before a booking can start. Prevents last-minute bookings..
integer
Cut-off in minutes before the booking start time. Cancellations after this point are considered late and may incur a fee..
integer
Minimum interval (in minutes) between consecutive bookings on this resource, used as a buffer for setup or cleaning..
integer
Maximum allowed duration for a single booking, in minutes..
integer
Minimum allowed duration for a single booking, in minutes..
integer
Cooldown in minutes: prevents the same user from booking this specific resource again within this window after their last booking ends..
integer
Cooldown in minutes: prevents the same user from booking any resource after booking this one, for the specified window..
integer
Cooldown in minutes: prevents any user from booking this resource within the specified window after the previous booking ends..
string
Message shown to the user when their booking is rejected by this rule..
boolean
When true, this rule applies only to active members (coworkers with a plan)..
integer[]
List of tariffs linked to this record.
integer[]
The added tariffs value for this resource access rule.
integer[]
The removed tariffs value for this resource access rule.
integer[]
List of allowed tariffs linked to this record.
integer[]
The added allowed tariffs value for this resource access rule.
integer[]
The removed allowed tariffs value for this resource access rule.
integer[]
List of members linked to this record.
integer[]
The added members value for this resource access rule.
integer[]
The removed members value for this resource access rule.
integer[]
List of teams linked to this record.
integer[]
The added teams value for this resource access rule.
integer[]
The removed teams value for this resource access rule.
integer[]
List of allowed teams linked to this record.
integer[]
The added allowed teams value for this resource access rule.
integer[]
The removed allowed teams value for this resource access rule.
integer[]
List of event categories linked to this record.
integer[]
The added event categories value for this resource access rule.
integer[]
The removed event categories value for this resource access rule.
integer[]
List of courses linked to this record.
integer[]
The added courses value for this resource access rule.
integer[]
The removed courses value for this resource access rule.
boolean
When true, no further rules are evaluated after this one matches..
integer
ID of the cancellation fee product linked to this record.
boolean
When true, a fee is charged for late cancellations (past the LateCancellationLimit)..
number
Fixed cancellation fee amount. Used when CancellationFeeType is Absolute..
number
Cancellation fee as a percentage of the booking cost. Used when CancellationFeeType is Percentage..
integer
Maximum number of occurrences allowed when creating a recurring booking under this rule..
integer
Maximum time span (in months) over which a recurring booking series can extend under this rule..

Children

object[]
Time slots defining when this rule applies (eligibility windows). The year, month and day component of FromTime/ToTime is always 1976-01-01.
object[]
The days and times the resources can be booked when this rule applies. The year, month and day component of FromTime/ToTime is always 1976-01-01.

Code Examples

Response

200

integer
HTTP status code. 200 on success.
string
A human-readable message confirming the update.
object
Contains the Id of the updated record.
boolean
true if the resourceaccessrule was updated successfully.
array
null on success.
Example Response

400

string
A summary of the validation error(s), in the format PropertyName: error message.
any
null on validation failure.
object[]
Array of validation errors.
boolean
false when the request fails validation.
Example Response