HM Courts & Tribunals Service Validation Rules API

The validation-rules API from HM Courts & Tribunals Service — 2 operation(s) for validation-rules.

Operations 3

GET /api/validation/rules List all validation rules #
GET /api/validation/rules/{ruleId} Get a validation rule by ID #
PATCH /api/validation/rules/{ruleId} Enable or disable a validation rule #

Specifications

SDKs

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/hmcts/refs/heads/main/json-schema/hmcts-job-acknowledgement-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/hmcts/refs/heads/main/json-schema/hmcts-entry-update-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/hmcts/refs/heads/main/json-schema/hmcts-entry-create-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/hmcts/refs/heads/main/json-schema/hmcts-application-code-get-detail-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/hmcts/refs/heads/main/json-schema/hmcts-entry-get-detail-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/hmcts/refs/heads/main/json-schema/hmcts-entry-get-detail-dto-1-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/hmcts/refs/heads/main/json-schema/hmcts-event-payload-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/hmcts/refs/heads/main/json-schema/hmcts-hmac-credentials-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/hmcts/refs/heads/main/json-schema/hmcts-client-subscription-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/hmcts/refs/heads/main/json-schema/hmcts-client-subscription-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/hmcts/refs/heads/main/json-schema/hmcts-rotate-secret-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/hmcts/refs/heads/main/json-schema/hmcts-event-type-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/hmcts/refs/heads/main/json-schema/hmcts-draft-validation-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/hmcts/refs/heads/main/json-schema/hmcts-draft-validation-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/hmcts/refs/heads/main/json-schema/hmcts-update-rule-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/hmcts/refs/heads/main/json-schema/hmcts-rule-detail-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/hmcts/refs/heads/main/json-schema/hmcts-rule-list-response-schema.json

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/hmcts:hmcts-validation-rules-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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.

OpenAPI Specification

hmcts-validation-rules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Hmcts Validation Rules API
  version: 0.1.0
  contact:
    email: no-reply@hmcts.com
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  description: 'Operations tagged validation-rules across 2 of this provider''s published API definitions: api-cp-crime-hearing-results-validator-openapi-spec.yml, hmcts-results-validation-service-openapi.yml. Each path carries the servers of the definition it was published in.'
tags:
- name: validation-rules
paths:
  /api/validation/rules:
    get:
      operationId: listValidationRules
      tags:
      - validation-rules
      summary: List all validation rules
      description: Returns all registered validation rules across all rule types
      parameters:
      - $ref: '#/components/parameters/CjscppuidHeader'
      - $ref: '#/components/parameters/CppclientcorrelationidHeader'
      responses:
        '200':
          description: List of validation rules
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RuleListResponse'
  /api/validation/rules/{ruleId}:
    get:
      operationId: getValidationRuleById
      tags:
      - validation-rules
      summary: Get a validation rule by ID
      description: Returns full details for a single validation rule
      parameters:
      - in: path
        name: ruleId
        required: true
        schema:
          type: string
        description: Rule identifier (e.g. DR-SENT-001)
      - $ref: '#/components/parameters/CjscppuidHeader'
      - $ref: '#/components/parameters/CppclientcorrelationidHeader'
      responses:
        '200':
          description: Rule details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RuleDetailResponse'
        '404':
          description: Rule not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    patch:
      operationId: updateValidationRule
      tags:
      - validation-rules
      summary: Enable or disable a validation rule
      description: Updates the enabled status and/or severity of a validation rule identified by its ID
      parameters:
      - in: path
        name: ruleId
        required: true
        schema:
          type: string
        description: Rule identifier (e.g. DR-SENT-001)
      - $ref: '#/components/parameters/CjscppuidHeader'
      - $ref: '#/components/parameters/CppclientcorrelationidHeader'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateRuleRequest'
      responses:
        '200':
          description: Rule updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RuleDetailResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Rule not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  parameters:
    CppclientcorrelationidHeader:
      in: header
      name: CPPCLIENTCORRELATIONID
      required: false
      schema:
        type: string
      description: Session-level correlation ID from UI
    CjscppuidHeader:
      in: header
      name: CJSCPPUID
      required: true
      schema:
        type: string
      description: User identifier for CP authentication
  schemas:
    RuleListResponse:
      type: object
      properties:
        count:
          type: integer
          description: Total number of rules
        enabledCount:
          type: integer
          description: Number of enabled rules
        rules:
          type: array
          items:
            $ref: '#/components/schemas/RuleDetailResponse'
          description: List of rule summaries
    UpdateRuleRequest:
      type: object
      description: 'At least one field must be provided. Only supplied fields are updated; omitted fields are left unchanged.

        '
      properties:
        enabled:
          type: boolean
          description: Whether the rule should be active
        severity:
          type: string
          enum:
          - ERROR
          - WARNING
          description: 'Severity ceiling for the rule. Caps the rule''s condition severities downward (e.g. an ERROR condition is reduced to WARNING) but never promotes them above their configured severity. Setting WARNING stops the rule from blocking shares; setting ERROR leaves each condition at its configured severity.

            '
    RuleDetailResponse:
      type: object
      required:
      - ruleId
      - enabled
      properties:
        ruleId:
          type: string
          description: Rule identifier
        title:
          type: string
          description: Rule display title
        description:
          type: string
          description: Rule description
        priority:
          type: integer
          description: Rule priority/order
        severity:
          type: string
          enum:
          - ERROR
          - WARNING
          description: Default severity
        enabled:
          type: boolean
          description: Whether rule is currently active
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Machine-readable error code
        message:
          type: string
          description: Human-readable error message
        details:
          type: object
          additionalProperties: true
          description: Additional error context
        timestamp:
          type: string
          format: date-time
        traceId:
          type: string
          description: Unique identifier for error tracing
x-refined-from:
- api-cp-crime-hearing-results-validator-openapi-spec.yml
- hmcts-results-validation-service-openapi.yml