Try the MCP server for Google Analytics. Install from
GitHub, and see the
announcement for more details.
UserDeletion.userDeletionRequest: upsert
Stay organized with collections
Save and categorize content based on your preferences.
Requires authorization
Insert or update a user deletion request.
Try it!
Use the APIs Explorer below to call this method on live data and see the response.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[null,null,["Last updated 2024-10-09 UTC."],[[["\u003cp\u003eInserts or updates a user deletion request using the \u003ccode\u003ePOST\u003c/code\u003e method and the provided endpoint.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/analytics.user.deletion\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain a \u003ccode\u003eUserDeletion.userDeletionRequest\u003c/code\u003e resource as detailed in the provided documentation.\u003c/p\u003e\n"],["\u003cp\u003eA successful response returns a \u003ccode\u003eUserDeletion.userDeletionRequest\u003c/code\u003e resource in the response body.\u003c/p\u003e\n"]]],["This outlines how to insert or update a user deletion request using the Google Analytics API. It mandates authorization with the `https://www.googleapis.com/auth/analytics.user.deletion` scope. The process involves a `POST` request to `https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert`. The request body requires a `UserDeletion.userDeletionRequest` resource, and a successful response returns the same `UserDeletion.userDeletionRequest` resource. The provided API explorer allows testing this process.\n"],null,["# UserDeletion.userDeletionRequest: upsert\n\n**Requires [authorization](#auth)**\n\nInsert or update a user deletion request.\n\nRequest\n-------\n\n### HTTP request\n\n```\nPOST https://www.googleapis.com/analytics/v3/userDeletion/userDeletionRequests:upsert\n```\n\n### Authorization\n\nThis request requires authorization with the following scope ([read more about authentication and authorization](/analytics/devguides/config/userdeletion/v3/authorization)).\n\n| Scope |\n|-----------------------------------------------------------|\n| `https://www.googleapis.com/auth/analytics.user.deletion` |\n\n### Request body\n\nIn the request body, supply a [UserDeletion.userDeletionRequest resource](/analytics/devguides/config/userdeletion/v3/reference/userDeletion/userDeletionRequest#resource).\n\nResponse\n--------\n\nIf successful, this method returns a [UserDeletion.userDeletionRequest resource](/analytics/devguides/config/userdeletion/v3/reference/userDeletion/userDeletionRequest#resource) in the response body.\n\nTry it!\n-------\n\n\nUse the APIs Explorer below to call this method on live data and see the response."]]