Content types

The following formats can be used to exchange data. Specify the request content type and accepted response by setting the corresponding headers.

Content Types

Format

Content-Type

Accept

Form urlencoded

application/x-www-form-urlencoded

application/json or application/xml

Json

application/json

application/json

Example

An example of our recommended content type is given below. This example uses the GetFacility action from the FacilitiesController. Note that 'myorganizationid' should be replaced by the Organisation ID from your own company.

Form-urlencoded

POST https://myorganizationid.smarteventmanager.com/api/Facilities/GetFacility HTTP/1.1 Accept: application/json User-Agent: Fiddler Host: myorganizationid.smarteventmanager.com Content-Type: application/x-www-form-urlencoded ApiKey: 8872adfc-5643-44c2-9d63-3c393d763f39 { "FacilityID": 5, "SourceIsWeb": true, "DoLoadNotes": false }