POST api/Rubro

Actualiza o inserta un rubro en el sistema. ADMINISTRADOR

Request Information

URI Parameters

None.

Body Parameters

Rubro que se desea actualizar o insertar.

Rubro
NameDescriptionTypeAdditional information
Id

integer

None.

Nombre

string

None.

Descripcion

string

None.

Activo

boolean

None.

RubroPadre

Rubro

None.

HijoId

integer

None.

Color

string

None.

Final

boolean

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected for property 'RubroPadre' with type 'ClasesMutual.Rubro'. Path ''.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected for property 'RubroPadre' with type 'ClasesMutual.Rubro'. Path ''.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: El gráfico de objetos del tipo 'ClasesMutual.Rubro' contiene ciclos y no se puede serializar si el seguimiento de referencias está deshabilitado.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: El gráfico de objetos del tipo 'ClasesMutual.Rubro' contiene ciclos y no se puede serializar si el seguimiento de referencias está deshabilitado.

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

Response Information

Resource Description

Retorna OK si se realizó correctamente. Sino devuelve Conflicto el mensaje de error.

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>