# Common

This documentation covers options shared across multiple APIs. It is important to keep this separated to synchronize updates.

#### CreateBucketOptions

* `label`
  * required: `true`
  * type: `String`
  * description: A descriptive label for the bucket.
* `root_path`
  * required: `false`
  * type: `String`
  * description: If this option is specified, all [Assets](/ppdrive/terminologies.md#asset) uploaded to PPDRIVE will have paths relative to the specified path.
* `size`
  * required: `false`
  * type: `float64`
  * description: If specified, equals total size of [Assets](/ppdrive/terminologies.md#asset) that can be uploaded to the bucket. Think of this as an upload limit. It requires the `root_path` option to be set.
* `accepts`
  * required: `false`
  * type: `String`
  * description: The file mime type(s) that can be uploaded to the bucket. There are different formats for specifying acceptable mime types:
    * `*` is the default and means all mime types are accepted.
    * `custom` means a selection of mimetypes manually specified by a user. Acceptable format should start with the `custom` keyword followed by a colon `:` and comma separated mimetypes. Example: `custom:application/zip,audio/3gpp`
    * You can specify a group of mimes using the `filetype` they belong to (e.g., `audio`, `video`, `application`, etc.).
    * You can also specify a list of comma separated groups, e.g., `audio,video,application`.
* `public`
  * required: `false`
  * type: `Bool`
  * description: This will be the default visibility set for any asset uploaded to this bucket if no visibility is set for the asset.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dududaa.gitbook.io/ppdrive/common.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
