POST api/v1/facility/new
Add a new facility to the Calendaring BI capture
Request Information
URI Parameters
None.
Body Parameters
NewFacilityBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Request | Facility |
None. |
|
| Authentication | AuthenticationModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"Request": {
"RemoteId": 1,
"FacilityName": "New Media - must be unique, together with Remote Id",
"Address1": "First St.",
"Address2": "Floor 2 (an optional field)",
"City": "Seattle",
"State": "WA",
"Zip": "90001",
"Country": "USA",
"ContactEmailAddress": "larry@newmedia.com",
"ContactFirstName": "Larry",
"ContactLastName": "Raddler"
},
"Authentication": {
"Id": "170200123 - sample only, user your ID",
"Key": "467512342123 - sample only, user your Key"
}
}
application/xml, text/xml
Sample:
<NewFacilityBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Models">
<Authentication>
<Id>170200123 - sample only, user your ID</Id>
<Key>467512342123 - sample only, user your Key</Key>
</Authentication>
<Request>
<Address1>First St.</Address1>
<Address2>Floor 2 (an optional field)</Address2>
<City>Seattle</City>
<ContactEmailAddress>larry@newmedia.com</ContactEmailAddress>
<ContactFirstName>Larry</ContactFirstName>
<ContactLastName>Raddler</ContactLastName>
<Country>USA</Country>
<FacilityName>New Media - must be unique, together with Remote Id</FacilityName>
<RemoteId>1</RemoteId>
<State>WA</State>
<Zip>90001</Zip>
</Request>
</NewFacilityBindingModel>
Response Information
Resource Description
CalendaringOutgoingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Message | MessageModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"Message": {
"Code": "sample string 1",
"Description": "sample string 2"
}
}
application/xml, text/xml
Sample:
<CalendaringOutgoingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Models">
<Message>
<Code>sample string 1</Code>
<Description>sample string 2</Description>
</Message>
</CalendaringOutgoingModel>