POST api/Salud/NuevoEventoSalud

Request Information

URI Parameters

None.

Body Parameters

eventosSalud
NameDescriptionTypeAdditional information
idEmpresa

globally unique identifier

None.

idEvento

integer

None.

fecha

date

None.

idAnimal

integer

None.

idEnfermedad

integer

None.

idMedicamento

integer

None.

idTratamiento

integer

None.

observaciones

string

None.

idUsuarioRegistro

integer

None.

terminado

boolean

None.

eliminado

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "idEmpresa": "d512775a-91dc-453d-9658-01f6c95c39a2",
  "idEvento": 2,
  "fecha": "2025-01-21T22:35:10.2532102-08:00",
  "idAnimal": 4,
  "idEnfermedad": 5,
  "idMedicamento": 6,
  "idTratamiento": 1,
  "observaciones": "sample string 7",
  "idUsuarioRegistro": 8,
  "terminado": true,
  "eliminado": true
}

application/xml, text/xml

Sample:
<eventosSalud xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GF.WS">
  <eliminado>true</eliminado>
  <fecha>2025-01-21T22:35:10.2532102-08:00</fecha>
  <idAnimal>4</idAnimal>
  <idEmpresa>d512775a-91dc-453d-9658-01f6c95c39a2</idEmpresa>
  <idEnfermedad>5</idEnfermedad>
  <idEvento>2</idEvento>
  <idMedicamento>6</idMedicamento>
  <idTratamiento>1</idTratamiento>
  <idUsuarioRegistro>8</idUsuarioRegistro>
  <observaciones>sample string 7</observaciones>
  <terminado>true</terminado>
</eventosSalud>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="idEmpresa"

d512775a-91dc-453d-9658-01f6c95c39a2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="idEvento"

2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="fecha"

2025-01-21T22:35:10.2532102-08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="idAnimal"

4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="idEnfermedad"

5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="idMedicamento"

6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="idTratamiento"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="observaciones"

sample string 7
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="idUsuarioRegistro"

8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="terminado"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="eliminado"

True
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name=""

System.Object
--MultipartDataMediaFormatterBoundary1q2w3e--