v1

latestOpenAPI 3.0.02026-07-14198572488.4 KB
Files

Change file permissions.

For a given site, change permissions for given file.

patch/v1/sites/{id}/files/chmod

Path parameters

idinteger required

ID of the Site you are interacting with

Example:8880000888

Request body

filestring required

Path and name of the file to change permissions on

permissionsstring required

Linux file permissions such as 0600

Example request

{
  "file": "index.php",
  "permissions": "0600"
}

Response

OK

successboolean

whether the request succeeded

errorsstring[]
messagesstring[] nullable

Example response

{
  "success": true,
  "errors": [],
  "messages": [],
  "result": {
    "success": true,
    "path": "wp-content/plugins"
  }
}