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.
Request Body
Required Fields
The Id of the ResourceAccessRule record to update.
Order in which this rule is evaluated relative to other rules on the same resource. Lower values are evaluated first..
Optional Fields
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..
Cooldown in minutes: prevents the same user from booking this specific resource again within this window after their last booking ends..
NoReturnPolicyAllResources
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)..
Removed Event Categories.
StopEvaluationIfRuleIsMet
When true, no further rules are evaluated after this one matches..
Cancellation Fee Product Id.
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 above.
Fixed cancellation fee amount. Used when CancellationFeeType is Absolute..
CancellationFeePercentage
Cancellation fee as a percentage of the booking cost. Used when CancellationFeeType is Percentage..
RepeatBookingQuantityLimit
Maximum number of occurrences allowed when creating a recurring booking under this rule..
RepeatBookingPeriodLimitInMonths
Maximum time span (in months) over which a recurring booking series can extend under this rule..
Children
Time slots defining when this rule applies (eligibility windows). The year, month and day component of FromTime/ToTime is always 1976-01-01.
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
curl -X PUT \
"https://spaces.nexudus.com/api/spaces/resourceaccessrules" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"ResourceId": 0,
"Name": "",
"EvaluationOrder": 0,
"Id": 87654321,
"EligibleTimeSlots": [
{
"DayOfWeek": 0,
"FromTime": "2025-01-15T10:30:00Z",
"ToTime": "2025-01-15T10:30:00Z"
}
],
"TimeSlots": [
{
"DayOfWeek": 0,
"FromTime": "2025-01-15T10:30:00Z",
"ToTime": "2025-01-15T10:30:00Z"
}
]
}'
Response
200
HTTP status code. 200 on success.
A human-readable message confirming the update.
Contains the Id of the updated record.
true if the resourceaccessrule was updated successfully.
{
"Status" : 200 ,
"Message" : "ResourceAccessRule was successfully updated." ,
"Value" : {
"Id" : 87654321
},
"OpenInDialog" : false ,
"OpenInWindow" : false ,
"RedirectURL" : null ,
"JavaScript" : null ,
"UpdatedOn" : "2025-01-15T10:30:00Z" ,
"UpdatedBy" : "admin@example.com" ,
"Errors" : null ,
"WasSuccessful" : true
}
400
A summary of the validation error(s), in the format PropertyName: error message.
null on validation failure.
Array of validation errors. The value that was submitted for the field, or null if missing.
The validation error message.
The name of the property that failed validation.
false when the request fails validation.
{
"Message" : "Name: is a required field" ,
"Value" : null ,
"Errors" : [
{
"AttemptedValue" : null ,
"Message" : "is a required field" ,
"PropertyName" : "Name"
}
],
"WasSuccessful" : false
}