The HTTP PATCH request must provide a media type for the server to determine how the patch should be applied to an image resource. An unsupported media type will result in an HTTP error response with the 415 status code. For image resources, two media types are supported:
application/openstack-images-v2.1-json-patch
application/openstack-images-v2.0-json-patch
The
application/openstack-images-v2.1-json-patch
media type is intended to provide a useful and compatible subset
of the functionality defined in JavaScript Object Notation (JSON)
Patch
RFC6902,
which defines the application/json-patch+json
media type.
The
application/openstack-images-v2.0-json-patch
media type is based on
draft
4 of the standard. Its use is deprecated.