Skip to main content

EventAdministrators

Event Administrators

This object represents event administrators. These are typically next-of-kin family members of a deceased person for an event.

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
Requiredstring

The unique identifier of the event. See Events for more information.

external_identifier
Requiredstring

The external identifier of this event administrator, to enforce uniqueness. This is the identifier of the event administrator in your system.

person_full_name
Requiredstring

The name of the person.

person_phone_number
RequiredE164_string

The person's phone number, formatted as an E164 string (e.g. +14155552671).

person_relationship_to_deceased
(optional)string

The person's relationship to the deceased (e.g. 'spouse', 'child', 'parent', etc.).

person_interested_in_pre_planning
(optional)boolean

Whether the person is interested in pre-planning (true or false).

person_email_address
(optional)string

The person's email address.

Returns

A dictionary representing the created or updated event administrator.

POST
/v1/event_administrators/upsert
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'
RESPONSE
{
  "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"
}