User
此页面暂无中文版本,显示的是英文版本。
Update user project-type permissions
Replace project-type-level permissions for a user across the listed project types.
Authorization
BearerAuthObject AuthorizationBearer <token>
Machine tokens only: a personal API token or a product robot token (POST /api/v2/products/{uid}/robot-tokens). A session JWT here is 401 — the web app uses the b2t_access cookie.
In: header
Path Parameters
userId*integer
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X PUT "https://example.com/api/v2/users/0/project-type-permissions" \ -H "Content-Type: application/json" \ -d '{ "projectTypes": [ {} ] }'Empty
Empty
Empty
Empty