POST api/client

Request Information

URI Parameters

None.

Body Parameters

Client
NameDescriptionTypeAdditional information
ClientId

integer

None.

Account

Account

None.

ClientName

string

None.

ClientActive

integer

None.

ClientActiveDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ClientId": 1,
  "Account": {
    "AccountId": 1,
    "AccountName": "sample string 2",
    "AccountActive": 3,
    "AccountActiveDate": "2020-04-03T03:51:41.3683892-05:00"
  },
  "ClientName": "sample string 2",
  "ClientActive": 3,
  "ClientActiveDate": "2020-04-03T03:51:41.3683892-05:00"
}

text/html

Sample:
{"ClientId":1,"Account":{"AccountId":1,"AccountName":"sample string 2","AccountActive":3,"AccountActiveDate":"2020-04-03T03:51:41.3683892-05:00"},"ClientName":"sample string 2","ClientActive":3,"ClientActiveDate":"2020-04-03T03:51:41.3683892-05:00"}

application/xml, text/xml

Sample:
<Client xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FeedFlowAPI.Models.Out">
  <Account xmlns:d2p1="http://schemas.datacontract.org/2004/07/FeedFlowAPI.Models.Permissions">
    <d2p1:AccountActive>3</d2p1:AccountActive>
    <d2p1:AccountActiveDate>2020-04-03T03:51:41.3683892-05:00</d2p1:AccountActiveDate>
    <d2p1:AccountId>1</d2p1:AccountId>
    <d2p1:AccountName>sample string 2</d2p1:AccountName>
  </Account>
  <ClientActive>3</ClientActive>
  <ClientActiveDate>2020-04-03T03:51:41.3683892-05:00</ClientActiveDate>
  <ClientId>1</ClientId>
  <ClientName>sample string 2</ClientName>
</Client>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.