Skip to content
ADP
API Design PrincipleBETA

[ADP-147] Accept-Patch

Overview

This is a response-only header.

Guidance

  • MAY use Accept-Patch to inform the client that the requested resource with PATCH method and specific Content-Type is not supported, along with a 415 status code. Conversely, if the Content-Type is not specified in the request header, SHOULD NOT respond with Accept-Patch or 415.

    http
    PATCH /planet
    Content-Type: text/example
    
    415
    Accept-Patch: application/vnd.planet+json
  • Another use case is for OPTIONS requests; to inform the client that the resource supports the PATCH method.

References