PurgeFileWithTag

Update time: 2026-07-28 19:04:31

Applicable Products

Content MGMT

API Description

Push the file with the tag in the domain name with the tag switch enabled under the customer

Call frequency

Single user trigger frequency: 30/5min

Request parameter(s)

Body Params

NameDescription
*tagString
Tag value: 1. Separate multiple tag values with commas, allowing a maximum of 30 values. 2. Each tag value can have a maximum length of 128 characters. 3. Special characters are not allowed. These include Chinese characters, spaces, and''(),:;<=>?@[]{}<>.
actionString
1. If left blank, the default value is 0. 2. 0 represents deletion; 1 represents expiration.

Response parameter(s)

Body Params

NameDescription
CodeString
code
MessageString
message
itemIdString
itemId

Error code

Error code(code)Description(message)HTTP statusSemantic
SuccessTask submitted successfully200Task submitted successfully
ParseParameterErrorJSON parsing error400JSON parsing error
UserNameInvalidThe userName is empty or not enabled or non-primary account400The userName is empty or not enabled or non-primary account
ActionInvalidAction type must be 0 or 1400Action type must be 0 or 1
TagIsEmptyTag cannot be empty400Tag cannot be empty
SingleTagLengthLessThan128A single tag cannot exceed 128 characters400A single tag cannot exceed 128 characters
TagCountLessThan30The number of tags cannot exceed 30400The number of tags cannot exceed 30
TagValueIsIllegalTag value cannot contain special characters or Chinese400Tag value cannot contain special characters or Chinese
ExceedDailyLimit1.User [userName] exceeds daily tag purge limit of 2000\n2.If the header includes a timezone, indicate the corresponding timezone interval, e.g., "the user[userName] between 2018-10-17 01:00:00GMT+09:00 and 2018-10-18 00:59:59GMT+09:00 purge tags exceeds the limit[2000]"4001.User [userName] exceeds daily tag purge limit of 2000\n2.If the header includes a timezone, indicate the corresponding timezone interval, e.g., "the user[userName] between 2018-10-17 01:00:00GMT+09:00 and 2018-10-18 00:59:59GMT+09:00 purge tags exceeds the limit[2000]"
NotEnableTagPurgeUser [userName] has not enabled any channel tag purge400User [userName] has not enabled any channel tag purge
NotFindAppgGroupUser [userName] did not find any appservice group for tag purge400User [userName] did not find any appservice group for tag purge
SystemExceptionInternal system exception500Internal system exception

Example

JSON
JSON
Request example
Copy Copy success
#!/bin/bash
username="username_exmaple"
apiKey="apiKey_exmaple"
date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"`
password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64`
curl -i --url "https://api.atomile.com/api/content/tag/purge" \
-X "POST" \
-u "$username:$password" \
-H "Date:$date" \
-H "Content-Type: application/json" \
-d'{
          "tag": "abc,edf,wcs",
          "action": "0"
}'
Response example
Copy Copy success
{
   "Code":Success,
   "Message":"handle success",
   "itemId":"64ec364dd81d4052a3534c1e86167950"
}