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": "e47f2dcb-f8c5-4570-906d-a4a07fde50bf",
  "dear": "sample string 4",
  "email": "sample string 5",
  "operating_location_id": "44e5f923-8e0e-4ae6-af74-474990068834",
  "source_id": "2c08162a-56d2-465a-9894-a4893d2ff1d3",
  "source_origin": "sample string 6",
  "city": "sample string 7",
  "state": "sample string 8",
  "country": "sample string 9",
  "id": "12efe7e5-c8d0-4ebc-9d3d-611920c902d9",
  "subscription_id": "0b7075ea-e1ab-4112-9784-a251ad5224fb",
  "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">12efe7e5-c8d0-4ebc-9d3d-611920c902d9</Id>
  <SubscriptionId xmlns="http://schemas.datacontract.org/2004/07/CompleteEmpireApp.Api.Models.Base">0b7075ea-e1ab-4112-9784-a251ad5224fb</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>e47f2dcb-f8c5-4570-906d-a4a07fde50bf</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>44e5f923-8e0e-4ae6-af74-474990068834</OperatingLocationId>
  <SourceId>2c08162a-56d2-465a-9894-a4893d2ff1d3</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.