Please enable JavaScript to view this site.

EventPro Software User Manual

Breadcrumb Trail: EventPro API

Object Oid or ItemCode

Scroll Prev Top Next More

When using the Add or Update Endpoints, you may need to reference the Oid of the object that is added or updated on the main object, or you may be able to choose whether you want to reference the object's Oid or ItemCode.

You can reference the Oid or ItemCode of the object for any object that has an ItemCode field.

 

For example, if you are using the Update Event Endpoint to update the Event Category on an Event, you can reference the Oid or the ItemCode of the EventCategory object in the data being passed to change the Event Category.

So, in this example of data that would be passed to the /event/update endpoint, the Event that is to be updated is referenced by its Oid, and the EventCategory is referenced by its ItemCode.

{

   "Oid": "a8b208b1-0345-f11c-16b0-399d383a45eb7",

   "EventCategory": { "ItemCode": "Arts" }

}

 

In comparison, if you are using the Update Event Endpoint to update the Event Manager on an Event, you would need to reference the Oid of the EventManager object in the data being passed to change the Event Manager.

In this example of data that would be passed to the /event/update endpoint, the first Oid belongs to the Event that is to be updated, and second Oid refers to the EventManager.

{

   "Oid": "a8b208b1-0345-f11c-16b0-399d383a45eb7",

   "EventManager": { "Oid": "a1a923ab-4dfb-5531-a8d4-39d383a2694d" }

}

© 2023 EventPro Software, a wholly owned subsidiary of Profit Systems Inc. All Rights Reserved.