{
"name": "Level 1",
"description": "Level 1",
"accessMembers": [
{
"type": "organization",
"organizationId": 1,
"accountId": 0
},
{
"type": "account",
"organizationId": 0,
"accountId": 1
}
],
"accessPages": [
{
"pageId": 1,
"accessType": "allow",
"pageActivities": [
{
"activityId": 1,
"accessType": "allow",
"activityItems": [
{
"activityItemId": 1,
"accessType": "allow"
},
{
"activityItemId": 2,
"accessType": "allow"
},
{
"activityItemId": 3,
"accessType": "allow"
},
{
"activityItemId": 3,
"accessType": "allow"
}
]
}
]
}
]
}
curl --location --request POST 'http://localhost:8080/api/v1/group' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Level 1",
"description": "Level 1",
"accessMembers": [
{
"type": "organization",
"organizationId": 1,
"accountId": 0
},
{
"type": "account",
"organizationId": 0,
"accountId": 1
}
],
"accessPages": [
{
"pageId": 1,
"accessType": "allow",
"pageActivities": [
{
"activityId": 1,
"accessType": "allow",
"activityItems": [
{
"activityItemId": 1,
"accessType": "allow"
},
{
"activityItemId": 2,
"accessType": "allow"
},
{
"activityItemId": 3,
"accessType": "allow"
},
{
"activityItemId": 3,
"accessType": "allow"
}
]
}
]
}
]
}'
{}