# Refresh Cache - RefreshNewUcdnDomainCache

## Overview

Refresh Cache






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `RefreshNewUcdnDomainCache`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be obtained from [Console](https://console.scloudsg.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 |
|:---|:---|:---|:---|
| **ProjectId** | string | Project ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the [GetProjectList interface](/docs/api/summary/get_project_list). |No|
| **Type** | string | Refresh type, 'file' represents file refresh, 'dir' represents path refresh, 'm3u8' represents m3u8 refresh. |**Yes**|
| **UrlList.N** | string | The URL that needs to be refreshed, n starts from the natural number 0, when refreshing multiple URL lists, a maximum of 100 can be submitted at a time. It must start with 'http://domain/'. The directory should end with '/', for example, to refresh all files in directory a, the format is: http://abc.ucloud.cn/a/; to refresh the img.png file in directory a, the format is http://abc.ucloud.cn/a/img.png. Please correctly submit the domain name that needs to be refreshed. |**Yes**|

### 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|
| **TaskId** | string | The task id corresponding to the submitted url |No|




## Example

### Request Example
    
```
https://api.scloudsg.com/?Action=RefreshNewUcdnDomainCache
&ProjectId=CExXKOKn
&Type=file
&UrlList.n=JgkGaBpD
&IsDcdn=true
```

### Response Example
    
```json
{
  "Action": "RefreshNewUcdnDomainCacheResponse",
  "RetCode": 0,
  "TaskId": "rDPEYeEH"
}
```





