ModelSell Docs
ManagementToken Management

更新令牌

更新已有 API 令牌。

PUT
/api/token/

更新已有 API 令牌。

Authorization

AuthorizationBearer <token>

使用 Authorization Bearer API Key 进行鉴权。

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "https://example.com/api/token/" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{
  "success": true,
  "message": "string",
  "data": {
    "id": 0,
    "name": "string",
    "key": "string",
    "status": 0,
    "remain_quota": 0,
    "used_quota": 0,
    "expired_time": 0,
    "created_time": 0
  }
}