You can call this operation to update the RAM user group information.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UpdateGroup

The operation that you want to perform. Set the value to UpdateGroup.

GroupName String Yes Dev-Team

The name of the RAM user group.

The name must be 1 to 64 characters in length, and can contain letters, digits, and hyphens(-).

NewComments String No Development team

The new description.

The description must be 1 to 128 characters in length.

NewGroupName String No NewDev-Team

The new name of the RAM user group.

The name must be 1 to 64 characters in length, and can contain letters, digits, and hyphens(-).

Response parameters

Parameter Type Example Description
Group N/A N/A

The information about the RAM user group.

Comments String Development team

The description.

CreateDate String 2015-01-23T12:33:18Z

The time when the RAM user group was created.

GroupName String NewDev-Team

The name of the RAM user group.

UpdateDate String 2015-01-23T12:33:18Z

The time when the information about the RAM user group was updated.

RequestId String EC6647CC-0A36-EC7A-BA72-CC81BF3DE182

The ID of the request.

Examples

Sample requests


https://ram.aliyuncs.com/?Action=UpdateGroup
&GroupName=Dev-Team
&NewGroupName=NewDev-Team
&<Common request parameters>

Sample success responses

XML format

<RequestId>EC6647CC-0A36-EC7A-BA72-CC81BF3DE182</RequestId>
<Group>
    <GroupName>NewDev-Team</GroupName>
    <Comments>Development team</Comments>
    <CreateDate>2015-01-23T12:33:18Z</CreateDate>
    <UpdateDate>2015-01-23T12:33:18Z</UpdateDate>
</Group>

JSON format

{
	"RequestId":"EC6647CC-0A36-EC7A-BA72-CC81BF3DE182",
	"Group":{
		"Comments":"Development team",
		"GroupName":"NewDev-Team",
		"UpdateDate":"2015-01-23T12:33:18Z",
		"CreateDate":"2015-01-23T12:33:18Z"
	}
}

Error codes

For a list of error codes, visit the API Error Center.