= API Changes =

== Message Format Changes ==

Prior to version 11 PKI mostly supported REST API in XML format,
although there were endpoints that supported JSON as well.
Starting from version 11 PKI will only support REST API in JSON format.

In most cases users using the REST API indirectly via CLI or Web UI should not be affected.
However, PKI tools that used to take or produce an XML file will now take or produce a JSON file instead.

See link:Tools-Changes.adoc[Tools Changes].

== Replace User method from REST API has been removed ==

This endpoint was not exposed through the web UI or the CLI for any subsystem. It was possible to access it via curl however, with unexpected results, so it has been removed.

The modify user functions in the web UI and CLI for all subsystems are unaffected.

Any user reliant on a replace user method via bypassing the web UI and CLI will need to refactor to use a modify user method instead.

== pki.crypto.NSSCryptoProvider has been removed ==

The `pki.crypto.NSSCryptoProvider` Python class has been removed.
Use `pki.crypto.CryptographyCryptoProvider` instead.
