PUT Treinamento/Catalogo

Request Information

URI Parameters

None.

Body Parameters

TreinamentoModel
NameDescriptionTypeAdditional information
Id

integer

None.

EmpresaId

integer

None.

Nome

string

None.

Descricao

string

None.

TreinamentoCategoriaId

integer

None.

CargaHoraria

string

None.

ExigeRevalidacao

boolean

None.

PeriodicidadeMeses

integer

None.

TreinamentoOrigemEsperadaId

integer

None.

CursoIdLms

string

None.

Ativo

boolean

None.

DataCadastro

date

None.

UsuarioCadastroId

integer

None.

Vinculos

Collection of TreinamentoVinculoModel

None.

CargoUnidadeIdsSelected

Collection of integer

None.

LotacaoUnidadeIdsSelected

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "EmpresaId": 2,
  "Nome": "sample string 3",
  "Descricao": "sample string 4",
  "TreinamentoCategoriaId": 5,
  "CargaHoraria": "sample string 6",
  "ExigeRevalidacao": true,
  "PeriodicidadeMeses": 1,
  "TreinamentoOrigemEsperadaId": 8,
  "CursoIdLms": "sample string 9",
  "Ativo": true,
  "DataCadastro": "2026-10-21T20:07:16.8581684-03:00",
  "UsuarioCadastroId": 1,
  "Vinculos": [
    {
      "Id": 1,
      "TreinamentoId": 2,
      "CargoUnidadeId": 1,
      "LotacaoUnidadeId": 1,
      "Nome": "sample string 3"
    },
    {
      "Id": 1,
      "TreinamentoId": 2,
      "CargoUnidadeId": 1,
      "LotacaoUnidadeId": 1,
      "Nome": "sample string 3"
    }
  ],
  "CargoUnidadeIdsSelected": [
    1,
    2
  ],
  "LotacaoUnidadeIdsSelected": [
    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.CargoPlanoUnidadeModel' 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.CargoPlanoUnidadeModel' 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 'TreinamentoModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.