Stay organized with collectionsSave and categorize content based on your preferences.
Updates the client state for the device user
Note: This method is available only to customers who have one of the following SKUs: Enterprise Standard, Enterprise Plus, Enterprise for Education, and Cloud Identity Premium
Output only.Resource nameof the ClientState in format:devices/{deviceId}/deviceUsers/{device_user_id}/clientState/{partner_id}, where partner_id corresponds to the partner storing the data.
Query parameters
Parameters
customer
string
Optional.Resource nameof the customer. If you're using this API for your own organization, usecustomers/my_customerIf you're using this API to manage another organization, usecustomers/{customerId}, where customerId is the customer to whom the device belongs.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eThis endpoint updates the client state for a specific device user, and is only available for Enterprise Standard, Enterprise Plus, Enterprise for Education, and Cloud Identity Premium customers.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses a \u003ccode\u003ePATCH\u003c/code\u003e method directed to a specific URL with a defined format: \u003ccode\u003ehttps://cloudidentity.googleapis.com/v1beta1/{clientState.name=devices/*/deviceUsers/*/clientStates/*}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eclientState.name\u003c/code\u003e path parameter is required, following the format: \u003ccode\u003edevices/{deviceId}/deviceUsers/{device_user_id}/clientState/{partner_id}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecustomer\u003c/code\u003e and \u003ccode\u003eupdateMask\u003c/code\u003e query parameters are optional and allow specifying the customer resource name and a list of fields to update, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include an instance of \u003ccode\u003eClientState\u003c/code\u003e, and a successful response will contain an instance of \u003ccode\u003eOperation\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: devices.deviceUsers.clientStates.patch\n\nUpdates the client state for the device user\n\n**Note**: This method is available only to customers who have one of the following SKUs: Enterprise Standard, Enterprise Plus, Enterprise for Education, and Cloud Identity Premium\n\n### HTTP request\n\n`PATCH https://cloudidentity.googleapis.com/v1beta1/{clientState.name=devices/*/deviceUsers/*/clientStates/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [ClientState](/identity/docs/reference/rest/v1beta1/devices.deviceUsers.clientStates#ClientState).\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/identity/docs/reference/rest/Shared.Types/Operation).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-identity.devices`\n- `https://www.googleapis.com/auth/cloud-identity`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]