Policy-Definitions
Last updated
Was this helpful?
Last updated
Was this helpful?
This section provides an overview of all available APIs that adhere to the OpenAPI specification. All APIs are loaded from the OpenAPI specification file: Link. Please note that the API base-paths may differ depending on the connector, the specific API base-path can be seen in the UI dashboard.
Creates a new policy definition
/v2/policydefinitions
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
/v2/policydefinitions/request
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"}
ASC
, DESC
No body
Gets a policy definition with the given ID
/v2/policydefinitions/{id}
Updates an existing Policy, If the Policy is not found, an error is reported
/v2/policydefinitions/{id}
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 body
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!
/v2/policydefinitions/{id}
No body