POST api/Rubro
Request Information
URI Parameters
None.
Body Parameters
RubroRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| clave | string |
None. |
|
| descripcion | string |
None. |
|
| activo | boolean |
None. |
|
| registraId | integer |
None. |
|
| afectaUtilidad | boolean |
None. |
|
| gastoCorporativo | boolean |
None. |
|
| cargo | boolean |
None. |
|
| factor | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"clave": "sample string 1",
"descripcion": "sample string 2",
"activo": true,
"registraId": 4,
"afectaUtilidad": true,
"gastoCorporativo": true,
"cargo": true,
"factor": 8
}
application/xml, text/xml
Sample:
<RubroRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ST_Catalogos.Models"> <activo>true</activo> <afectaUtilidad>true</afectaUtilidad> <cargo>true</cargo> <clave>sample string 1</clave> <descripcion>sample string 2</descripcion> <factor>8</factor> <gastoCorporativo>true</gastoCorporativo> <registraId>4</registraId> </RubroRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
RubroResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| responseCode | integer |
None. |
|
| responseMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"responseCode": 1,
"responseMessage": "sample string 2"
}
application/xml, text/xml
Sample:
<RubroResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ST_Catalogos.Models"> <responseCode>1</responseCode> <responseMessage>sample string 2</responseMessage> </RubroResponse>