POST api/CRMOrganization

Insert New Organization

Request Information

URI Parameters

None.

Body Parameters

Organizations
NameDescriptionTypeAdditional information
OrganizationID

integer

None.

OrganizationCode

string

Required

String length: inclusive between 0 and 10

OrganizationName

string

Required

String length: inclusive between 0 and 100

Address1

string

Required

String length: inclusive between 0 and 100

Address2

string

String length: inclusive between 0 and 100

City

string

Required

String length: inclusive between 0 and 50

PostalCode

string

String length: inclusive between 0 and 20

State

string

Required

String length: inclusive between 0 and 25

Country

string

Required

String length: inclusive between 0 and 25

IsEnabled

boolean

None.

OrganizationNameAlias

string

String length: inclusive between 0 and 10

Request Formats

application/json, text/json

Sample:
{
  "OrganizationID": 1,
  "OrganizationCode": "sample string 2",
  "OrganizationName": "sample string 3",
  "Address1": "sample string 4",
  "Address2": "sample string 5",
  "City": "sample string 6",
  "PostalCode": "sample string 7",
  "State": "sample string 8",
  "Country": "sample string 9",
  "IsEnabled": true,
  "OrganizationNameAlias": "sample string 11"
}

application/xml, text/xml

Sample:
<Organizations xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sysmex.IT.NsGlobal.Models.CRM">
  <CreatedDateTime>2017-12-15T14:07:35.8764857-06:00</CreatedDateTime>
  <CreatedUserID>12</CreatedUserID>
  <UpdatedDateTime>2017-12-15T14:07:35.8764857-06:00</UpdatedDateTime>
  <UpdatedUserID>1</UpdatedUserID>
  <Address1>sample string 4</Address1>
  <Address2>sample string 5</Address2>
  <City>sample string 6</City>
  <Country>sample string 9</Country>
  <IsEnabled>true</IsEnabled>
  <OrganizationCode>sample string 2</OrganizationCode>
  <OrganizationID>1</OrganizationID>
  <OrganizationName>sample string 3</OrganizationName>
  <OrganizationNameAlias>sample string 11</OrganizationNameAlias>
  <PostalCode>sample string 7</PostalCode>
  <State>sample string 8</State>
</Organizations>

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.