v51

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-08-01131107332.8 KB
Group rules

Create group rule

Adds a rule to the list of rules that get applied to an artifact in the group when adding new versions. All configured rules must pass to successfully add a new artifact version.

This operation can fail for the following reasons:

  • No group with this groupId exists (HTTP error 404)
  • Rule (named in the request body) is unknown (HTTP error 400)
  • Rule is already configured (HTTP error 409)
  • A server error occurred (HTTP error 500)
post/groups/{groupId}/rules

Request body

configstring required
ruleType'VALIDITY' | 'COMPATIBILITY' | 'INTEGRITY'

Example request

{
  "ruleType": "VALIDITY",
  "config": "FULL"
}

Response

The rule was added.