PUT PruebaApi/Prueba
Modificamos un elemento de la tabla Prueba
Request Information
URI Parameters
None.
Body Parameters
Elemento a modificar
PruebaDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Fecha | date |
None. |
|
| FechaHora | date |
None. |
|
| Hora | date |
None. |
|
| Texto1 | string |
None. |
|
| Texto2 | string |
None. |
|
| EMail1 | string |
None. |
|
| EMail2 | string |
None. |
|
| Telefono1 | string |
None. |
|
| Telefono2 | string |
None. |
|
| Precio1 | decimal number |
None. |
|
| Precio2 | decimal number |
None. |
|
| Web | string |
None. |
|
| Entero | integer |
None. |
|
| Tasa | decimal number |
None. |
|
| EsBooleano | boolean |
None. |
|
| Imagen | Collection of byte |
None. |
|
| Cliente | TipoBaseDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Fecha": "2025-12-06T06:46:26.1696802+01:00",
"FechaHora": "2025-12-06T06:46:26.1696802+01:00",
"Hora": "2025-12-06T06:46:26.1696802+01:00",
"Texto1": "sample string 5",
"Texto2": "sample string 6",
"EMail1": "sample string 7",
"EMail2": "sample string 8",
"Telefono1": "sample string 9",
"Telefono2": "sample string 10",
"Precio1": 11.0,
"Precio2": 12.0,
"Web": "sample string 13",
"Entero": 14,
"Tasa": 15.0,
"EsBooleano": true,
"Imagen": "QEA=",
"Cliente": {
"$id": "2",
"Id": 1,
"IdLocal": 2,
"Nombre": "sample string 3",
"Orden": 4
}
}
application/x-www-form-urlencoded
Sample:
Sample not available.
application/xml, text/xml
Sample:
<PruebaDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://schemas.datacontract.org/2004/07/Sofycom.Sofygest.Service.Application.Models.Dtos.Prueba">
<Cliente xmlns:d2p1="http://schemas.datacontract.org/2004/07/Sofycom.Sofygest.Service.Application.Models.Dtos.Comunes" z:Id="2">
<d2p1:Id>1</d2p1:Id>
<d2p1:IdLocal>2</d2p1:IdLocal>
<d2p1:Nombre z:Id="3">sample string 3</d2p1:Nombre>
<d2p1:Orden>4</d2p1:Orden>
</Cliente>
<EMail1 z:Id="4">sample string 7</EMail1>
<EMail2 z:Id="5">sample string 8</EMail2>
<Entero>14</Entero>
<EsBooleano>true</EsBooleano>
<Fecha>2025-12-06T06:46:26.1696802+01:00</Fecha>
<FechaHora>2025-12-06T06:46:26.1696802+01:00</FechaHora>
<Hora>2025-12-06T06:46:26.1696802+01:00</Hora>
<Id>1</Id>
<Imagen z:Id="6">QEA=</Imagen>
<Precio1>11</Precio1>
<Precio2>12</Precio2>
<Tasa>15</Tasa>
<Telefono1 z:Id="7">sample string 9</Telefono1>
<Telefono2 z:Id="8">sample string 10</Telefono2>
<Texto1 z:Id="9">sample string 5</Texto1>
<Texto2 z:Id="10">sample string 6</Texto2>
<Web z:Id="11">sample string 13</Web>
</PruebaDto>
Response Information
Resource Description
PruebaDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Fecha | date |
None. |
|
| FechaHora | date |
None. |
|
| Hora | date |
None. |
|
| Texto1 | string |
None. |
|
| Texto2 | string |
None. |
|
| EMail1 | string |
None. |
|
| EMail2 | string |
None. |
|
| Telefono1 | string |
None. |
|
| Telefono2 | string |
None. |
|
| Precio1 | decimal number |
None. |
|
| Precio2 | decimal number |
None. |
|
| Web | string |
None. |
|
| Entero | integer |
None. |
|
| Tasa | decimal number |
None. |
|
| EsBooleano | boolean |
None. |
|
| Imagen | Collection of byte |
None. |
|
| Cliente | TipoBaseDto |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Fecha": "2025-12-06T06:46:26.1696802+01:00",
"FechaHora": "2025-12-06T06:46:26.1696802+01:00",
"Hora": "2025-12-06T06:46:26.1696802+01:00",
"Texto1": "sample string 5",
"Texto2": "sample string 6",
"EMail1": "sample string 7",
"EMail2": "sample string 8",
"Telefono1": "sample string 9",
"Telefono2": "sample string 10",
"Precio1": 11.0,
"Precio2": 12.0,
"Web": "sample string 13",
"Entero": 14,
"Tasa": 15.0,
"EsBooleano": true,
"Imagen": "QEA=",
"Cliente": {
"$id": "2",
"Id": 1,
"IdLocal": 2,
"Nombre": "sample string 3",
"Orden": 4
}
}
application/xml, text/xml
Sample:
<PruebaDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://schemas.datacontract.org/2004/07/Sofycom.Sofygest.Service.Application.Models.Dtos.Prueba">
<Cliente xmlns:d2p1="http://schemas.datacontract.org/2004/07/Sofycom.Sofygest.Service.Application.Models.Dtos.Comunes" z:Id="2">
<d2p1:Id>1</d2p1:Id>
<d2p1:IdLocal>2</d2p1:IdLocal>
<d2p1:Nombre z:Id="3">sample string 3</d2p1:Nombre>
<d2p1:Orden>4</d2p1:Orden>
</Cliente>
<EMail1 z:Id="4">sample string 7</EMail1>
<EMail2 z:Id="5">sample string 8</EMail2>
<Entero>14</Entero>
<EsBooleano>true</EsBooleano>
<Fecha>2025-12-06T06:46:26.1696802+01:00</Fecha>
<FechaHora>2025-12-06T06:46:26.1696802+01:00</FechaHora>
<Hora>2025-12-06T06:46:26.1696802+01:00</Hora>
<Id>1</Id>
<Imagen z:Id="6">QEA=</Imagen>
<Precio1>11</Precio1>
<Precio2>12</Precio2>
<Tasa>15</Tasa>
<Telefono1 z:Id="7">sample string 9</Telefono1>
<Telefono2 z:Id="8">sample string 10</Telefono2>
<Texto1 z:Id="9">sample string 5</Texto1>
<Texto2 z:Id="10">sample string 6</Texto2>
<Web z:Id="11">sample string 13</Web>
</PruebaDto>