Permissions: patch
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Looker Studio アセットの権限を更新します。
リクエスト
HTTP リクエスト
PATCH https://datastudio.googleapis.com/v1/assets/{assetName}/permissions
パスパラメータ
パラメータ名 |
型 |
説明 |
assetName |
文字列 |
アセットの名前(ID)。 |
承認
このリクエストを行うには、承認されたユーザーに、
次のスコープでアセットの権限と認可を管理します。
範囲 |
https://www.googleapis.com/auth/datastudio |
リクエスト本文
リクエストの本文に、次のプロパティを指定します。
プロパティ名 |
型 |
説明 |
権限
|
権限
|
更新された権限オブジェクト。
OWNER のロールを更新できません。 |
レスポンス
このメソッドが成功した場合、最新の Permissions オブジェクトが返されます。
例
以下では、Looker Studio アセットの権限を更新します。
PATCH https://datastudio.googleapis.com/v1/assets/assetName/permissions
リクエスト本文:
{
"permissions": {
"permissions": {
"OWNER": {
"members": [
"user:jen@gmail.com"
]
},
"VIEWER": {
"members": [
"user:gus@gmail.com"
]
}
}
}
}
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003eThis document outlines how to update permissions for a Looker Studio asset using the \u003ccode\u003ePATCH\u003c/code\u003e method and provides details about the required request parameters and authorization scope.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should include the updated permissions object, specifying roles (like OWNER, VIEWER) and their corresponding members, but note that the OWNER role cannot be modified.\u003c/p\u003e\n"],["\u003cp\u003eA successful request will return the updated Permissions object, confirming the changes made to the asset's access control.\u003c/p\u003e\n"]]],[],null,["# Permissions: patch\n\nUpdate permissions for a Looker Studio asset.\n\nRequest\n-------\n\n### HTTP request\n\n PATCH https://datastudio.googleapis.com/v1/assets/{assetName}/permissions\n\n### Path parameters\n\n| Parameter name | Type | Description |\n|----------------|--------|-----------------------------|\n| assetName | string | The name (ID) of the asset. |\n\n### Authorization\n\nThis request requires the authorized user to have sufficient permissions to\nmanage asset permissions and authorization with the following scope:\n\n| Scope |\n|----------------------------------------------|\n| `https://www.googleapis.com/auth/datastudio` |\n\n### Request body\n\nIn the request body, supply the following properties:\n\n| Property name | Type | Description |\n|---------------|-------------------------------------------------------------------------|---------------------------------------------------------------------|\n| permissions | [Permissions](/looker-studio/integrate/api/reference/types#Permissions) | The updated permissions object. The `OWNER` role cannot be updated. |\n\nResponse\n--------\n\nIf successful, this method returns the updated [Permissions](/looker-studio/integrate/api/reference/types#Permissions) object.\n\nExample\n-------\n\nThe following updates the permissions for a Looker Studio asset. \n\n PATCH https://datastudio.googleapis.com/v1/assets/\u003cvar translate=\"no\"\u003eassetName\u003c/var\u003e/permissions\n\nRequest body: \n\n {\n \"permissions\": {\n \"permissions\": {\n \"OWNER\": {\n \"members\": [\n \"user:jen@gmail.com\"\n ]\n },\n \"VIEWER\": {\n \"members\": [\n \"user:gus@gmail.com\"\n ]\n }\n }\n }\n }"]]