id 字段及要修改的字段。Authorization: ********************New-Api-User: ********************{
"id": 55186,
"name": "my-token-renamed",
"group": "default",
"expired_time": -1,
"remain_quota": 200000,
"unlimited_quota": false
}curl --location --request PUT '/api/token/' \
--header 'Authorization: Bearer <token>' \
--header 'New-Api-User: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"id": 55186,
"name": "my-token-renamed",
"group": "default",
"expired_time": -1,
"remain_quota": 200000,
"unlimited_quota": false
}'{
"success": true,
"data": {
"id": 0,
"name": "string",
"key": "string",
"status": 0,
"group": "string",
"remain_quota": 0,
"unlimited_quota": true,
"used_quota": 0,
"expired_time": 0,
"created_time": 0,
"accessed_time": 0,
"property1": "string",
"property2": "string"
}
}