{
"code": "string",
"actions": [
{
"name": "string",
"description": "string"
}
],
"type": "DATA",
"description": "string",
"namespace": "string",
"apiIdentifier": "string"
}curl --location --request POST 'https://core.authing.cn/api/v2/resources' \
--header 'Authorization: Bearer sdfjosdfjsf' \
--header 'x-authing-userpool-id: 61b95d6c96d42670da568408' \
--header 'Content-Type: application/json' \
--data-raw '{
"code": "string",
"actions": [
{
"name": "string",
"description": "string"
}
],
"type": "DATA",
"description": "string",
"namespace": "string",
"apiIdentifier": "string"
}'{
"code": 200,
"message": "创建成功",
"data": {
"userPoolId": "61b95d6c96d42670da568408",
"code": "resource2",
"actions": [
{
"name": "read",
"description": "读"
},
{
"name": "write",
"description": "写"
}
],
"type": "BUTTON",
"description": "this is description",
"namespaceId": 5,
"apiIdentifier": "",
"createdAt": "2022-01-12T11:24:13.946Z",
"updatedAt": "2022-01-12T11:24:13.946Z",
"id": "61deba5d34c2ff025f31c582"
}
}