设置自动关闭基础版地址
Path parameters
addressstringRequired
波场地址
Query parameters
valuebooleanRequired
value
idle_hoursinteger · int32 · min: 24OptionalDefault:
闲置时间(小时),超过闲置时间未使用自动关闭,仅当value=true生效
72Header parameters
CF-ACCESS-KEYstringRequiredExample:
The API Access key as a string API所使用的KEY
your api keyCF-ACCESS-SIGNstringRequiredExample:
The Base64-encoded signature (see signing messages subsection for details) 使用HMAC SHA256哈希函数获得哈希值,再使用Base-64编码(请参阅签名)
signatureCF-ACCESS-TIMESTAMPstringRequired
The UTC timestamp of your request .e.g : 2008-08-08T08:08:08.888Z 发起请求的时间(UTC),如:2008-08-08T08:08:08.888Z
Responses
200
OK
application/json
patch
/v1/mate/open/basic/{address}/auto-closePATCH /v1/mate/open/basic/{address}/auto-close?value=true HTTP/1.1
Host: api.catfee.io
CF-ACCESS-KEY: text
CF-ACCESS-SIGN: text
CF-ACCESS-TIMESTAMP: text
Accept: */*
200
OK
{
"code": 1,
"msg": "text",
"sub_code": "text",
"sub_msg": "text",
"data": {
"id": 1,
"address": "text",
"plan_id": 1,
"plan_name_en": "text",
"plan_name_zh": "text",
"plan_subscription_sun": 1,
"plan_unit_sun": 1,
"quota_mode": "UNLIMITED",
"slot_next_billing_timestamp": 1,
"quantity": 1,
"used_quantity": 1,
"quota_count": 1,
"used_count": 1,
"quota_start_time": 1,
"total_transfer_count": 1,
"total_energy_count": 1,
"total_slot_fee": 1,
"total_energy_fee": 1,
"remark": "text",
"is_auto_closable": true,
"idle_hours": 1,
"status": "ACTIVE",
"expired_at": 1,
"created_at": 1
}
}Last updated
Was this helpful?