POST AgendaApi/Evento
Creamos un evento de Agenda nueva asociada a un documento (Cita o Reparación) o una Nota.
Request Information
URI Parameters
None.
Body Parameters
Dto con la información
CrearEventoDto| Name | Description | Type | Additional information |
|---|---|---|---|
| TipoDocumento | integer |
Required Range: inclusive between 0 and 99 |
|
| IdDocumento | integer |
Required |
|
| IdLocalDocumento | integer |
Required |
|
| Asunto | string |
Required String length: inclusive between 0 and 4000 |
|
| Fecha | date |
Required |
|
| HoraInicio | date |
Required |
|
| HoraFin | date |
Required |
|
| IdTecnico | integer |
Required |
|
| IdCliente | integer |
None. |
|
| IdLocalCliente | integer |
None. |
|
| IdDireccion | integer |
None. |
|
| IdLocalDireccion | integer |
None. |
|
| IdIntTipo | integer |
None. |
|
| IdIntModo | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"TipoDocumento": 1,
"IdDocumento": 2,
"IdLocalDocumento": 3,
"Asunto": "sample string 4",
"Fecha": "2025-12-06T06:40:34.6922078+01:00",
"HoraInicio": "2025-12-06T06:40:34.6922078+01:00",
"HoraFin": "2025-12-06T06:40:34.6922078+01:00",
"IdTecnico": 8,
"IdCliente": 9,
"IdLocalCliente": 10,
"IdDireccion": 11,
"IdLocalDireccion": 12,
"IdIntTipo": 13,
"IdIntModo": 14
}
application/x-www-form-urlencoded
Sample:
Sample not available.
application/xml, text/xml
Sample:
<CrearEventoDto 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.Agenda"> <Asunto z:Id="2">sample string 4</Asunto> <Fecha>2025-12-06T06:40:34.6922078+01:00</Fecha> <HoraFin>2025-12-06T06:40:34.6922078+01:00</HoraFin> <HoraInicio>2025-12-06T06:40:34.6922078+01:00</HoraInicio> <IdCliente>9</IdCliente> <IdDireccion>11</IdDireccion> <IdDocumento>2</IdDocumento> <IdIntModo>14</IdIntModo> <IdIntTipo>13</IdIntTipo> <IdLocalCliente>10</IdLocalCliente> <IdLocalDireccion>12</IdLocalDireccion> <IdLocalDocumento>3</IdLocalDocumento> <IdTecnico>8</IdTecnico> <TipoDocumento>1</TipoDocumento> </CrearEventoDto>
Response Information
Resource Description
Documento asignado
EntidadBase| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| FechaAlta | date |
None. |
|
| FechaModificacion | date |
None. |
|
| IdLocal | integer |
None. |
|
| IdCreador | integer |
None. |
|
| IdModificador | integer |
None. |
|
| TrackingState | TrackingState |
None. |
|
| ModifiedProperties | Collection of string |
None. |
|
| EntityIdentifier | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"FechaAlta": "2025-12-06T06:40:34.7077974+01:00",
"FechaModificacion": "2025-12-06T06:40:34.7077974+01:00",
"IdLocal": 4,
"IdCreador": 5,
"IdModificador": 6,
"TrackingState": 0,
"ModifiedProperties": {
"$id": "2",
"$values": [
"sample string 1",
"sample string 2"
]
},
"EntityIdentifier": "3433854c-d565-4a55-ae0c-e5bf6b709fc4"
}
application/xml, text/xml
Sample:
<EntidadBase 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.Dominio.Models.Entities">
<EntityIdentifier xmlns="http://schemas.datacontract.org/2004/07/TrackableEntities.Client">3433854c-d565-4a55-ae0c-e5bf6b709fc4</EntityIdentifier>
<ModifiedProperties xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" z:Id="2" z:Size="2" xmlns="http://schemas.datacontract.org/2004/07/TrackableEntities.Client">
<d2p1:string z:Id="3">sample string 1</d2p1:string>
<d2p1:string z:Id="4">sample string 2</d2p1:string>
</ModifiedProperties>
<TrackingState xmlns="http://schemas.datacontract.org/2004/07/TrackableEntities.Client">Unchanged</TrackingState>
<FechaAlta>2025-12-06T06:40:34.7077974+01:00</FechaAlta>
<FechaModificacion>2025-12-06T06:40:34.7077974+01:00</FechaModificacion>
<Id>1</Id>
<IdCreador>5</IdCreador>
<IdLocal>4</IdLocal>
<IdModificador>6</IdModificador>
</EntidadBase>