# Update Sandbox Site - UpdateSandboxSite

## Overview

Update Sandbox Site




## Usage

You can choose any of the following methods to initiate an API request:
- Multi-language OpenSDK /  /
- [CloudShell](https://shell.ucloud.cn/)

## Definition

### Public Parameters

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

### Request Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Region** | string | Region. See [Region and Zone List](https://docs.ucloud.cn/api/summary/regionlist) |**Yes**|
| **ProjectId** | string | Project ID. Leave it blank for the default project. Sub-accounts must fill in. Please refer to the [GetProjectList API](https://docs.ucloud.cn/api/summary/get_project_list) |No|
| **Zone** | string | Zone. See [Region and Zone List](https://docs.ucloud.cn/api/summary/regionlist) |**Yes**|
| **SandboxID** | string | Sandbox ID |**Yes**|
| **Name** | string | Site Name |No|
| **APIKey** | string | Update Site Space API Key |No|
| **KeyID** | string | Update site space Key ID (needs to be sent together with API Key) |No|
| **Envs** | string | Update the site space environment variables in the format ['Key=Value'] |No|
| **AccessCode** | string | Access Code |No|
| **IPAccess** | object |  |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.ucloud.cn/?Action=UpdateSandboxSite
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=rBLfmtbf
&SandboxID=pwGVJLeV
&Name=MtOYpXQY
&Envs.n=fdUIDbhg
&APIKey=KBIcgAiy
&KeyID=yYJmhhfu
&AccessCode=leYmXwaH
&IPAccess.IPList=aSeRVIdo
&IPAccess.Mode=QSOpBGgB
&AccessCode=izdrDXnL
&IPAccess.IPList=NngTZYwV
&IPAccess.Mode=KjlJsfMG
&AccessCode=RRNwsfBM
&IPAccess.IPList=WpyqhFka
&IPAccess.Mode=hwDTKOmG
```

### Response Example
```json
{
  "Action": "UpdateSandboxSiteResponse",
  "RetCode": 0
}
```
