CreateRuleCommand
Create rule. You can reference an entity using either a versionId, entityPath and entityTypePath, or an entityId. Here's an example using versionId, entityPath and entityTypePath: { "statement": "Client code must be unique", "code": "client_code_unique", "type": "uniqueness", "versionId": "4aeae8a9-0c0d-4fa9-a8af-cb529bb64fa2", "entityPath": "\\Zoho\\CRM\\Client", "entityTypePath": "\\Relational\\Model\\Table" } Here's an example using entityId: { "statement": "Invoice must include reference", "code": "invoice_missing_reference", "type": "completeness", "entityId": "bd95bbbf-16f8-4618-ab47-4ee835563304:52e35910-c3d0-45ce-b330-a9db28e5dc73", }
Properties
| Name | Type | Description |
|---|---|---|
| statement | string | Statement of the rule in natural language. Example: Client code must be unique |
| code | stringnull | External identifier of the rule (must be unique in a workspace). Example: 123_client_code_unique |
| versionId | stringnull | Workspace version unique identifier. Example: 22b5dc8c-8a19-48fa-99e3-a3da9bfe0068 |
| entityId | stringnull | Entity unique identifier (composed of the workspace UUID and the object UUID separated by a colon). Example: bd95bbbf-16f8-4618-ab47-4ee835563304:52e35910-c3d0-45ce-b330-a9db28e5dc73 |
| type | object | Rule type. Must be one of the seven dimensions of data quality assessment: completeness, accuracy, consistency, validity, uniqueness, integrity or timeliness |
| entityPath | stringnull | Entity path using backslash (\\) as a separator. Example: \\Zoho\\CRM\\Client. Please note that \\ must be escaped in JSON string (i.e., "\\\\Zoho\\\\CRM\\\\Client") |
| entityTypePath | stringnull | Entity type path using backslash (\\) as a separator. Example: \\Relational\\Model\\Table. Please note that \\ must be escaped in JSON string (i.e., "\\\\Relational\\\\Model\\\\Table") |
| fieldIds | arraynull | List of field identifiers associated with the rule. |
| severity | object | Severity level of the rule. |
| category | stringnull | Category of the rule. |
| description | stringnull | Description of the rule. |
| externalUrl | stringnull | External URL for more information about the rule. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/datagalaxy/json-schema/datagalaxy-create-rule-command-schema.json",
"title": "CreateRuleCommand",
"description": "Create rule.\nYou can reference an entity using either a versionId, entityPath and entityTypePath, or an entityId.\nHere's an example using versionId, entityPath and entityTypePath:\n{\n \"statement\": \"Client code must be unique\",\n \"code\": \"client_code_unique\",\n \"type\": \"uniqueness\",\n \"versionId\": \"4aeae8a9-0c0d-4fa9-a8af-cb529bb64fa2\",\n \"entityPath\": \"\\\\Zoho\\\\CRM\\\\Client\",\n \"entityTypePath\": \"\\\\Relational\\\\Model\\\\Table\"\n}\nHere's an example using entityId:\n{\n \"statement\": \"Invoice must include reference\",\n \"code\": \"invoice_missing_reference\",\n \"type\": \"completeness\",\n \"entityId\": \"bd95bbbf-16f8-4618-ab47-4ee835563304:52e35910-c3d0-45ce-b330-a9db28e5dc73\",\n}\n ",
"x-generated": "2026-11-24",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/datagalaxy-openapi.yml#/components/schemas/CreateRuleCommand",
"type": "object",
"additionalProperties": false,
"properties": {
"statement": {
"type": "string",
"description": "Statement of the rule in natural language. Example: Client code must be unique"
},
"code": {
"type": [
"string",
"null"
],
"description": "External identifier of the rule (must be unique in a workspace). Example: 123_client_code_unique"
},
"versionId": {
"type": [
"string",
"null"
],
"description": "Workspace version unique identifier. Example: 22b5dc8c-8a19-48fa-99e3-a3da9bfe0068",
"format": "guid"
},
"entityId": {
"type": [
"string",
"null"
],
"description": "Entity unique identifier (composed of the workspace UUID and the object UUID separated by a colon). Example: bd95bbbf-16f8-4618-ab47-4ee835563304:52e35910-c3d0-45ce-b330-a9db28e5dc73"
},
"type": {
"description": "Rule type. Must be one of the seven dimensions of data quality assessment: completeness, accuracy, consistency, validity, uniqueness, integrity or timeliness",
"nullable": true,
"oneOf": [
{
"$ref": "#/$defs/RuleTypeEnum"
}
]
},
"entityPath": {
"type": [
"string",
"null"
],
"description": "Entity path using backslash (\\\\) as a separator. Example: \\\\Zoho\\\\CRM\\\\Client. Please note that \\\\ must be escaped in JSON string (i.e., \"\\\\\\\\Zoho\\\\\\\\CRM\\\\\\\\Client\")"
},
"entityTypePath": {
"type": [
"string",
"null"
],
"description": "Entity type path using backslash (\\\\) as a separator. Example: \\\\Relational\\\\Model\\\\Table. Please note that \\\\ must be escaped in JSON string (i.e., \"\\\\\\\\Relational\\\\\\\\Model\\\\\\\\Table\")"
},
"fieldIds": {
"type": [
"array",
"null"
],
"description": "List of field identifiers associated with the rule.",
"items": {
"type": "string"
}
},
"severity": {
"description": "Severity level of the rule.",
"nullable": true,
"oneOf": [
{
"$ref": "#/$defs/SeverityEnum"
}
]
},
"category": {
"type": [
"string",
"null"
],
"description": "Category of the rule."
},
"description": {
"type": [
"string",
"null"
],
"description": "Description of the rule."
},
"externalUrl": {
"type": [
"string",
"null"
],
"description": "External URL for more information about the rule."
}
},
"$defs": {
"RuleTypeEnum": {
"type": "string",
"description": "Data quality rule type using the 7 dimensions of data quality assessment.",
"x-enumNames": [
"Completeness",
"Accuracy",
"Consistency",
"Validity",
"Uniqueness",
"Integrity",
"Timeliness"
],
"enum": [
"Completeness",
"Accuracy",
"Consistency",
"Validity",
"Uniqueness",
"Integrity",
"Timeliness"
]
},
"SeverityEnum": {
"type": "string",
"description": "Data quality rule severity based on the four dimensions of sifflet data quality assessment.",
"x-enumNames": [
"Low",
"Moderate",
"High",
"Critical"
],
"enum": [
"Low",
"Moderate",
"High",
"Critical"
]
}
}
}
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
curl "https://apis.io/api/v1/json-schemas/datagalaxy-create-rule-command"
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.