const result = await auth.api.updateOrgRole({
headers,
body: {
roleName: "new132",
data: {
permission: {
organization: ["update", "delete"],
member: ["create", "update", "delete"],
invitation: ["create", "cancel"],
team: ["create", "update", "delete"],
ac: ["create", "read", "update", "delete"],
project: ["create", "read", "update"],
billing: ["read", "update"],
},,
},
organizationId: "6S...T0k7RT1W",
},
});
const result = await auth.api.updateOrgRole({
headers,
body: {
roleName: "new132",
data: {
permission: {
organization: ["update", "delete"],
member: ["create", "update", "delete"],
invitation: ["create", "cancel"],
team: ["create", "update", "delete"],
ac: ["create", "read", "update", "delete"],
project: ["create", "read", "update"],
billing: ["read", "update"],
},,
},
organizationId: "6S...T0k7RT1W",
},
});