跳转到主要内容
PUT
/
access-token
/
{id}
cURL
curl --request PUT \
  --url http://127.0.0.1:3000/api/access-token/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "scopes": [
    "<string>"
  ],
  "description": "<string>",
  "spaceIds": [
    "<string>"
  ],
  "baseIds": [
    "<string>"
  ],
  "hasFullAccess": true
}
'
{
  "id": "<string>",
  "name": "<string>",
  "scopes": [
    "<string>"
  ],
  "description": "<string>",
  "spaceIds": [
    "<string>"
  ],
  "baseIds": [
    "<string>"
  ],
  "hasFullAccess": true
}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

id
string
必填

请求体

application/json
name
string
必填
scopes
string[]
必填
description
string
spaceIds
string[] | null
baseIds
string[] | null
hasFullAccess
boolean

响应

200 - application/json

Returns access token.

id
string
必填
name
string
必填
scopes
string[]
必填
description
string
spaceIds
string[]
baseIds
string[]
hasFullAccess
boolean
Last modified on December 10, 2025