Creates a label. For more information, see Create and publish a label.
HTTP request
POST https://drivelabels.googleapis.com/v2/labels
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
useAdminAccess |
Set to |
languageCode |
The BCP-47 language code to use for evaluating localized field labels in response. When not specified, values in the default configured language will be used. |
Request body
The request body contains an instance of Label.
Response body
If successful, the response body contains a newly created instance of Label.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/drive.labelshttps://www.googleapis.com/auth/drive.admin.labels
For more information, see the Authorization guide.