PolicyConfig
typestringrequired
Definition type of the policy
Possible values: [default, rules, manual]
Default value:
defaultpermissions object[]
Permissions of the policy
Array [
actionstringrequired
Action of the rule
Example:
useconstraints object[]
Constraints of the rule
Array [
typestringrequired
Type of the constraint
Example:
CredentialTypevaluestringrequired
Value of the constraint
Example:
MembershipCredential]
]
prohibitions object[]
Prohibitions of the policy
Array [
actionstringrequired
Action of the rule
Example:
useconstraints object[]
Constraints of the rule
Array [
typestringrequired
Type of the constraint
Example:
CredentialTypevaluestringrequired
Value of the constraint
Example:
MembershipCredential]
]
rawobject
Raw serialized ODRL offer
PolicyConfig
{
"type": "default",
"permissions": [
{
"action": "use",
"constraints": [
{
"type": "CredentialType",
"value": "MembershipCredential"
}
]
}
],
"prohibitions": [
{
"action": "use",
"constraints": [
{
"type": "CredentialType",
"value": "MembershipCredential"
}
]
}
],
"raw": {}
}