POST Beneficio/EditarBeneficio

Request Information

URI Parameters

None.

Body Parameters

BeneficioModel
NameDescriptionTypeAdditional information
Id

integer

None.

Nome

string

None.

RegraDesconto

string

None.

CustoBeneficio

decimal number

None.

BeneficioTipoId

integer

None.

BeneficioTipo

BeneficioTipoModel

None.

Erro

ErrorModel

None.

DataCadastro

date

None.

EmpresasSelected

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Nome": "sample string 2",
  "RegraDesconto": "sample string 3",
  "CustoBeneficio": 4.0,
  "BeneficioTipoId": 5,
  "BeneficioTipo": {
    "Id": 1,
    "Nome": "sample string 2"
  },
  "Erro": {
    "Codigo": 1,
    "Descricao": "sample string 2"
  },
  "DataCadastro": "2025-12-27T15:28:29.1956717-03:00",
  "EmpresasSelected": [
    1,
    2
  ]
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'lurin.meurhonline.domain.model.BeneficioEmpresaModel' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'lurin.meurhonline.domain.model.BeneficioEmpresaModel' contains cycles and cannot be serialized if reference tracking is disabled.

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.