v1

latestOpenAPI 3.0.2Apache 2.02026-07-136548173.9 KB
Artifact rules

Update artifact rule configuration

Updates the configuration of a single rule for the artifact. The configuration data is specific to each rule type, so the configuration of the COMPATIBILITY rule is in a different format from the configuration of the VALIDITY rule.

This operation can fail for the following reasons:

  • No artifact with this artifactId exists (HTTP error 404)
  • No rule with this name/type is configured for this artifact (HTTP error 404)
  • Invalid rule type (HTTP error 400)
  • A server error occurred (HTTP error 500)
put/groups/{groupId}/artifacts/{artifactId}/rules/{rule}

Request body

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

Example request

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

Response

Rule configuration was updated.

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

Example response

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