{
"name" : "Activity 123",
"code" : "",
"description" : "",
"pageId" : 1,
"activityItems" : [
{
"activityItemId" : 2
},
{
"activityItemId" : 1
},
{
"activityItemId" : 4
}
],
"activityConfigs" : [
{
"activityConfigId" : 2
},
{
"activityConfigId" : 1
},
{
"activityConfigId" : 4
}
],
"activityAccesses" : [
{
"type" : "organization",
"organizationId" : 1,
"accountId" : 2
},
{
"type" : "account",
"organizationId" : 2,
"accountId" : 1
},
{
"type" : "account",
"organizationId" : 3,
"accountId" : 4
}
]
}
curl --location --request POST 'http://localhost:8080/api/v1/activity' \
--header 'Content-Type: application/json' \
--data-raw '{
"name" : "Activity 123",
"code" : "",
"description" : "",
"pageId" : 1,
"activityItems" : [
{
"activityItemId" : 2
},
{
"activityItemId" : 1
},
{
"activityItemId" : 4
}
],
"activityConfigs" : [
{
"activityConfigId" : 2
},
{
"activityConfigId" : 1
},
{
"activityConfigId" : 4
}
],
"activityAccesses" : [
{
"type" : "organization",
"organizationId" : 1,
"accountId" : 2
},
{
"type" : "account",
"organizationId" : 2,
"accountId" : 1
},
{
"type" : "account",
"organizationId" : 3,
"accountId" : 4
}
]
}'
{}