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