POST levels

Create Level. Roles: ApiRole+ManageChildLevelsRole

Request Information

URI Parameters

None.

Body Parameters

Object to create new level.

LevelCreateDTO
NameDescriptionTypeAdditional information
Name

Level/Dealer name

string

None.

ParentID

Parent level/dealer id

integer

Required

Contact

Level/Dealer contact

string

None.

Phone

Level/Dealer phone number

string

None.

Email

Level/Dealer E-mail

string

None.

Comment

Level/Dealer comment

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "ParentID": 2,
  "Contact": "sample string 3",
  "Phone": "sample string 4",
  "Email": "sample string 5",
  "Comment": "sample string 6"
}

application/xml, text/xml

Sample:
<Level xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Name>sample string 1</Name>
  <ParentID>2</ParentID>
  <Contact>sample string 3</Contact>
  <Phone>sample string 4</Phone>
  <Email>sample string 5</Email>
  <Comment>sample string 6</Comment>
</Level>

Response Information

Resource Description

Returns the newly created level object.

Level
NameDescriptionTypeAdditional information
LevelID

Level/Dealer ID

integer

None.

Name

Level/Dealer name

string

None.

ParentID

Parent level/dealer ID

integer

None.

Contact

Level/dealer contact

string

None.

Phone

Level/dealer phone number

string

None.

Email

Level/Dealer E-mail

string

None.

Comment

Level/Dealer comment

string

None.

Response Formats

application/json, text/json

Sample:
{
  "LevelID": 1,
  "Name": "sample string 2",
  "ParentID": 3,
  "Contact": "sample string 4",
  "Phone": "sample string 5",
  "Email": "sample string 6",
  "Comment": "sample string 7"
}

application/xml, text/xml

Sample:
<Level xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <LevelID>1</LevelID>
  <Name>sample string 2</Name>
  <ParentID>3</ParentID>
  <Contact>sample string 4</Contact>
  <Phone>sample string 5</Phone>
  <Email>sample string 6</Email>
  <Comment>sample string 7</Comment>
</Level>