DELETE api/v1/suinocultura/DeletarMedicamentoLancado

Deletar medicamento lançado

Request Information

URI Parameters

None.

Requires Authorization!

Roles:

Body Parameters

MedicamentoLancado
NameDescriptionTypeAdditional information
Id

integer

None.

Granja

integer

None.

Lote

integer

None.

Medicamento

MedicamentoTratamento

None.

QtdeSuinosTratados

integer

None.

MotivoTratamento

MotivoTratamento

None.

MotivoTratamento2

MotivoTratamento

None.

MotivoTratamento3

MotivoTratamento

None.

MotivoTratamento4

MotivoTratamento

None.

MotivoTratamento5

MotivoTratamento

None.

DtInicial

date

None.

DtFinal

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Granja": 2,
  "Lote": 3,
  "Medicamento": {
    "CodMedicamento": 1,
    "Medicamento": "sample string 2",
    "Carencia": 3
  },
  "QtdeSuinosTratados": 4,
  "MotivoTratamento": {
    "CodMotivoTratamento": 1,
    "MotivoTrantamento": "sample string 2"
  },
  "MotivoTratamento2": {
    "CodMotivoTratamento": 1,
    "MotivoTrantamento": "sample string 2"
  },
  "MotivoTratamento3": {
    "CodMotivoTratamento": 1,
    "MotivoTrantamento": "sample string 2"
  },
  "MotivoTratamento4": {
    "CodMotivoTratamento": 1,
    "MotivoTrantamento": "sample string 2"
  },
  "MotivoTratamento5": {
    "CodMotivoTratamento": 1,
    "MotivoTrantamento": "sample string 2"
  },
  "DtInicial": "2025-04-29T12:34:56.9433591-03:00",
  "DtFinal": "2025-04-29T12:34:56.9433591-03:00"
}

application/xml, text/xml

Sample:
<MedicamentoLancado xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Lar.SicopPlus.Core.Entities.Data">
  <DtFinal>2025-04-29T12:34:56.9433591-03:00</DtFinal>
  <DtInicial>2025-04-29T12:34:56.9433591-03:00</DtInicial>
  <Granja>2</Granja>
  <Id>1</Id>
  <Lote>3</Lote>
  <Medicamento xmlns:d2p1="http://schemas.datacontract.org/2004/07/Lar.Sicop.Entities.Sicop.Suinocultura">
    <d2p1:Carencia>3</d2p1:Carencia>
    <d2p1:CodMedicamento>1</d2p1:CodMedicamento>
    <d2p1:Medicamento>sample string 2</d2p1:Medicamento>
  </Medicamento>
  <MotivoTratamento xmlns:d2p1="http://schemas.datacontract.org/2004/07/Lar.Sicop.Entities.Sicop.Suinocultura">
    <d2p1:CodMotivoTratamento>1</d2p1:CodMotivoTratamento>
    <d2p1:MotivoTrantamento>sample string 2</d2p1:MotivoTrantamento>
  </MotivoTratamento>
  <MotivoTratamento2 xmlns:d2p1="http://schemas.datacontract.org/2004/07/Lar.Sicop.Entities.Sicop.Suinocultura">
    <d2p1:CodMotivoTratamento>1</d2p1:CodMotivoTratamento>
    <d2p1:MotivoTrantamento>sample string 2</d2p1:MotivoTrantamento>
  </MotivoTratamento2>
  <MotivoTratamento3 xmlns:d2p1="http://schemas.datacontract.org/2004/07/Lar.Sicop.Entities.Sicop.Suinocultura">
    <d2p1:CodMotivoTratamento>1</d2p1:CodMotivoTratamento>
    <d2p1:MotivoTrantamento>sample string 2</d2p1:MotivoTrantamento>
  </MotivoTratamento3>
  <MotivoTratamento4 xmlns:d2p1="http://schemas.datacontract.org/2004/07/Lar.Sicop.Entities.Sicop.Suinocultura">
    <d2p1:CodMotivoTratamento>1</d2p1:CodMotivoTratamento>
    <d2p1:MotivoTrantamento>sample string 2</d2p1:MotivoTrantamento>
  </MotivoTratamento4>
  <MotivoTratamento5 xmlns:d2p1="http://schemas.datacontract.org/2004/07/Lar.Sicop.Entities.Sicop.Suinocultura">
    <d2p1:CodMotivoTratamento>1</d2p1:CodMotivoTratamento>
    <d2p1:MotivoTrantamento>sample string 2</d2p1:MotivoTrantamento>
  </MotivoTratamento5>
  <QtdeSuinosTratados>4</QtdeSuinosTratados>
</MedicamentoLancado>

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

Response Information

Resource Description

ResultOfBoolean
NameDescriptionTypeAdditional information
Data

boolean

None.

Errors

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": true,
  "Errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<ResultOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Lar.Entities.Ep">
  <Data>true</Data>
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
</ResultOfboolean>