POST api/EditClient

Request Information

URI Parameters

None.

Body Parameters

ClientAddEditRequest
NameDescriptionTypeAdditional information
Code

string

None.

IdIdentificationType

integer

None.

IdentificationId

string

None.

IdCountry

integer

None.

IdState

integer

None.

IdCity

integer

None.

Validacion

integer

None.

Serial

boolean

None.

IsFixedAsset

boolean

None.

Id

integer

None.

Name

string

None.

Description

string

None.

IsEnabled

boolean

None.

User

string

None.

UserId

integer

None.

ValidationKey

string

None.

Request Formats

application/json, text/json

Sample:
{
  "code": "sample string 1",
  "idIdentificationType": 2,
  "identificationId": "sample string 3",
  "idCountry": 4,
  "idState": 5,
  "idCity": 6,
  "validacion": 7,
  "serial": true,
  "isFixedAsset": true,
  "id": 10,
  "name": "sample string 11",
  "description": "sample string 12",
  "isEnabled": true,
  "user": "sample string 14",
  "userId": 15,
  "validationKey": "sample string 16"
}

application/xml, text/xml

Sample:
<ClientAddEditRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request.Client">
  <User xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 14</User>
  <UserId xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">15</UserId>
  <ValidationKey xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 16</ValidationKey>
  <Description xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 12</Description>
  <Id xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">10</Id>
  <IsEnabled xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">true</IsEnabled>
  <Name xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 11</Name>
  <Code>sample string 1</Code>
  <IdCity>6</IdCity>
  <IdCountry>4</IdCountry>
  <IdIdentificationType>2</IdIdentificationType>
  <IdState>5</IdState>
  <IdentificationId>sample string 3</IdentificationId>
  <IsFixedAsset>true</IsFixedAsset>
  <Serial>true</Serial>
  <Validacion>7</Validacion>
</ClientAddEditRequest>

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

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
ResultCode

integer

None.

ResultMessage

string

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "resultCode": 1,
  "resultMessage": "sample string 2",
  "errorMessage": "sample string 3"
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">
  <ErrorMessage>sample string 3</ErrorMessage>
  <ResultCode>1</ResultCode>
  <ResultMessage>sample string 2</ResultMessage>
</Response>