POST Treinamento/Sessao

Request Information

URI Parameters

None.

Body Parameters

TreinamentoSessaoModel
NameDescriptionTypeAdditional information
Id

integer

None.

EmpresaId

integer

None.

TreinamentoId

integer

None.

DataSessao

date

None.

Instrutor

string

None.

ListaPresencaNome

string

None.

DataCadastro

date

None.

UsuarioCadastroId

integer

None.

ListaPresencaBase64

string

None.

ListaPresencaExtensao

string

None.

ColaboradorIdsSelected

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "EmpresaId": 2,
  "TreinamentoId": 3,
  "DataSessao": "2026-10-21T20:07:16.3711609-03:00",
  "Instrutor": "sample string 5",
  "ListaPresencaNome": "sample string 6",
  "DataCadastro": "2026-10-21T20:07:16.3721566-03:00",
  "UsuarioCadastroId": 1,
  "ListaPresencaBase64": "sample string 8",
  "ListaPresencaExtensao": "sample string 9",
  "ColaboradorIdsSelected": [
    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 'System.Collections.Generic.List`1[[lurin.meurhonline.domain.model.CargoPlanoUnidadeModel, lurin.meurhonline.domain.model, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' 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 'System.Collections.Generic.List`1[[lurin.meurhonline.domain.model.CargoPlanoUnidadeModel, lurin.meurhonline.domain.model, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' 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 'TreinamentoSessaoModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.