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
integer
required
The Id of the ValidationRule record to retrieve.
Code Examples
Response
200
integer
ID of the location that owns this rule; a rule on a network location is also evaluated for records in its child locations.
string
Required internal name for this rule; it is returned as the failure message when ErrorMessage is null.
integer
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.boolean
Whether this rule is evaluated when a matching record is created or updated; only active rules are selected for evaluation.
string
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.
string
Optional internal notes explaining this rule; not shown to customers.
string
Message returned when Formula evaluates to false; when null, the rule Name is returned instead.
integer
Unique record identifier.
string
UUID of the record.
string
Date and time the record was created (ISO 8601).
string
Date and time the record was last updated (ISO 8601).
string
Email of the user who last updated this record.
boolean
Whether the record was recently created.
string
External system identifier.
Example Response