POST api/Account/SetClient
Request Information
URI Parameters
None.
Body Parameters
RequestSetClientName | Description | Type | Additional information |
---|---|---|---|
Name | string |
Required Matching regular expression pattern: ^[a-z A-ZáÁéÉíÍóÓúÚÑñ]+$ String length: inclusive between 0 and 50 |
|
LastName | string |
Required Matching regular expression pattern: ^[a-z A-ZáÁéÉíÍóÓúÚÑñ]+$ String length: inclusive between 0 and 50 |
|
DocumentType | integer |
Required Range: inclusive between 0 and 99 |
|
DocumentID | string |
Required String length: inclusive between 0 and 10 |
|
string |
Required |
||
Cellphone | string |
Required Matching regular expression pattern: ^(\d{10})$ |
Request Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "LastName": "sample string 2", "DocumentType": 3, "DocumentID": "sample string 4", "Email": "sample string 5", "Cellphone": "sample string 6" }
application/xml, text/xml
Sample:
<RequestSetClient xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ECD.WebAPIECD.Models.AppMovil"> <Cellphone>sample string 6</Cellphone> <DocumentID>sample string 4</DocumentID> <DocumentType>3</DocumentType> <Email>sample string 5</Email> <LastName>sample string 2</LastName> <Name>sample string 1</Name> </RequestSetClient>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
JsonResultName | Description | Type | Additional information |
---|---|---|---|
ContentEncoding | Encoding |
None. |
|
ContentType | string |
None. |
|
Data | Object |
None. |
|
JsonRequestBehavior | JsonRequestBehavior |
None. |
|
MaxJsonLength | integer |
None. |
|
RecursionLimit | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "ContentEncoding": null, "ContentType": "sample string 1", "Data": {}, "JsonRequestBehavior": 0, "MaxJsonLength": 1, "RecursionLimit": 1 }
application/xml, text/xml
Sample:
<JsonResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc"> <ContentEncoding xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Text" i:nil="true" /> <ContentType>sample string 1</ContentType> <Data /> <JsonRequestBehavior>AllowGet</JsonRequestBehavior> <MaxJsonLength>1</MaxJsonLength> <RecursionLimit>1</RecursionLimit> </JsonResult>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.