ValidationRules
Get one ValidationRule
Retrieve a single ValidationRule record by its Id.
GET
Get one ValidationRule
A validation rule is a location-scoped custom expression evaluated when selected records are created or updated; a false result blocks the save with its configured error message.
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 ValidationRule-Read role.Path Parameters
Code Examples
Response
200
ID of the location that owns this rule; a rule on a network location is also evaluated for records in its child locations.
Required internal name for this rule; it is returned as the failure message when ErrorMessage is null.
Record type this rule evaluates: Coworker (customer), Booking, CoworkerContract, Visitor, CoworkerProduct, ProposalContract, CoworkerInvoice, Teams, or EventAttendees. See
eValidationRuleEntity enum values: 1 = Coworker, 2 = Booking, 4 = CoworkerContract, 5 = Visitor, 6 = CoworkerProduct, 7 = ProposalContract, 8 = CoworkerInvoice, 9 = Teams, 10 = EventAttendees.Whether this rule is evaluated when a matching record is created or updated; only active rules are selected for evaluation.
Required Flee expression that returns true to allow the record and false to reject it; use record, isCreate, isUpdate, user, and the available CustomFunctions as evaluation context.
Message returned when Formula evaluates to false; when null, the rule Name is returned instead.
Example Response