---
title: "Publish the draft AML screening rules"
method: POST
path: "/resources/api/agent/amlResolutionRules/draft/publish"
tags: ["AmlResolutionRulesApiAgentResource"]
---

# Publish the draft AML screening rules

`POST /resources/api/agent/amlResolutionRules/draft/publish`

Publishes the draft revision, making it the rule chain applied to live AML screening. Publishing requires the draft to have no error-level notices — check them via the draft endpoint first. The previously published revision, if any, is archived automatically, so exactly one revision is live at a time. Responds with 404 when no draft exists. Publishing through this endpoint is intended for the initial integration phase: once the integration is deemed active, publishing may be refused, and the rule chain must then be reviewed and published manually from the Sumsub web UI.

## Response `default`

default response

- AmlScreeningRulesRevision — A revision of the AML screening rule chain.
  - `archived` AmlScreeningRulesActionTrail — Records who performed an action on the revision, and when.
    - `clientSubject` string — Name of the user who performed the action.
    - `date` string, date-time — When the action occurred.
  - `created` AmlScreeningRulesActionTrail — Records who performed an action on the revision, and when.
    - `clientSubject` string — Name of the user who performed the action.
    - `date` string, date-time — When the action occurred.
  - `id` string
  - `modified` AmlScreeningRulesActionTrail — Records who performed an action on the revision, and when.
    - `clientSubject` string — Name of the user who performed the action.
    - `date` string, date-time — When the action occurred.
  - `notices` AmlRuleNoticePublicDto[] — Validation findings for this revision. Publishing requires no error-level notices.
    - `message` string — Message key identifying the finding.
    - `messageParams` object — Parameters of the message, keyed by parameter name.
    - `ruleId` string — Id of the rule the finding refers to, when applicable.
    - `severity` string — Severity of the finding.
  - `published` AmlScreeningRulesActionTrail — Records who performed an action on the revision, and when.
    - `clientSubject` string — Name of the user who performed the action.
    - `date` string, date-time — When the action occurred.
  - `revision` integer — Revision number; increases with each new revision.
  - `revisionStatus` string — Current status of this revision.
  - `rules` AmlRulePublicDto[] — The AML screening rules, in evaluation order.
    - `condition` Condition
      - `astId` integer
      - `negate` boolean
      - `or` And[]
        - `and` Criterion[]
          - `args` Arg[]
            - `astId` integer
            - `exp` string
            - `lit` string
          - `astId` integer
          - `op` string
        - `astId` integer
        - `negate` boolean
        - `score` integer
    - `description` string — Free-form description of what the rule does.
    - `id` string — Id of the rule, unique within the rule chain. Omit to create a new rule: the server assigns the id and returns it in the response. Provide an existing id to update that rule.
    - `name` string, required — Display name of the rule.
    - `review` AmlRuleReviewActionPublicDto — Automatic review action applied to AML hits matched by the rule.
      - `expression` string — Condition expression guarding the review action: the action is applied only when it evaluates to true.
      - `matchStatus` Arg
        - `astId` integer
        - `exp` string
        - `lit` string
      - `note` Arg
        - `astId` integer
        - `exp` string
        - `lit` string
      - `riskLevel` Arg
        - `astId` integer
        - `exp` string
        - `lit` string
      - `whitelisted` Arg
        - `astId` integer
        - `exp` string
        - `lit` string
    - `tags` AmlRuleTagActionPublicDto — Tagging action applied to applicants whose AML hits match the rule.
      - `tags` string[] — Applicant tags to add when the rule matches.

---

[API](https://skmtc.net/sumsub/apis/sumsub-api-service.md) · [All operations](https://skmtc.net/sumsub/apis/sumsub-api-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sumsub/sumsub-api-service/versions/ff7d1732d518/schema)
