edit-icon download-icon

Modifies path expiration configuration

Last Updated: Nov 13, 2017


Modifies path expiration configuration.

Request parameters

Parameter name Type Required? Description
Action String Yes Operation interface name, which is a required parameter; value: ModifyPathCacheExpiredConfig
DomainName String Yes Your CDN domain
ConfigID String Yes Configuration ID to be modified
CacheContent String Yes Path.
TTL String Yes Cache time, in seconds
Weight String No Weight of the configuration. The value range is 1-99. A greater value indicates a higher priority. The default value is 1.

Return parameters

Name Type Description
RequestID String Request ID of the task

Special error code

Error Code Description HTTP Status Code Meaning
InvalidCacheContent.Malformed The specified value of parameter CacheContent is malformed. 400 The specified CacheContent value is invalid because it is in incorrect format.
InvalidWeight.ValueNotSupported The specified value of parameter Weight is not supported. 400 The specified weight is invalid because it is out of the valid range.


Request example:

  1. http://cdn.aliyuncs.com/?Action=ModifyPathCacheExpiredConfig
  2. &CacheContent=%2Fstatic%2Fhtml%2F
  3. &DomainName=www.macaron.org.cn
  4. &TTL=600
  5. &Weight=50
  6. &ConfigID=905535
  7. &<Public request parameter>

Return example

JSON format:

  1. {
  2. "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
  3. }

XML format:

  1. <ModifyPathCacheExpiredConfigResponse>
  2. <RequestId>AED00EC1-32A8-4D48-BEB9-BD782AF3C6BD</RequestId>
  3. </ModifyPathCacheExpiredConfigResponse>
Thank you! We've received your feedback.