Enable a disabled Label and restore it to its published state. This will result in a new published revision based on the current disabled published revision. If there is an existing disabled draft revision, a new revision will be created based on that draft and will be enabled.
HTTP request
POST https://drivelabels.googleapis.com/v2/{name=labels/*}:enable
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. Label resource name. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"useAdminAccess": boolean,
"writeControl": {
object ( |
Fields | |
---|---|
useAdminAccess |
Set to |
writeControl |
Provides control over how write requests are executed. Defaults to unset, which means last write wins. |
languageCode |
The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used. |
Response body
If successful, the response body contains an 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.