POST api/EditColor
Request Information
URI Parameters
None.
Body Parameters
ColorAddEditRequestName | Description | Type | Additional information |
---|---|---|---|
Code | string |
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", "id": 2, "name": "sample string 3", "description": "sample string 4", "isEnabled": true, "user": "sample string 6", "userId": 7, "validationKey": "sample string 8" }
application/xml, text/xml
Sample:
<ColorAddEditRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request.Color"> <User xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 6</User> <UserId xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">7</UserId> <ValidationKey xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 8</ValidationKey> <Description xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 4</Description> <Id xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">2</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 3</Name> <Code>sample string 1</Code> </ColorAddEditRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResponseName | Description | Type | Additional 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>