Skip to main content
PATCH
/
api
/
v2
/
channels
/
account-groups
/
{groupId}
/
accounts
/
rank
Update Account Order
curl --request PATCH \
  --url https://aitoearn.cn/api/v2/channels/account-groups/{groupId}/accounts/rank \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "list": [
    {
      "id": "<string>",
      "rank": 123
    }
  ]
}
'
{
  "code": 0,
  "message": "Request succeeded",
  "data": "string"
}

Authorizations

X-Api-Key
string
header
required

Need to get API Key from AiToEarn. Click to go to "API Key Obtaining Tutorial".

Path Parameters

groupId
string
required

Group ID

Body

application/json
list
object[]
required

sorted list

Response

200 - application/json

The request has been processed by the service. Business success is determined by whether the response body has code === 0.

code
integer
required

Business status code. 0 means success; non-zero means a business error.

message
string
required

Response message.

data
any
requestId
string

Request ID.

timestamp
integer

Error response timestamp in Unix milliseconds.