POST api/person/save

Request Information

URI Parameters

None.

Body Parameters

PersonModel
NameDescriptionTypeAdditional information
Id

integer

None.

IdentificationTypeId

integer

None.

IdentificationNumber

integer

None.

Name

string

None.

Gender

string

None.

EMail

string

None.

MobilePhone

string

None.

Request Formats

application/json, text/javascript, text/html, text/json

Sample:
{
  "Id": 1,
  "IdentificationTypeId": 2,
  "IdentificationNumber": 3,
  "Name": "sample string 4",
  "Gender": "sample string 5",
  "EMail": "sample string 6",
  "MobilePhone": "sample string 7"
}

application/xml, text/xml

Sample:
<PersonModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tecnext.SGM.WebAPI.Models">
  <EMail>sample string 6</EMail>
  <Gender>sample string 5</Gender>
  <Id>1</Id>
  <IdentificationNumber>3</IdentificationNumber>
  <IdentificationTypeId>2</IdentificationTypeId>
  <MobilePhone>sample string 7</MobilePhone>
  <Name>sample string 4</Name>
</PersonModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.