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
Example request
{
"type": "VALIDITY",
"config": "FULL"
}Response
The rule was added.