POST api/accounts

Request Information

URI Parameters

None.

Body Parameters

AccountCreateModel
NameDescriptionTypeAdditional information
auto_account_id

boolean

None.

account_id

string

String length: inclusive between 0 and 25

account_name

string

Required

String length: inclusive between 0 and 255

account_type_id

globally unique identifier

None.

dear

string

String length: inclusive between 0 and 255

email

string

Required

String length: inclusive between 0 and 255

operating_location_id

globally unique identifier

None.

source_id

globally unique identifier

Required

source_origin

string

String length: inclusive between 0 and 255

city

string

String length: inclusive between 0 and 75

state

string

String length: inclusive between 0 and 75

country

string

String length: inclusive between 0 and 75

id

globally unique identifier

None.

subscription_id

globally unique identifier

None.

ts

Collection of byte

None.

Request Formats

application/json, text/json

Sample:
{
  "auto_account_id": true,
  "account_id": "sample string 2",
  "account_name": "sample string 3",
  "account_type_id": "4070ff92-a9f6-472d-aaf9-298c4d6e2b34",
  "dear": "sample string 4",
  "email": "sample string 5",
  "operating_location_id": "57b1db82-997a-40ac-8ff9-a49ad29c595e",
  "source_id": "706446be-a473-477f-8bdf-b8cb61748222",
  "source_origin": "sample string 6",
  "city": "sample string 7",
  "state": "sample string 8",
  "country": "sample string 9",
  "id": "8795ac68-0337-4bdf-9d69-d16b2249f4e6",
  "subscription_id": "b9bdb616-0495-485f-a193-cf12689510b7",
  "ts": "QEA="
}

application/xml, text/xml

Sample:
<AccountCreateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models">
  <Id xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models.Base">8795ac68-0337-4bdf-9d69-d16b2249f4e6</Id>
  <SubscriptionId xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models.Base">b9bdb616-0495-485f-a193-cf12689510b7</SubscriptionId>
  <Ts xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models.Base">QEA=</Ts>
  <AccountId>sample string 2</AccountId>
  <AccountName>sample string 3</AccountName>
  <AccountTypeId>4070ff92-a9f6-472d-aaf9-298c4d6e2b34</AccountTypeId>
  <AutoAccountId>true</AutoAccountId>
  <City>sample string 7</City>
  <Country>sample string 9</Country>
  <Dear>sample string 4</Dear>
  <Email>sample string 5</Email>
  <OperatingLocationId>57b1db82-997a-40ac-8ff9-a49ad29c595e</OperatingLocationId>
  <SourceId>706446be-a473-477f-8bdf-b8cb61748222</SourceId>
  <SourceOrigin>sample string 6</SourceOrigin>
  <State>sample string 8</State>
</AccountCreateModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.