Method: labels.create

Creates a new Label.

HTTP request

POST https://drivelabels.googleapis.com/v2/labels

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
useAdminAccess

boolean

Set to true in order to use the user's admin privileges. The server will verify the user is an admin before allowing access.

languageCode

string

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.labels
  • https://www.googleapis.com/auth/drive.admin.labels

For more information, see the Authorization guide.