Update an event by origin event id
PUT/v1/events/origin-events/:originEventId
Update the header of an existing event (admission / atendimento / episodio) addressed by your own origin_event_id. Use this when the encounter data changes in your HIS after the event was created - resending a charge with the same origin_event_id does not update event-level fields.
agreement_code is required and identifies which agreement's view of the event you are updating. The other fields are optional; only the ones you send are changed.
The response depends on what changed. A header-only update applies synchronously and returns 200 with the updated event. Changing new_service_type_code requires reclassifying the event's charges, so it is processed asynchronously: the response is 202 with a Location header pointing at /v1/events/pending-event-modifications/{id}, which you poll until the modification reaches a terminal status.
Request
Responses
- 200
- 202
- 400
- 401
- 403
- 404
- 422
- 500
OK - applied synchronously
Accepted - service type change queued for asynchronous processing
Response Headers
Pending event modification monitor URL
Bad Request
Unauthorized
Forbidden
Not Found - no event for that origin_event_id and agreement_code
Validation error
Internal Server Error