After you configure the YAML file to include all the configuration changes needed, you can 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.