Method: schemas.update
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Żądanie HTTP
PUT https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/schemas/{schemaKey}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
customerId |
string
Niezmienny identyfikator konta Google Workspace.
|
schemaKey |
string
Nazwa lub niezmienny identyfikator schematu.
|
Treść żądania
Treść żądania zawiera wystąpienie elementu Schema
.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu Schema
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/admin.directory.userschema
Więcej informacji znajdziesz w przewodniku dotyczącym autoryzacji.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[],[],null,["# Method: schemas.update\n\nUpdates a schema.\n\n### HTTP request\n\n`PUT https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/schemas/{schemaKey}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------------|--------------------------------------------------------|\n| `customerId` | `string` Immutable ID of the Google Workspace account. |\n| `schemaKey` | `string` Name or immutable ID of the schema. |\n\n### Request body\n\nThe request body contains an instance of [Schema](/workspace/admin/directory/reference/rest/v1/schemas#Schema).\n\n### Response body\n\nIf successful, the response body contains an instance of [Schema](/workspace/admin/directory/reference/rest/v1/schemas#Schema).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/admin.directory.userschema`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]