POST api/{lang}/Contact/Post
Crea en la base el contacto recibido.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| lang | string |
None. |
Body Parameters
ViewModel del contacto a crear
ContactViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | string |
None. |
|
| FullName | string |
Required |
|
| PhoneNumber | string |
None. |
|
| CellphoneNumber | string |
None. |
|
| string |
None. |
||
| Role | string |
Required |
|
| Comments | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "sample string 1",
"FullName": "sample string 2",
"PhoneNumber": "sample string 3",
"CellphoneNumber": "sample string 4",
"Email": "sample string 5",
"Role": "sample string 6",
"Comments": "sample string 7"
}
application/xml, text/xml
Sample:
<ContactViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tempo.Core.WebAPI.ViewModels"> <CellphoneNumber>sample string 4</CellphoneNumber> <Comments>sample string 7</Comments> <Email>sample string 5</Email> <FullName>sample string 2</FullName> <Id>sample string 1</Id> <PhoneNumber>sample string 3</PhoneNumber> <Role>sample string 6</Role> </ContactViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
De ser exitosa la creación retorna 200. De lo contrario retorna 400
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.