POST /b/{bucket}/folders
Changed onCreates a new folder. Only applicable to buckets with hierarchical namespace enabled.
Request
- Base URLhttps://storage.googleapis.com/storage/v1
- Auth
- OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/cloud-platformAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/cloud-platform
- or OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/devstorage.full_controlAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/devstorage.full_control
- or OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/devstorage.read_writeAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/devstorage.read_write
Path parameters
Name of the bucket in which the folder resides.
Query parameters
Data format for the response.
Selector specifying which fields to include in a partial response.
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
OAuth 2.0 token for the current user.
Returns response with indentations and line breaks.
An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
Upload protocol for media (e.g. "media", "multipart", "resumable").
Deprecated. Please use quotaUser instead.
If true, any parent folder which doesn't exist will be created automatically.
Request body
A folder. Only available in buckets with hierarchical namespace enabled.
The name of the bucket containing this folder.
The creation time of the folder in RFC 3339 format.
The ID of the folder, including the bucket name, folder name.
The kind of item this is. For folders, this is always storage#folder.
The version of the metadata for this folder. Used for preconditions and for detecting changes in metadata.
The name of the folder. Required if not specified by URL parameter.
Only present if the folder is part of an ongoing rename folder operation. Contains information which can be used to query the operation status.
The link to this folder.
The modification time of the folder metadata in RFC 3339 format.
Response
Successful response
A folder. Only available in buckets with hierarchical namespace enabled.
The name of the bucket containing this folder.
The creation time of the folder in RFC 3339 format.
The ID of the folder, including the bucket name, folder name.
The kind of item this is. For folders, this is always storage#folder.
The version of the metadata for this folder. Used for preconditions and for detecting changes in metadata.
The name of the folder. Required if not specified by URL parameter.
Only present if the folder is part of an ongoing rename folder operation. Contains information which can be used to query the operation status.
The link to this folder.
The modification time of the folder metadata in RFC 3339 format.
Changes
- info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/devstorage.read_writewas removed from the endpoint's security schemeOauth2
1 more change in this revision
- info