- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- InlineSource
Updates the User License. This method is used for batch assign/unassign licenses to users.
HTTP request
POST https://discoveryengine.googleapis.com/v1/{parent=projects/*/locations/*/userStores/*}:batchUpdateUserLicenses
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| parent | 
 Required. The parent [UserStore][] resource name, format:  | 
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
| { "deleteUnassignedUserLicenses": boolean, // Union field | 
| Fields | |
|---|---|
| deleteUnassignedUserLicenses | 
 Optional. If true, if user licenses removed associated license config, the user license will be deleted. By default which is false, the user license will be updated to unassigned state. | 
| Union field source. Required. The source of the input.sourcecan be only one of the following: | |
| inlineSource | 
 The inline source for the input content for document embeddings. | 
Response body
If successful, the response body contains an instance of Operation.
Authorization scopes
Requires one of the following OAuth scopes:
- https://www.googleapis.com/auth/cloud-platform
- https://www.googleapis.com/auth/discoveryengine.readwrite
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent resource:
- discoveryengine.userStores.batchUpdateUserLicenses
For more information, see the IAM documentation.
InlineSource
The inline source for the input config for userStores.batchUpdateUserLicenses method.
| JSON representation | 
|---|
| {
  "userLicenses": [
    {
      object ( | 
| Fields | |
|---|---|
| userLicenses[] | 
 Required. A list of user licenses to update. Each user license must have a valid  | 
| updateMask | 
 Optional. The list of fields to update. This is a comma-separated list of fully qualified names of fields. Example:  |