Skip to content

Commit 2004e16

Browse files
committed
docs: fix update_event example
1 parent 0c21847 commit 2004e16

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ body = EventUpdateRequest(linked_id='foo') # EventUpdateRequest |
165165
# body = EventUpdateRequest(linked_id='foo', tag={'bar': 123}, suspect=False)
166166

167167
try:
168-
api_instance.update_event(request_id, body)
168+
api_instance.update_event(body, request_id)
169169
except KnownApiException as e:
170170
structured_error = e.structured_error
171171
print("Error code: %s. Error message: %s\n" % (structured_error.error.code, structured_error.error.message))

update_event_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
try:
2828
updateBody = EventUpdateRequest(**vars(args))
2929
print(f'updateBody: {updateBody}')
30-
api_instance.update_event(request_id, updateBody)
30+
api_instance.update_event(updateBody, request_id)
3131
except ApiException as e:
3232
print("Exception when calling DefaultApi->update_event: %s\n" % e)
3333
exit(1)

0 commit comments

Comments
 (0)