POST api/Organizations

Request Information

URI Parameters

None.

Body Parameters

OrgEditViewModel
NameDescriptionTypeAdditional information
organizationId

globally unique identifier

None.

organizationType

OrganizationType

Required

crmId

string

Max length: 15

countryCode

string

Max length: 2

organizationName

string

Required

Max length: 100

description

string

Required

Max length: 200

canBill

boolean

None.

allowDataRoomRestrictedAccess

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "organizationId": "c083e6b6-640d-4f0c-b732-882a03dab65b",
  "organizationType": 0,
  "crmId": "sample string 2",
  "countryCode": "sample string 3",
  "organizationName": "sample string 4",
  "description": "sample string 5",
  "canBill": true,
  "allowDataRoomRestrictedAccess": true
}

application/xml, text/xml

Sample:
<OrgEditViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Portal.UI.Models">
  <allowDataRoomRestrictedAccess>true</allowDataRoomRestrictedAccess>
  <canBill>true</canBill>
  <countryCode>sample string 3</countryCode>
  <crmId>sample string 2</crmId>
  <description>sample string 5</description>
  <organizationId>c083e6b6-640d-4f0c-b732-882a03dab65b</organizationId>
  <organizationName>sample string 4</organizationName>
  <organizationType>Lab</organizationType>
</OrgEditViewModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'OrgEditViewModel'.

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.