Modify a group for a user
PUT /accounts/{account_id}/core/v1/users/{user_id}/groups/{group_id}
Replaces the entire stored resource with the supplied JSON request body while preserving key values that are not user-modifiable.
Parameters
| Name | Type | In | Required | Description | 
|---|---|---|---|---|
account_id  | 
string  | 
path  | 
True  | 
ID of the containing account resource 
  | 
user_id  | 
string  | 
path  | 
True  | 
ID of the containing user resource  | 
group_id  | 
string  | 
path  | 
True  | 
ID of the group collection to list  | 
Request Body
Replaces the entire stored resource with the supplied JSON request body while preserving key values that are not user-modifiable.
| Name | Type | Required | Description | 
|---|---|---|---|
type  | 
string  | 
True  | 
Media type of the resource. Defined values are: 
  | 
version  | 
string  | 
True  | 
Version of the resource. Defined values are: 
  | 
id  | 
string  | 
False  | 
Globally unique identifier of the resource. Defined values are: 
  | 
name  | 
string  | 
False  | 
The name of the group resource. If not specified on create, the value will be set to 
  | 
authProvider  | 
string  | 
False  | 
The authentication provider for the group resource. Defined values are: 
  | 
authID  | 
string  | 
False  | 
The Distinguished Name (DN) for an LDAP group. Defined values are: 
  | 
metadata  | 
False  | 
Client and service-specified metadata associated with the resource. Defined values are: 
  | 
Example request
{
  "type": "application/astra-group",
  "version": "1.1",
  "name": "my-qa-group",
  "authID": "CN=QA,CN=Groups,DC=example,DC=com"
}
Response
Status: 204, Indicates if the group resource was updated.
Response
Status: 400, Bad request
| Name | Type | Required | Description | 
|---|---|---|---|
type  | 
string  | 
True  | 
|
title  | 
string  | 
True  | 
|
detail  | 
string  | 
True  | 
|
status  | 
string  | 
True  | 
|
correlationID  | 
string  | 
False  | 
Example response
{
  "type": "https://astra.netapp.io/problems/7",
  "title": "Invalid JSON payload",
  "detail": "The request body is not valid JSON.",
  "status": "400"
}
Response
Status: 403, Forbidden
| Name | Type | Required | Description | 
|---|---|---|---|
type  | 
string  | 
True  | 
|
title  | 
string  | 
True  | 
|
detail  | 
string  | 
True  | 
|
status  | 
string  | 
True  | 
|
correlationID  | 
string  | 
False  | 
Example response
{
  "type": "https://astra.netapp.io/problems/11",
  "title": "Operation not permitted",
  "detail": "The requested operation isn't permitted.",
  "status": "403"
}
Response
Status: 500, Internal server error
| Name | Type | Required | Description | 
|---|---|---|---|
type  | 
string  | 
True  | 
|
title  | 
string  | 
True  | 
|
detail  | 
string  | 
True  | 
|
status  | 
string  | 
True  | 
|
correlationID  | 
string  | 
False  | 
Example response
{
  "type": "https://astra.netapp.io/problems/34",
  "title": "Internal server error",
  "detail": "The server was unable to process this request.",
  "status": "500"
}
Error
Status: 404, Not found
| Name | Type | Required | Description | 
|---|---|---|---|
type  | 
string  | 
True  | 
|
title  | 
string  | 
True  | 
|
detail  | 
string  | 
True  | 
|
status  | 
string  | 
True  | 
|
correlationID  | 
string  | 
False  | 
Example error response
{
  "type": "https://astra.netapp.io/problems/1",
  "title": "Resource not found",
  "detail": "The resource specified in the request URI wasn't found.",
  "status": "404"
}
Definitions
See Definitions
type_astra_label
| Name | Type | Required | Description | 
|---|---|---|---|
name  | 
string  | 
True  | 
|
value  | 
string  | 
True  | 
type_astra_metadata_update
Client and service-specified metadata associated with the resource. Defined values are:
- 
Conforms to the Astra Metadata Schema If not specified on create, a metadata object will be created with no labels. If not specified on update, the metadata object's labels, creationTimestamp and createdBy, will be preserved without modification.
 
| Name | Type | Required | Description | 
|---|---|---|---|
labels  | 
array[type_astra_label]  | 
False  | 
|
creationTimestamp  | 
string  | 
False  | 
|
modificationTimestamp  | 
string  | 
False  | 
|
createdBy  | 
string  | 
False  | 
|
modifiedBy  | 
string  | 
False  | 
invalidParams
| Name | Type | Required | Description | 
|---|---|---|---|
name  | 
string  | 
True  | 
Name of the invalid query parameter  | 
reason  | 
string  | 
True  | 
Reason why the query parameter is invalid  |