How to use com.webos.service.db? I craete a kind through putKind function, but return error:permission denied

command:
luna-send -n 1 luna://com.webos.service.db/putKind '{
"id":"com.example.s4:1",
"owner":"com.example.s4",
"indexes":[
{
"name":"sample",
"props":[
{
"name":"sample"
}
]
},
{
"name":"testsample",
"props":[
{
"name":"test"
},
{
"name":"sample"
}
]
}
]
}'

return:
{"errorCode":-3963,"errorText":"db: permission denied","returnValue":false}

I do not know that why error?I hope you help

Did you set "requiredPermissions" option into appinfo.json file?

You can find the values of "requiredPermissions" option for db service using ls-monitor command with "i" option.