-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
policy api PUT api does not change bpns #694
Comments
@ds-mmaul : which env? cannot reproduce on DEV: Policy:
Update:
Get all policies:
=>
Get policies for BPN:
=>same result as above, only limited to the given businessPartnerNumbers |
Hi @dsmf , request was: |
@ds-mmaul: still cannot reproduce. There is also a test https://jira.catena-x.net/browse/TRI-1953 that covers updating. I assume that you CREATE the policy initially without a businessPartnerNumber. In this case the policy becomes the default policy. When you create the policy you need to create it with one initial businessPartnerNumber. Otherwise it becomes the default policy. Unfortunately that is how the API was defined. I know this is inconvenient which is why we have an improvement story here: #561. But I am not sure when this will be implemented. Example:
Afterwards you can update. |
Error was in the structure of request, closing issue. Thank you. |
wontdo |
For the sake of documentation: The error was that in the update request the attribute should be plural "businessPartnerNumbers" and not singluar "businessPartnerNumber". |
Description
Current behaviour
Expected behavior
Steps to reproduce the Bug
exampl request to PUT:
{
"validUntil": "2029-05-15T09:19:57.074412585Z",
"businessPartnerNumber": [
"BPNL1234567890CD",
// add BPN here and see if change affects data
],
"policyIds": [
"abc"
]
}
policy is not added to the added bpn when requesting getPolicies
The text was updated successfully, but these errors were encountered: