PATCH
/
admin
/
user
/
{userId}
/
admin
shell
curl --request PATCH \
  --url https://app.teable.cn/api/admin/user/%7BuserId%7D/admin \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/json' \
  --data '{"isAdmin":true}'

Authorizations

Authorization
string
header
required

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

Path Parameters

userId
string
required

Body

application/json
isAdmin
boolean
required

Response

200

User admin privilege updated successfully.