# Update Security Group Basic Information - UpdateSecGroup

## Overview

Update Security Group Basic Information

 > 💡 Batch Use Array




## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `UpdateSecGroup`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be obtained from [Console](https://console.zosoc.com/uaccount/api_manage)                                             | **Yes** |
| **Signature**  | string  | User signature generated based on public key and API command, see [Signature Algorithm](/docs/api/summary/signature.md)  | **Yes** |

### Request Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Region** | string | Region. Please refer to [GetProjectList API](/docs/api/summary/regionlist) |**Yes**|
| **ProjectId** | string | Project ID. Leave blank for the default project; sub-accounts must fill in. Please refer to [GetProjectList API](/docs/api/summary/get_project_list) |No|
| **SecGroupId** | string | Security group resource ID array. The .n format is not supported. Type is a string array. |**Yes**|
| **Name** | string | Security Group Name, default is empty, if empty, no modification will be made. Name, Tag, Remark must fill in 1 or more. |No|
| **Remark** | string | Security group remarks, default is empty, if empty, no modification will be made. Name, Tag, Remark must fill in 1 or more. |No|

### Response Field

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **RetCode** | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. |**Yes**|
| **Action** | string | Operation command name. |**Yes**|
| **Message** | string | Returns an error message, providing detailed description when `RetCode` is non-zero. |No|




## Example

### Request Example
    
```
https://api.zosoc.com/?Action=UpdateSecGroup
&Region=cn-zj
&ProjectId=jaJNDhuE
&VPCId=niVFVPGk
&Name=JHizsfmg
&Tag=iJMcYRQE
&Remark=EJrWyZcL
&SecGroupId.n=ivzIJLhI
```

### Response Example
    
```json
{
  "Action": "UpdateSecGroupResponse",
  "RetCode": 0,
  "SecGroupId": "wUdGLOFL"
}
```





