This repository has been archived by the owner on Mar 12, 2024. It is now read-only.
Useage of policy in contract definition #10
-
Hi, short question. To use the policy in a contract definition i would then use the id of the offer? Is this correct e.g.: {
"@context": [
"https://www.w3.org/ns/odrl.jsonld",
{
"cx": "https://w3id.org/catenax/v0.0.1/ns/"
}
],
"@type": "Offer",
"@id": "a343fcbf-99fc-4ce8-8e9b-148c97605aab"
...... Payload Contract definition{
"id": "9a8f5fff-e7b1-424a-8061-7b57c2bb7c18",
"accessPolicyId" : "a343fcbf-99fc-4ce8-8e9b-148c97605aab",
"contractPolicyId" : "a343fcbf-99fc-4ce8-8e9b-148c97605aab",
"criteria": [
{
"operandLeft": "asset:prop:id",
"operator": "eq",
"operandRight": "urn:uuid:2fb5b753-551a-4dcc-958c-597bb4cd5869-urn:uuid:60a46f7f-9ea2-4a5b-8ef0-79fae2a43g7z"
}
]
} |
Beta Was this translation helpful? Give feedback.
Answered by
saschaisele-zf
Jun 16, 2023
Replies: 2 comments
-
There should be examples in the documentation. @saschaisele-zf @yurimssilva can you help? |
Beta Was this translation helpful? Give feedback.
0 replies
-
That is correct. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jimmarino
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That is correct.
You can take a look at either the postman collection or this documentation about the management API.