Etiket izinlerini günceller. Belirtilen asıl kullanıcı için bir izin yoksa yeni bir etiket izni oluşturulur, aksi takdirde mevcut izin güncellenir. İzinler, etiket kaynağını bir bütün olarak etkiler, düzeltilmez ve yayınlanmasını gerektirmez.
HTTP isteği
POST https://drivelabels.googleapis.com/v2beta/{parent=labels/*}/permissions:batchUpdate
Zorunlu. Tüm izinler tarafından paylaşılan üst etiket kaynak adı güncelleniyor. Biçim: labels/{label} Bu ayarlanırsa UpdateLabelPermissionRequest mesajlarındaki üst öğe alanı boş olmalıdır veya bu alanla eşleşmelidir.
İstek içeriği
İstek metni aşağıdaki yapıyla birlikte verileri içerir:
Zorunlu. Güncellenecek kaynakları belirten istek mesajı.
useAdminAccess
boolean
Kullanıcının yönetici kimlik bilgilerini kullanmak için true olarak ayarlayın. Sunucu, erişim izni vermeden önce kullanıcının etiketin yöneticisi olduğunu doğrular. Bu ayarlanırsa UpdateLabelPermissionRequest mesajlarındaki useAdminAccess alanı boş olmalı veya bu alanla eşleşmelidir.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-25 UTC."],[],[],null,["# Method: labels.permissions.batchUpdate\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUpdates Label permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.\n\n### HTTP request\n\n`POST https://drivelabels.googleapis.com/v2beta/{parent=labels/*}/permissions:batchUpdate`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The parent Label resource name shared by all permissions being updated. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------|\n| ``` { \"requests\": [ { object (`UpdateLabelPermissionRequest`) } ], \"useAdminAccess\": boolean } ``` |\n\n| Fields ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requests[]` | `object (``UpdateLabelPermissionRequest``)` Required. The request message specifying the resources to update. |\n| `useAdminAccess` | `boolean` 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. If this is set, the useAdminAccess field in the UpdateLabelPermissionRequest messages must either be empty or match this field. |\n\n### Response body\n\nIf successful, the response body contains an instance of [BatchUpdateLabelPermissionsResponse](/workspace/drive/labels/reference/rest/v2beta/BatchUpdateLabelPermissionsResponse).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/drive.labels`\n- `\n https://www.googleapis.com/auth/drive.admin.labels`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]