Endpoint

/v1/files/quotas/{id}

GET

Get the directory quota for a directory and its limit in bytes

Parameters

Name Description Required
id Directory ID Yes

Response

Codes

Code Description
200 Return value on success

Schema

{
  "description": "api_files_quota",
  "type": "object",
  "properties": {
    "id": {
      "description": "Unique ID of this directory.",
      "type": "string"
    },
    "limit": {
      "description": "Limit in bytes of the cumulative size of this directory and its descendants.",
      "type": "string"
    }
  }
}

PUT

Modify the quota for a given directory.

Parameters

Name Description Required
id Directory ID Yes
If-Match ETag for expected version No

Request

Schema

{
  "description": "api_files_quota",
  "type": "object",
  "properties": {
    "id": {
      "description": "Unique ID of this directory.",
      "type": "string"
    },
    "limit": {
      "description": "Limit in bytes of the cumulative size of this directory and its descendants.",
      "type": "string"
    }
  }
}

Response

Codes

Code Description
200 Return value on success

Schema

{
  "description": "api_files_quota",
  "type": "object",
  "properties": {
    "id": {
      "description": "Unique ID of this directory.",
      "type": "string"
    },
    "limit": {
      "description": "Limit in bytes of the cumulative size of this directory and its descendants.",
      "type": "string"
    }
  }
}

DELETE

Delete the quota for a given directory.

Parameters

Name Description Required
id Directory ID Yes
If-Match ETag for expected version No

Response

Codes

Code Description
200 Return value on success