PATCH /image/:id

This API updates various attributes of the specified image.

Authorization

The request must be made by an account that has permissions to make all of the requested modifications. If any of the requested modifications are disallowed, the entire operation fails.

Request Structure

The URL parameter :id is the ID of the image to modify.

The structure of the request is:

{
  // New textual note attached to the image
  "note": $string?,

  // See docs for POST /handle/:handle/image for a description of
  // the permissions object.
  "permissions": $object?,
}

For the definition of substructures such as permissions, see POST /handle/:handle/image.

Response Structure

The structure of the response is:

{
  "error": $bool // Whether an error occurred
}