PUT api/v1/postos/comentarios/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Requires Authorization!

Roles: postos

Body Parameters

PostoComentarioDto
NameDescriptionTypeAdditional information
Id

integer

None.

Comentario

string

None.

UserId

integer

None.

Posto

PostoDto

None.

PostoId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Comentario": "sample string 2",
  "UserId": 3,
  "Posto": {
    "Id": 1,
    "Aprovado": true,
    "Ativo": true,
    "Nome": "sample string 4",
    "RazaoSocial": "sample string 5",
    "CNPJ": "sample string 6",
    "Telefone": "sample string 7",
    "Cidade": "sample string 8",
    "Estado": "sample string 9",
    "Latitude": "sample string 10",
    "Longitude": "sample string 11",
    "DtAtualizacaoValores": "2025-04-29T12:06:24.2445419-03:00",
    "ValorGasolina": 1.0,
    "ValorEtanol": 1.0,
    "ValorDieselS10": 1.0,
    "ValorDieselS500": 1.0,
    "ValorArla": 12.0,
    "Conveniencia": true,
    "Farmacia": true,
    "Horas24": true,
    "WiFi": true,
    "RecargaEletrica": true,
    "CaixaEletronico": true,
    "Banheiros": true,
    "Chuveiro": true,
    "PerNoite": true,
    "Hotel": true,
    "Borracheiro": true,
    "OficinaMecanica": true,
    "LavagemVeiculo": true,
    "AutoPecas": true,
    "OutrasCaracteristicas": "sample string 27",
    "Comentarios": [],
    "Avaliacoes": [
      {
        "Id": 1,
        "UserId": 2,
        "Nota": 3,
        "PostoId": 4
      },
      {
        "Id": 1,
        "UserId": 2,
        "Nota": 3,
        "PostoId": 4
      }
    ],
    "NomeSolicitante": "sample string 28",
    "CargoSolicitante": "sample string 29",
    "DataAnalise": "2025-04-29T12:06:24.2445419-03:00",
    "MotivoSolicitacao": "sample string 30",
    "Endereco": "sample string 31",
    "Image": "QEA="
  },
  "PostoId": 4
}

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[[Lar.SicopPlus.Core.Entities.Sicop.Dto.Postos.PostoAvaliacaoDto, Lar.SicopPlus.Core, Version=2025.4.22.1600, 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[[Lar.SicopPlus.Core.Entities.Sicop.Dto.Postos.PostoAvaliacaoDto, Lar.SicopPlus.Core, Version=2025.4.22.1600, 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 'PostoComentarioDto'.

Response Information

Resource Description

ResultOfPostoComentarioDto
NameDescriptionTypeAdditional information
Data

PostoComentarioDto

None.

Errors

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "Id": 1,
    "Comentario": "sample string 2",
    "UserId": 3,
    "Posto": {
      "Id": 1,
      "Aprovado": true,
      "Ativo": true,
      "Nome": "sample string 4",
      "RazaoSocial": "sample string 5",
      "CNPJ": "sample string 6",
      "Telefone": "sample string 7",
      "Cidade": "sample string 8",
      "Estado": "sample string 9",
      "Latitude": "sample string 10",
      "Longitude": "sample string 11",
      "DtAtualizacaoValores": "2025-04-29T12:06:24.2914189-03:00",
      "ValorGasolina": 1.0,
      "ValorEtanol": 1.0,
      "ValorDieselS10": 1.0,
      "ValorDieselS500": 1.0,
      "ValorArla": 12.0,
      "Conveniencia": true,
      "Farmacia": true,
      "Horas24": true,
      "WiFi": true,
      "RecargaEletrica": true,
      "CaixaEletronico": true,
      "Banheiros": true,
      "Chuveiro": true,
      "PerNoite": true,
      "Hotel": true,
      "Borracheiro": true,
      "OficinaMecanica": true,
      "LavagemVeiculo": true,
      "AutoPecas": true,
      "OutrasCaracteristicas": "sample string 27",
      "Comentarios": [],
      "Avaliacoes": [
        {
          "Id": 1,
          "UserId": 2,
          "Nota": 3,
          "PostoId": 4
        },
        {
          "Id": 1,
          "UserId": 2,
          "Nota": 3,
          "PostoId": 4
        }
      ],
      "NomeSolicitante": "sample string 28",
      "CargoSolicitante": "sample string 29",
      "DataAnalise": "2025-04-29T12:06:24.2914189-03:00",
      "MotivoSolicitacao": "sample string 30",
      "Endereco": "sample string 31",
      "Image": "QEA="
    },
    "PostoId": 4
  },
  "Errors": [
    "sample string 1",
    "sample string 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 'Lar.SicopPlus.Core.Entities.Sicop.Dto.Postos.PostoDto' 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 'Lar.SicopPlus.Core.Entities.Sicop.Dto.Postos.PostoDto' contains cycles and cannot be serialized if reference tracking is disabled.