Update user's ApiKey

流量控制: 每 秒

摘要


HTTP 方法

POST

访问路径

/api/v3/apiKey

功能

Change the ApiKey associated with the user's account. The current ApiKey must be provided as the value of the X-API-KEY HTTP header.

API 描述


HTTP头

字段 类型 必须 说明 举例
X-API-KEY string ApiKey "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ
6B6DQ6THZWbvrAGxzEdulXQvOKLrRW
ZLnN"

请求参数

字段 类型 必须 说明 举例
accountId integer AccountID 1

请求示例

HTTP
CURL
POST https://api3.loopring.io/api/v3/apiKey HTTP/1.1
Host: api3.loopring.io
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh,en;q=0.9
X-API-KEY: sra1aavfa
Content-Type: application/json

{
    "accountId" : 1
}
curl -X POST -H "X-API-KEY:sra1aavfa" -H "Content-Type:application/json" https://api3.loopring.io/api/v3/apiKey -d \
'{
    "accountId" : 1
}'

响应字段

字段 类型 必须 说明 举例
apiKey string ApiKey "6BJaCehh0z4ta4TW5vwo
Kyo0yk5FdXkQxpt8AStG
49aU3dMNC9jid6syyWPE
MtTt"

响应示例

{
    "apiKey" : "6BJaCehh0z4ta4TW5vwoKyo0yk5FdXkQxpt8AStG49aU3dMNC9jid6syyWPEMtTt"
}

状态码

状态码 描述
100000 Unknown error
100001 Invalid argument
101002 User not found
104001 Empty ApiKey
104002 Invalid ApiKey
104003 Invalid Account ID
104004 No signature information provided
104005 Wrong signature information

results matching ""

    No results matching ""