Authorization: Bearer ********************{
"usingActionsConfig": true,
"name": "dim_shops_default",
"dataSourceKey": "yiask",
"actions": [
{
"name": "view",
"scope": 350031254323200,
"fields": [
"店铺ID",
"店铺名称"
]
}
]
}curl --location --request POST '/roles:dataSourceResources:create?roleName=storeOwner&filterByTk=dim_shops_default' \
--header 'X-SPACES: default' \
--header 'X-SPACES: {{space}}' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"usingActionsConfig": true,
"name": "dim_shops_default",
"dataSourceKey": "yiask",
"actions": [
{
"name": "view",
"scope": 350031254323200,
"fields": [
"店铺ID",
"店铺名称"
]
}
]
}'{
"id": 350031382249472,
"roleName": "storeOwner",
"usingActionsConfig": true,
"name": "dim_shops_default",
"dataSourceKey": "yiask",
"actions": [
{
"id": 350031382249473,
"name": "view",
"scopeId": 350031254323200,
"fields": [
"店铺ID",
"店铺名称"
]
}
]
}