Datasets
Add an ODRL policy to a dataset
Changed onpost/datasets/{datasetId}/policies
Request
- Base URL: http://localhost:8080/api
- URL: http://localhost:8080/api/datasets/{datasetId}/policies
- Auth: none declared
Path parameters
datasetIdstring uuid required
Request body
string required
ODRL offer JSON string
Response
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 optional property
to the response with the status
- info