You need to enable JavaScript to run this app.
导航
添加用户到项目
最近更新时间:2025.10.16 14:55:04首次发布时间:2025.10.16 14:55:04
复制全文
我的收藏
有用
有用
无用
无用

本接口用于调用OpenAPI接口,添加用户至项目中心权限管理中的项目中。

请求方式及路径

请求方式:POST
请求地址:https://console.volcengine.com/cdp/api/v2/rag/auth/add/user

请求参数

参数名称

参数值类型

参数示例

说明

id

number

23

用户id

account

string

"test"

用户account

name

string

"我是用户名"

用户名

email

string

"123@1.com"

用户邮箱

响应参数

参数名称

参数类型

参数示例

说明

code

number

0

0->成功
非0->失败

msg

string

"success"

当code为非0时包含错误信息

data

string

""

请求示例
curl 'https://console.volcengine.com/cdp/api/v2/rag/auth/add/user' \
  -H 'accept: application/json, text/plain, */*' \
  -H 'accept-language: zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7' \
  -H 'priority: u=1, i' \
  -H 'referer: https://console.volcengine.com/cdp/knowledge-base/2985149/app/chat?external=true&dialog_id=81' \
  -H 'sec-ch-ua: "Chromium";v="133", "Not(A:Brand";v="99"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "macOS"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: same-origin' \
  -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36' \
  -H 'x-org: xxx' \
  -H 'x-tenant: xxx' \
  -H 'X-User: xxx' \
  -H 'Authorization: Bearer xxx'
  --data-raw '{ "id": 23, "name": "test_0507", "account": "nihao", "email": "12345@google.com", "avatar": "", "lang": "Chinese" }'