v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13178889.9 KB
labels

Disable a published label. For more information, see Disable, enable, and delete a label. Disabling a label will result in a new disabled published revision based on the current published revision. If there's a draft revision, a new disabled draft revision will be created based on the latest draft revision. Older draft revisions will be deleted. Once disabled, a label may be deleted with DeleteLabel.

post/v2/{+name}:disable

Path parameters

namestring required

Required. Label resource name.

Request body

languageCodestring

The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used.

updateMaskstring google-fieldmask

The fields that should be updated. At least one field must be specified. The root disabled_policy is implied and should not be specified. A single * can be used as a short-hand for updating every field.

useAdminAccessboolean

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

Response

Successful response