EventAdministrators
Event Administrators
This object represents event administrators. These are typically next-of-kin family members of a deceased person for an event.
Endpoints
Insert or update (upsert) an Event Administrator
Uniqueness is determined based on a combination of the event unique identifier and the external ID. If a record with the same event's unique identifier and external unique identifier already exists, the existing record will be updated. Otherwise, a new record will be created.
New data is merged with existing data. See clarification below for details.
Parameters
event_unique_identifier
RequiredstringThe unique identifier of the event. See Events for more information.
external_identifier
RequiredstringThe external identifier of this event administrator, to enforce uniqueness. This is the identifier of the event administrator in your system.
person_full_name
RequiredstringThe name of the person.
person_phone_number
RequiredE164_stringThe person's phone number, formatted as an E164 string (e.g. +14155552671).
person_relationship_to_deceased
(optional)stringThe person's relationship to the deceased (e.g. 'spouse', 'child', 'parent', etc.).
person_interested_in_pre_planning
(optional)booleanWhether the person is interested in pre-planning (true or false).
person_email_address
(optional)stringThe person's email address.
Returns
A dictionary representing the created or updated event administrator.
curl -X POST https://api.mogulbridge.com/v1/event_administrators/upsert \ -u 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: \ -d event_unique_identifier='evt_SE9g1uGPTLUcPpxVBtdnl' \ -d external_identifier='admin-john-doe-jr' \ -d person_full_name='John Doe Jr.' \ -d person_phone_number='%2B14155552671' \ -d person_relationship_to_deceased='Son' \ -d person_interested_in_pre_planning=true \ -d person_email_address='john.doe.jr@example.com'
{
"object": "event_administrator",
"external_identifier": "admin-john-doe-jr",
"inserted_at": "2024-01-08T22:08:52Z",
"location_unique_identifier": "loc_XFRitug2hXD3ESq6NXRfo",
"person_full_name": "John Doe Jr.",
"person_phone_number": "+14155552671",
"public_data": {
"person_email_address": "john.doe.jr@example.com",
"person_interested_in_pre_planning": true,
"person_relationship_to_deceased": "Son"
},
"unique_identifier": "ead_egizFmA4v2UZ6V8k3tSOR",
"updated_at": "2024-01-08T22:13:34Z"
}