Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 如何使用strapi beta版本设置注册API中的角色?_Node.js_Strapi_Nodejs Server - Fatal编程技术网

Node.js 如何使用strapi beta版本设置注册API中的角色?

Node.js 如何使用strapi beta版本设置注册API中的角色?,node.js,strapi,nodejs-server,Node.js,Strapi,Nodejs Server,我正在尝试注册一个用户,我想知道如何将角色设置为动态。我试过: { username: "test", email: "test@gmail.com", password: "987654321", role: ??? // ["Admin" or "newRole" or "Public"] } strapi版本:3.0.0-beta.20.3

我正在尝试注册一个用户,我想知道如何将角色设置为动态。我试过:

{
  username: "test",
  email: "test@gmail.com",
  password: "987654321",
  role: ??? // ["Admin" or "newRole" or "Public"]
}
strapi版本:3.0.0-beta.20.3