Incrementally building an array as a data document #413
chamith-kodez
started this conversation in
Community
Replies: 2 comments 3 replies
-
Hi there! The OPA REST API documentation covers the PATCH operation here. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks.
It does cover the Patch operation in a very basic manner. With that I cannot figure out how to keep adding new elements to an array.
…________________________________
From: Anders Eknert ***@***.***>
Sent: Monday, May 8, 2023 1:50 PM
To: open-policy-agent/community ***@***.***>
Cc: Chamith Siriwardena ***@***.***>; Author ***@***.***>
Subject: Re: [open-policy-agent/community] Incrementally building an array as a data document (Discussion #413)
Hi there! The OPA REST API documentation covers the PATCH operation here<https://www.openpolicyagent.org/docs/latest/rest-api/#patch-a-document>.
—
Reply to this email directly, view it on GitHub<#413 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AYZZ35DNVRWBM2JJ3MBAGQTXFCUFVANCNFSM6AAAAAAXYTFC7I>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
IMPORTANT: The information transmitted by this email is intended only for the person or entity to which it is addressed. If you have received this email by mistake, please notify the sender immediately and "do not disclose the contents to anyone or make copies thereof”
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Everyone,
Can someone please let me know how to add an element to an existing array which exists as a data document (probably using HTTP PATCH) ?
Existing data document:
[
{
"id": 7,
"name": "resolution-ops-field-p1",
"targetCode": "resolution",
"scopeCode": "ops-field"
},
{
"id": 8,
"name": "resolution-client-p1",
"targetCode": "resolution",
"scopeCode": "client"
}
]
Beta Was this translation helpful? Give feedback.
All reactions