Skip to main content
PUT
/
api
/
v1
/
dt
/
user
/
limit
更新玩家限紅
curl --request PUT \
  --url https://api.example.com/api/v1/dt/user/limit \
  --header 'Content-Type: application/json' \
  --data '
{
  "uuid": "<string>",
  "platform_id": "<string>",
  "username": "<string>",
  "limit_id": "<string>",
  "type": "<string>",
  "key": "<string>"
}
'
{
  "error": {
    "code": 0,
    "msg": "Success",
    "uuid": "3f1e16c7-4083-4897-b40b-55b7f674f72f"
  }
}
代碼說明
0成功
2無效參數
4客戶不存在
19請求次數已達上限
20Secret key 錯誤
25類型參數錯誤
36伺服器錯誤
41渠道錯誤
42請求頻率太高
9999未知錯誤

Body

application/json
uuid
string
required

各平台自定義的唯一性請求序號,長度 >= 32 且 <= 128 字節

platform_id
string
required

平台方的產品 ID

username
string
required

用戶在遊戲中的帳號 (限制長度23字元,且皆為小寫英文或數字,多組以逗號分隔,一次最多 100 筆)

limit_id
string
required

限紅代號 ("1,2,Y" 等字串,多組以逗號分隔)

type
string
required

設置限紅種類 (0: 新增、1: 刪除、2: 取代)

key
string
required

md5(username + limit_id + type + 平台密鑰)

Response

成功

error
object