POST api/Animales/NuevoPesaje

Request Information

URI Parameters

None.

Body Parameters

pesaje
NameDescriptionTypeAdditional information
idEmpresa

globally unique identifier

None.

id

integer

None.

idAnimal

integer

None.

fecha

date

None.

peso

decimal number

None.

idMotivoPesaje

integer

None.

comentarios

string

None.

idUsuario

integer

None.

fechaRegistro

date

None.

eliminado

boolean

None.

idUsuarioElimino

integer

None.

idLevantamiento

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "idEmpresa": "1ee55b50-6d88-4821-bf77-2f504a34bb4e",
  "id": 2,
  "idAnimal": 3,
  "fecha": "2025-01-21T19:52:06.2302585-08:00",
  "peso": 5.1,
  "idMotivoPesaje": 6,
  "comentarios": "sample string 7",
  "idUsuario": 8,
  "fechaRegistro": "2025-01-21T19:52:06.2302585-08:00",
  "eliminado": true,
  "idUsuarioElimino": 1,
  "idLevantamiento": 11
}

application/xml, text/xml

Sample:
<pesaje xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GF.WS">
  <comentarios>sample string 7</comentarios>
  <eliminado>true</eliminado>
  <fecha>2025-01-21T19:52:06.2302585-08:00</fecha>
  <fechaRegistro>2025-01-21T19:52:06.2302585-08:00</fechaRegistro>
  <id>2</id>
  <idAnimal>3</idAnimal>
  <idEmpresa>1ee55b50-6d88-4821-bf77-2f504a34bb4e</idEmpresa>
  <idLevantamiento>11</idLevantamiento>
  <idMotivoPesaje>6</idMotivoPesaje>
  <idUsuario>8</idUsuario>
  <idUsuarioElimino>1</idUsuarioElimino>
  <peso>5.1</peso>
</pesaje>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

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

1ee55b50-6d88-4821-bf77-2f504a34bb4e
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="id"

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

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

2025-01-21T19:52:06.2302585-08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="peso"

5.1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="idMotivoPesaje"

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

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

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

2025-01-21T19:52:06.2302585-08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="eliminado"

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

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

11
--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--