-
Notifications
You must be signed in to change notification settings - Fork 280
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
Cannot update event org #744
Comments
So two things there:
|
arf, so I cannot change them ? |
You can change the Orgc (creator org), but not the org: from pymisp import MISPOrganisation
orgc = MISPOrganisation()
orgc.name = 'bazbaz'
orgc.id = 15
orgc.uuid = '5888a98d-a7e8-4183-94bb-4d19950d210f'
# NOTE: Pushing this object will only work if the user has sync right (if not, the orgc key will be ignored)
event.Orgc = orgc
print(event.to_json()) That should still do the trick for allowing edits. But it should only be used if you have no other way to do it. |
It seems MISPi s not accepting it:
Anyway, I think I will duplicate/recreate events, it may be simpler. |
The user needs to be sync or admin. And what was the response from MISP? |
Actually nothing: it answers the same event in dict format with orgc unchanged. |
Right, that thing was definitely working int he past, but as I never implemented a test case, we didn't caught the regression. |
Hello
I try to update an event's org (not orgc):
But all I get is:
The text was updated successfully, but these errors were encountered: