v1

latestOpenAPI 3.0.2Apache 2.02026-07-136548173.9 KB
Artifact rules

Create artifact rule

Adds a rule to the list of rules that get applied to the artifact 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 artifact with this artifactId exists (HTTP error 404)
  • Rule (named in the request body) is unknown (HTTP error 400)
  • A server error occurred (HTTP error 500)
post/groups/{groupId}/artifacts/{artifactId}/rules

Request body

configstring required
type'VALIDITY' | 'COMPATIBILITY' | 'INTEGRITY'

Example request

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

Response

The rule was added.