POST api/CRMFacility

Insert New Facility

Request Information

URI Parameters

None.

Body Parameters

Facilities
NameDescriptionTypeAdditional information
FacilityID

integer

None.

FacilityCode

string

Required

FacilityName

string

None.

FacilityNameAlias

string

None.

Address1

string

None.

Address2

string

None.

City

string

None.

PostalCode

string

None.

State

string

None.

Country

string

None.

IsEnabled

boolean

None.

IsNss

boolean

None.

CompanyID

integer

None.

Companies

Companies

None.

CompanyCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "FacilityID": 1,
  "FacilityCode": "sample string 2",
  "FacilityName": "sample string 3",
  "FacilityNameAlias": "sample string 4",
  "Address1": "sample string 5",
  "Address2": "sample string 6",
  "City": "sample string 7",
  "PostalCode": "sample string 8",
  "State": "sample string 9",
  "Country": "sample string 10",
  "IsEnabled": true,
  "IsNss": true,
  "CompanyID": 13,
  "Companies": {
    "CompanyID": 1,
    "CompanyCode": "sample string 2",
    "CompanyName": "sample string 3",
    "CompanyNameAlias": "sample string 4",
    "Address1": "sample string 5",
    "Address2": "sample string 6",
    "City": "sample string 7",
    "PostalCode": "sample string 8",
    "State": "sample string 9",
    "Country": "sample string 10",
    "IsEnabled": true,
    "RegionID": 12,
    "RegionCode": "sample string 13"
  },
  "CompanyCode": "sample string 14"
}

application/xml, text/xml

Sample:
<Facilities xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sysmex.IT.NsGlobal.Models.CRM">
  <CreatedDateTime>2017-12-14T03:47:19.6004955-06:00</CreatedDateTime>
  <CreatedUserID>15</CreatedUserID>
  <UpdatedDateTime>2017-12-14T03:47:19.6004955-06:00</UpdatedDateTime>
  <UpdatedUserID>1</UpdatedUserID>
  <Address1>sample string 5</Address1>
  <Address2>sample string 6</Address2>
  <City>sample string 7</City>
  <Companies>
    <CreatedDateTime>2017-12-14T03:47:19.6004955-06:00</CreatedDateTime>
    <CreatedUserID>14</CreatedUserID>
    <UpdatedDateTime>2017-12-14T03:47:19.6004955-06:00</UpdatedDateTime>
    <UpdatedUserID>1</UpdatedUserID>
    <Address1>sample string 5</Address1>
    <Address2>sample string 6</Address2>
    <City>sample string 7</City>
    <CompanyCode>sample string 2</CompanyCode>
    <CompanyID>1</CompanyID>
    <CompanyName>sample string 3</CompanyName>
    <CompanyNameAlias>sample string 4</CompanyNameAlias>
    <Country>sample string 10</Country>
    <IsEnabled>true</IsEnabled>
    <PostalCode>sample string 8</PostalCode>
    <RegionCode>sample string 13</RegionCode>
    <RegionID>12</RegionID>
    <State>sample string 9</State>
  </Companies>
  <CompanyCode>sample string 14</CompanyCode>
  <CompanyID>13</CompanyID>
  <Country>sample string 10</Country>
  <FacilityCode>sample string 2</FacilityCode>
  <FacilityID>1</FacilityID>
  <FacilityName>sample string 3</FacilityName>
  <FacilityNameAlias>sample string 4</FacilityNameAlias>
  <IsEnabled>true</IsEnabled>
  <IsNss>true</IsNss>
  <PostalCode>sample string 8</PostalCode>
  <State>sample string 9</State>
</Facilities>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.