Endpoint

/v1/files/quotas/

GET

List all set directory quotas.

Parameters

Name Description Required
after Return entries after the given key (keys are returned in the paging object) No
limit Return no more than this many entries; the system may choose a smaller limit. No

Response

Codes

Code Description
200 Return value on success

Schema

{
  "description": "api_files_quota_entries",
  "type": "object",
  "properties": {
    "quotas": {
      "type": "array",
      "items": {
        "description": "quotas",
        "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"
          }
        }
      }
    }
  }
}

POST

Add a directory quota.

Parameters

This resource has no parameters.

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"
    }
  }
}