Applying Configuration Changes
Once you have configured your YAML file to include all the configuration changes needed, you can apply them by sending a PATCH request to
curl -u<username>:<password> -X PATCH "http://localhost:8081/artifactory/api/system/configuration" -H "Content-Type: application/yaml" -T configuration.yml
You must supply a user with Admin privileges through the REST API.
Take care when modifying Artifactory configurations
Modifying the Artifactory configurations is an advanced feature, and if done incorrectly may render Artifactory in an undefined and unusable state. Since it is easy to overwrite configurations, such as a repository's package type, we strongly recommend backing up the configuration before making any direct changes, and taking great care when doing so.
Deleting an Existing Element
The YAML file can also be configured to delete elements, such as deleting a value for an existing field or removing an existing repository, using the following format: (e.g. some local repository) / deleting the value of an existing field (e.g. remove the “RnD maven repository” is as follows
Replication (push and pull)
General (General, Property Sets, Proxy, Mail)
Security (General Security, Password Policy, LDAP, SAML, OAuth, HTTP SSO, Crowd)
Enabling and disabling Xray