POST api/Application

Request Information

URI Parameters

None.

Body Parameters

ApplicationVM
NameDescriptionTypeAdditional information
AppID

integer

None.

AppName

string

None.

AppDesc

string

None.

AppTypeId

integer

None.

StatusID

integer

None.

UserId

integer

None.

Accesstoken

globally unique identifier

None.

Status

StatusVM

None.

CreatedOn

date

None.

ObjectState

State

None.

Request Formats

application/json, text/json

Sample:
{
  "AppID": 1,
  "AppName": "sample string 2",
  "AppDesc": "sample string 3",
  "AppTypeId": 4,
  "StatusID": 5,
  "UserId": 6,
  "Accesstoken": "b9f6756f-c9c7-44c3-a25a-6ba1b9fd7b1c",
  "Status": {
    "StatusId": 1,
    "Status": "sample string 2",
    "Sort": 3,
    "ObjectState": 0
  },
  "CreatedOn": "2018-11-16T19:55:42.2717802+00:00",
  "ObjectState": 0
}

application/xml, text/xml

Sample:
<ApplicationVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InstantAppAPI.ViewModels">
  <Accesstoken>b9f6756f-c9c7-44c3-a25a-6ba1b9fd7b1c</Accesstoken>
  <AppDesc>sample string 3</AppDesc>
  <AppID>1</AppID>
  <AppName>sample string 2</AppName>
  <AppTypeId>4</AppTypeId>
  <CreatedOn>2018-11-16T19:55:42.2717802+00:00</CreatedOn>
  <ObjectState>Unchanged</ObjectState>
  <Status>
    <ObjectState>Unchanged</ObjectState>
    <Sort>3</Sort>
    <Status>sample string 2</Status>
    <StatusId>1</StatusId>
  </Status>
  <StatusID>5</StatusID>
  <UserId>6</UserId>
</ApplicationVM>

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

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.