{
"code": "string",
"description": "string",
"parent": "string",
"namespace": "string"
}
curl --location --request POST 'https://core.authing.cn/api/v2/roles' \
--header 'Authorization: Bearer token' \
--header 'x-authing-userpool-id: 61b95d6c96d42670da568408' \
--header 'Content-Type: application/json' \
--data-raw '{
"code": "string",
"description": "string",
"parent": "string",
"namespace": "string"
}'
{
"code": 200,
"message": "创建成功",
"data": {
"userPoolId": "61b95d6c96d42670da568408",
"code": "apifoxRole2",
"description": "用 Apifox 创建的角色",
"parentCode": "61dbe4836beb0afb44d14b88",
"isSystem": false,
"namespaceId": 5,
"createdAt": "2022-01-12T11:12:18.909Z",
"updatedAt": "2022-01-12T11:12:18.909Z",
"id": "61deb79210cbe1664f4bfe57"
}
}