Method: buyers.clients.users.deactivate
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
The deactivate method changes a client user's state from "ACTIVE" to "INACTIVE" and has no effect if the user is already inactive, but will return an error if the user is in an "INVITED" state.
The HTTP request uses a POST method to a specific URL including the buyer account ID, client account ID, and user ID.
This method requires an empty request body and returns a ClientUser instance in the response body upon success.
The deactivate method requires the https://www.googleapis.com/auth/authorized-buyers-marketplace OAuth scope for authorization.
Deactivates an existing client user. The state of the client user will be updated from "ACTIVE" to "INACTIVE". This method has no effect if the client user is already in "INACTIVE" state. An error will be returned if the client user to deactivate is still in "INVITED" state.
HTTP request
POST https://authorizedbuyersmarketplace.googleapis.com/v1/{name=buyers/*/clients/*/users/*}:deactivate
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[],["This document outlines how to deactivate a client user via a `POST` HTTP request to a specified URL. The required `name` path parameter identifies the user. The request body must be empty. Upon success, the user's state changes from \"ACTIVE\" to \"INACTIVE\", and the response body returns a `ClientUser` instance. The method does nothing if the user is already inactive and errors if the user is \"INVITED\". Authorization requires the `authorized-buyers-marketplace` OAuth scope.\n"]]