OdrlPolicies
Create ODRL policy
Changed onpost/odrl-policies
Request
- Base URL: http://localhost:8080/api
- URL: http://localhost:8080/api/odrl-policies
- Auth: none declared
Request body
Example request
{
"entity": "urn:catalog:35d10981-1d0b-4204-b32e-847b827ce635",
"entityType": "Catalog",
"odrlOffer": {
"permission": [
{
"action": "use",
"constraint": [
{
"leftOperand": "bla",
"operator": "eq",
"rightOperand": "hola"
}
]
}
]
}
}Response
ODRL policy created
Example response
{
"createdAt": "2026-01-10T14:40:30.978559Z",
"entity": "urn:catalog:35d10981-1d0b-4204-b32e-847b827ce635",
"entityType": "Catalog",
"id": "urn:odrl-policy:abad083e-78a8-4f90-aaca-7c5d6af6c251",
"instantiationParameters": {
"$bla": "hola"
},
"odrlOffer": {
"permission": [
{
"action": "use",
"constraint": [
{
"leftOperand": "bla",
"operator": "eq",
"rightOperand": "hola"
}
]
}
]
},
"sourceTemplateId": "policy-1",
"sourceTemplateVersion": "1.0"
}Changes
- info
added the new optional request property
- info
added the optional property
to the response with the status
- info
- info
endpoint added
- info