Artifactory YAML Configuration Change Application

Apply Artifactory YAML configuration changes by sending a PATCH request to the /api/system/configuration REST endpoint.

After configuring the YAML file with all the needed changes, apply them by sending a PATCH request to <host>:<port>/api/system/configuration.

For example:

curl -u<username>:<password> -X PATCH "http://localhost:8081/artifactory/api/system/configuration" -H "Content-Type: application/yaml" -T configuration.yml
📘

Admin privileges

You must supply a user with Admin privileges through the REST API.

📘

Important

Do not set the yaml to not contain any elements, as this will delete all the local/remote/virtual repositories.