Properties
| Name | Type | Description |
|---|---|---|
| name | string | |
| maxValidations | number | Amount a ticket can be validated (successfully scanned) on the rule. When 0 the ticket cannot be scanned. |
| maxValidationScope | string | Defines the scope of maxValidations. UNRESTRICTED: total limit across entire validity period, DAILY: limit resets each day, SAME_DAY: all scans must occur on the same calendar day. |
| validFrom | string | Barcodes can be scanned from this date onwards |
| validUntil | string | Barcodes can be scanned until this date. |
| daysValidAfterPurchase | number | Amount of days a barcode can be validated after its issued date (whole days, timestamp is not taken into account) |
| shouldValidateTimeslotMoment | boolean | If set to true a barcode with a timeslot can only be scanned on the (whole) day of the timeslot |
| minutesBeforeTimeslot | number | Minutes before the timeslot moment a barcode may be scanned. When set (with or without minutesAfterTimeslot) the scan is validated against an exact time window around the timeslot instead of the whole |
| minutesAfterTimeslot | number | Minutes after the timeslot moment a barcode may be scanned. When set (with or without minutesBeforeTimeslot) the scan is validated against an exact time window around the timeslot instead of the whole |
| shouldValidateOnParent | boolean | If set to true barcodes will be validated on the top-level parent of the entrance plan. |
| scanColour | string | Colour (hexcode) that is used on scanner display for successful checkins (Default is green). |
| scanMessage | string | Message displayed on successful checkin. |
| requiresPhotoVerification | boolean | If set to true a successful checkin requires staff to verify the visitor against a photo (e.g. Museumpass Belgium) before it is registered. |
| requiresConfirmationQuestion | boolean | If set to true a successful checkin requires staff to answer a confirmation question before it is registered. |
| confirmationQuestion | string | Question shown to staff. Required when requiresConfirmationQuestion is true. |
| eventId | string | externalId of event the rule applies to |
| primaryConstraintId | string | externalId of constraint the rule applies to |
| secondaryConstraintId | string | externalId of constraint the rule applies to |
| tertiaryConstraintId | string | externalId of constraint the rule applies to |
| productIds | array | Array of product externalIds the rule applies to |
| venueSectionIds | array | Array of venue section externalIds the rule applies to |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/cm-com/main/json-schema/cm-com-create-rule-dto-schema.json",
"title": "CreateRuleDto",
"x-generated": "2026-10-13",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/cm-com-live-entrance-management-v1-openapi.yml#/components/schemas/CreateRuleDto",
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 255
},
"maxValidations": {
"type": "number",
"minimum": 0,
"description": "Amount a ticket can be validated (successfully scanned) on the rule. When 0 the ticket cannot be scanned."
},
"maxValidationScope": {
"type": "string",
"enum": [
"UNRESTRICTED",
"DAILY",
"SAME_DAY"
],
"description": "Defines the scope of maxValidations. UNRESTRICTED: total limit across entire validity period, DAILY: limit resets each day, SAME_DAY: all scans must occur on the same calendar day."
},
"validFrom": {
"format": "date-time",
"type": "string",
"description": "Barcodes can be scanned from this date onwards"
},
"validUntil": {
"format": "date-time",
"type": "string",
"description": "Barcodes can be scanned until this date."
},
"daysValidAfterPurchase": {
"type": "number",
"description": "Amount of days a barcode can be validated after its issued date (whole days, timestamp is not taken into account)"
},
"shouldValidateTimeslotMoment": {
"type": "boolean",
"description": "If set to true a barcode with a timeslot can only be scanned on the (whole) day of the timeslot"
},
"minutesBeforeTimeslot": {
"type": "number",
"minimum": 0,
"maximum": 120,
"description": "Minutes before the timeslot moment a barcode may be scanned. When set (with or without minutesAfterTimeslot) the scan is validated against an exact time window around the timeslot instead of the whole day. Only applies when shouldValidateTimeslotMoment is true."
},
"minutesAfterTimeslot": {
"type": "number",
"minimum": 0,
"maximum": 120,
"description": "Minutes after the timeslot moment a barcode may be scanned. When set (with or without minutesBeforeTimeslot) the scan is validated against an exact time window around the timeslot instead of the whole day. Only applies when shouldValidateTimeslotMoment is true."
},
"shouldValidateOnParent": {
"type": "boolean",
"description": "If set to true barcodes will be validated on the top-level parent of the entrance plan."
},
"scanColour": {
"type": "string",
"default": "#3ddc97",
"description": "Colour (hexcode) that is used on scanner display for successful checkins (Default is green)."
},
"scanMessage": {
"type": "string",
"maxLength": 255,
"default": "Barcode successfully checked in.",
"description": "Message displayed on successful checkin."
},
"requiresPhotoVerification": {
"type": "boolean",
"description": "If set to true a successful checkin requires staff to verify the visitor against a photo (e.g. Museumpass Belgium) before it is registered."
},
"requiresConfirmationQuestion": {
"type": "boolean",
"description": "If set to true a successful checkin requires staff to answer a confirmation question before it is registered."
},
"confirmationQuestion": {
"type": "string",
"maxLength": 80,
"description": "Question shown to staff. Required when requiresConfirmationQuestion is true."
},
"eventId": {
"type": "string",
"maxLength": 255,
"description": "externalId of event the rule applies to"
},
"primaryConstraintId": {
"type": "string",
"maxLength": 255,
"description": "externalId of constraint the rule applies to"
},
"secondaryConstraintId": {
"type": "string",
"maxLength": 255,
"description": "externalId of constraint the rule applies to"
},
"tertiaryConstraintId": {
"type": "string",
"maxLength": 255,
"description": "externalId of constraint the rule applies to"
},
"productIds": {
"description": "Array of product externalIds the rule applies to",
"type": "array",
"items": {
"type": "array"
}
},
"venueSectionIds": {
"description": "Array of venue section externalIds the rule applies to",
"type": "array",
"items": {
"type": "array"
}
}
},
"required": [
"name",
"maxValidations",
"maxValidationScope",
"shouldValidateTimeslotMoment",
"shouldValidateOnParent",
"requiresPhotoVerification",
"requiresConfirmationQuestion"
]
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/cm-com-create-rule-dto"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.