Uploads
OMD Go allows POST requests to upload data. Each posting must contain a valid JSON or XML document.
For XML, entity instances are represented by XML elements, whereas entity fields are represented by attributes. If a value for an entity instance is not defined (null), the attribute must not be included into the XML representation of the entity instance.
For JSON, entity instances are represented by JSON objects with fields. This documentation shows examples in XML notification.
Post Upload entities as raw request body or as XML document to the URL
https://sandbox.optimizemyday.com/omdservices/Configuration/ConfigurationIdentifier/Upload
where ConfigurationIdentifier is the number of the configuration that has been provided to you by your OMD consultant.
The XML example below shows a Plan XML containing a sample task instance.
<?xml version="1.0" encoding="UTF-8"?>
<Upload>
<omd.domain.Configuration id="1234567890">
<omd.domain.s4.Territory name="001">
<omd.domain.s4.Task id="12345-01" name="Customer A" skill="HP4100MFP" estimatedDuration="60.0" earliest="2011-04-03 15:43" latest="2011-04-04 15:13" status="PL" remarks="Customer requests advice with adaption of LDAP address book" street="Koudekerkseweg 8" postalCode="4382 EE" city="VLISSINGEN" country="NL" contractType="01" version="0"/>
</omd.domain.s4.Territory>
</omd.domain.Configuration>
</Upload>
Discuss each relevant entity with your OMD consultant in order to fully understand the meaning of each entity and it’s attributes. Clarify the entities that need to be posted by the ERP system.