curl --request POST \
--url https://api.example.com/v1/users/policies \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "toManage",
"roles": [
"Admin"
],
"functions": [
"fullDbPermission"
]
}
'{
"id": "uuid",
"name": "toManage",
"roles": [
"Admin"
],
"functions": [
"fullDbPermission"
],
"organizationId": "0x000000000000000000000000000000000000000000000000000048336176656e"
}Create policy
curl --request POST \
--url https://api.example.com/v1/users/policies \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "toManage",
"roles": [
"Admin"
],
"functions": [
"fullDbPermission"
]
}
'{
"id": "uuid",
"name": "toManage",
"roles": [
"Admin"
],
"functions": [
"fullDbPermission"
],
"organizationId": "0x000000000000000000000000000000000000000000000000000048336176656e"
}Was this page helpful?