Policy-Definitions
Last updated
Was this helpful?
Last updated
Was this helpful?
Gets a policy definition with the given ID
Removes a policy definition with the given ID if possible. Deleting a policy definition is only possible if that policy definition is not yet referenced by a contract definition, in which case an error is returned. DANGER ZONE: Note that deleting policy definitions can have unexpected results, do this at your own risk!
No Content
Creates a new policy definition
https://w3id.org/edc/v0.0.1/ns/PolicyDefinition
ODRL policy
{"@context":"http://www.w3.org/ns/odrl.jsonld","@id":"0949ba30-680c-44e6-bc7d-1688cbe1847e","@type":"odrl:Set","permission":{"target":"http://example.com/asset:9898.movie","action":{"type":"http://www.w3.org/ns/odrl/2/use"},"constraint":{"leftOperand":"https://w3id.org/edc/v0.0.1/ns/left","operator":"eq","rightOperand":"value"}},"prohibition":[],"obligation":[]}
Returns all policy definitions according to a query
https://w3id.org/edc/v0.0.1/ns/QuerySpec
{"@context":{"@vocab":"https://w3id.org/edc/v0.0.1/ns/"},"@type":"Criterion","operandLeft":"fieldName","operator":"=","operandRight":"some value"}
No Content
Updates an existing Policy, If the Policy is not found, an error is reported
https://w3id.org/edc/v0.0.1/ns/PolicyDefinition
ODRL policy
{"@context":"http://www.w3.org/ns/odrl.jsonld","@id":"0949ba30-680c-44e6-bc7d-1688cbe1847e","@type":"odrl:Set","permission":{"target":"http://example.com/asset:9898.movie","action":{"type":"http://www.w3.org/ns/odrl/2/use"},"constraint":{"leftOperand":"https://w3id.org/edc/v0.0.1/ns/left","operator":"eq","rightOperand":"value"}},"prohibition":[],"obligation":[]}
No Content