v1

latestSwagger 2.0Apache 2.02026-07-1334102.9 MB
Files

Update a file

Updates the specified file by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

Returns

Returns JSON with a data key containing the new representation of the updated file, if the request is successful.

If the request is unsuccessful, JSON with an errors key containing information about the failure will be returned. Refer to the list of error codes to understand why this request may have failed.

patch/files/{file_id}/

Path parameters

file_idstring required

The unique identifier of the file you wish to update.

Request body

object required

Example request

{
  "data": {
    "type": "files",
    "id": "{file_id}",
    "attributes": {
      "name": "new file name.jpg"
    }
  }
}

Response

OK