POST api/Organization/Save

Request Information

URI Parameters

None.

Body Parameters

OrganizationModel
NameDescriptionTypeAdditional information
OrgId

integer

None.

Name

string

None.

ManagerName

string

None.

TwoFactorEnabled

boolean

None.

EmailVerificationEnabled

boolean

None.

PublicIps

Collection of OrganizationIps

None.

Request Formats

application/json, text/json

Sample:
{
  "OrgId": 1,
  "Name": "sample string 2",
  "ManagerName": "sample string 3",
  "TwoFactorEnabled": true,
  "EmailVerificationEnabled": true,
  "PublicIps": [
    {
      "Id": 1,
      "OrgId": 2,
      "IPAddress": "sample string 3",
      "Description": "sample string 4",
      "Active": true,
      "Deleted": true
    },
    {
      "Id": 1,
      "OrgId": 2,
      "IPAddress": "sample string 3",
      "Description": "sample string 4",
      "Active": true,
      "Deleted": true
    }
  ]
}

application/xml, text/xml

Sample:
<OrganizationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SecurityApi.Models">
  <EmailVerificationEnabled>true</EmailVerificationEnabled>
  <ManagerName>sample string 3</ManagerName>
  <Name>sample string 2</Name>
  <OrgId>1</OrgId>
  <PublicIps>
    <OrganizationIps>
      <Active>true</Active>
      <Deleted>true</Deleted>
      <Description>sample string 4</Description>
      <IPAddress>sample string 3</IPAddress>
      <Id>1</Id>
      <OrgId>2</OrgId>
    </OrganizationIps>
    <OrganizationIps>
      <Active>true</Active>
      <Deleted>true</Deleted>
      <Description>sample string 4</Description>
      <IPAddress>sample string 3</IPAddress>
      <Id>1</Id>
      <OrgId>2</OrgId>
    </OrganizationIps>
  </PublicIps>
  <TwoFactorEnabled>true</TwoFactorEnabled>
</OrganizationModel>

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 'OrganizationModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.