POST api/Observacion

Request Information

URI Parameters

None.

Body Parameters

ViewModelOfObservacion
NameDescriptionTypeAdditional information
Items

Collection of Observacion

None.

Request Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "Delegacion": "sample string 1",
      "CodigoExpediente": 1.0,
      "Fecha": "2026-12-02T17:35:53.1030339+01:00",
      "CodigoUsuario": "sample string 2",
      "Descripcion": "sample string 3",
      "TipoObservacion": 1,
      "VisibleWeb": 1,
      "NombreEmpleado": "sample string 4",
      "ApellidosEmpleado": "sample string 5",
      "HasError": true,
      "Id": 6,
      "Exceptions": [
        {
          "ClassName": "System.Exception",
          "Message": null,
          "Data": null,
          "InnerException": null,
          "HelpURL": "sample string 1",
          "StackTraceString": null,
          "RemoteStackTraceString": null,
          "RemoteStackIndex": 0,
          "ExceptionMethod": null,
          "HResult": 3,
          "Source": "sample string 2",
          "WatsonBuckets": null
        },
        {
          "ClassName": "System.Exception",
          "Message": null,
          "Data": null,
          "InnerException": null,
          "HelpURL": "sample string 1",
          "StackTraceString": null,
          "RemoteStackTraceString": null,
          "RemoteStackIndex": 0,
          "ExceptionMethod": null,
          "HResult": 3,
          "Source": "sample string 2",
          "WatsonBuckets": null
        }
      ],
      "RowState": 0
    },
    {
      "Delegacion": "sample string 1",
      "CodigoExpediente": 1.0,
      "Fecha": "2026-12-02T17:35:53.1030339+01:00",
      "CodigoUsuario": "sample string 2",
      "Descripcion": "sample string 3",
      "TipoObservacion": 1,
      "VisibleWeb": 1,
      "NombreEmpleado": "sample string 4",
      "ApellidosEmpleado": "sample string 5",
      "HasError": true,
      "Id": 6,
      "Exceptions": [
        {
          "ClassName": "System.Exception",
          "Message": null,
          "Data": null,
          "InnerException": null,
          "HelpURL": "sample string 1",
          "StackTraceString": null,
          "RemoteStackTraceString": null,
          "RemoteStackIndex": 0,
          "ExceptionMethod": null,
          "HResult": 3,
          "Source": "sample string 2",
          "WatsonBuckets": null
        },
        {
          "ClassName": "System.Exception",
          "Message": null,
          "Data": null,
          "InnerException": null,
          "HelpURL": "sample string 1",
          "StackTraceString": null,
          "RemoteStackTraceString": null,
          "RemoteStackIndex": 0,
          "ExceptionMethod": null,
          "HResult": 3,
          "Source": "sample string 2",
          "WatsonBuckets": null
        }
      ],
      "RowState": 0
    }
  ]
}

application/xml, text/xml

Sample:
<ViewModelOfObservacionPwfDOY5I xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DiagonalGest.Web.Common.Models.Base">
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/DiagonalGest.Web.Common.Models.Tramitaciones">
    <d2p1:Observacion>
      <Exceptions xmlns:d4p1="http://schemas.datacontract.org/2004/07/System">
        <d4p1:Exception>
          <ClassName xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:string" xmlns="">System.Exception</ClassName>
          <Message i:nil="true" xmlns="" />
          <Data i:nil="true" xmlns="" />
          <InnerException i:nil="true" xmlns="" />
          <HelpURL xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:string" xmlns="">sample string 1</HelpURL>
          <StackTraceString i:nil="true" xmlns="" />
          <RemoteStackTraceString i:nil="true" xmlns="" />
          <RemoteStackIndex xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:int" xmlns="">0</RemoteStackIndex>
          <ExceptionMethod i:nil="true" xmlns="" />
          <HResult xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:int" xmlns="">3</HResult>
          <Source xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:string" xmlns="">sample string 2</Source>
          <WatsonBuckets i:nil="true" xmlns="" />
        </d4p1:Exception>
        <d4p1:Exception>
          <ClassName xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:string" xmlns="">System.Exception</ClassName>
          <Message i:nil="true" xmlns="" />
          <Data i:nil="true" xmlns="" />
          <InnerException i:nil="true" xmlns="" />
          <HelpURL xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:string" xmlns="">sample string 1</HelpURL>
          <StackTraceString i:nil="true" xmlns="" />
          <RemoteStackTraceString i:nil="true" xmlns="" />
          <RemoteStackIndex xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:int" xmlns="">0</RemoteStackIndex>
          <ExceptionMethod i:nil="true" xmlns="" />
          <HResult xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:int" xmlns="">3</HResult>
          <Source xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:string" xmlns="">sample string 2</Source>
          <WatsonBuckets i:nil="true" xmlns="" />
        </d4p1:Exception>
      </Exceptions>
      <Id>6</Id>
      <RowState>FromDB</RowState>
      <d2p1:ApellidosEmpleado>sample string 5</d2p1:ApellidosEmpleado>
      <d2p1:CodigoExpediente>1</d2p1:CodigoExpediente>
      <d2p1:CodigoUsuario>sample string 2</d2p1:CodigoUsuario>
      <d2p1:Delegacion>sample string 1</d2p1:Delegacion>
      <d2p1:Descripcion>sample string 3</d2p1:Descripcion>
      <d2p1:Fecha>2026-12-02T17:35:53.1030339+01:00</d2p1:Fecha>
      <d2p1:NombreEmpleado>sample string 4</d2p1:NombreEmpleado>
      <d2p1:TipoObservacion>1</d2p1:TipoObservacion>
      <d2p1:VisibleWeb>1</d2p1:VisibleWeb>
    </d2p1:Observacion>
    <d2p1:Observacion>
      <Exceptions xmlns:d4p1="http://schemas.datacontract.org/2004/07/System">
        <d4p1:Exception>
          <ClassName xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:string" xmlns="">System.Exception</ClassName>
          <Message i:nil="true" xmlns="" />
          <Data i:nil="true" xmlns="" />
          <InnerException i:nil="true" xmlns="" />
          <HelpURL xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:string" xmlns="">sample string 1</HelpURL>
          <StackTraceString i:nil="true" xmlns="" />
          <RemoteStackTraceString i:nil="true" xmlns="" />
          <RemoteStackIndex xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:int" xmlns="">0</RemoteStackIndex>
          <ExceptionMethod i:nil="true" xmlns="" />
          <HResult xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:int" xmlns="">3</HResult>
          <Source xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:string" xmlns="">sample string 2</Source>
          <WatsonBuckets i:nil="true" xmlns="" />
        </d4p1:Exception>
        <d4p1:Exception>
          <ClassName xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:string" xmlns="">System.Exception</ClassName>
          <Message i:nil="true" xmlns="" />
          <Data i:nil="true" xmlns="" />
          <InnerException i:nil="true" xmlns="" />
          <HelpURL xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:string" xmlns="">sample string 1</HelpURL>
          <StackTraceString i:nil="true" xmlns="" />
          <RemoteStackTraceString i:nil="true" xmlns="" />
          <RemoteStackIndex xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:int" xmlns="">0</RemoteStackIndex>
          <ExceptionMethod i:nil="true" xmlns="" />
          <HResult xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:int" xmlns="">3</HResult>
          <Source xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:string" xmlns="">sample string 2</Source>
          <WatsonBuckets i:nil="true" xmlns="" />
        </d4p1:Exception>
      </Exceptions>
      <Id>6</Id>
      <RowState>FromDB</RowState>
      <d2p1:ApellidosEmpleado>sample string 5</d2p1:ApellidosEmpleado>
      <d2p1:CodigoExpediente>1</d2p1:CodigoExpediente>
      <d2p1:CodigoUsuario>sample string 2</d2p1:CodigoUsuario>
      <d2p1:Delegacion>sample string 1</d2p1:Delegacion>
      <d2p1:Descripcion>sample string 3</d2p1:Descripcion>
      <d2p1:Fecha>2026-12-02T17:35:53.1030339+01:00</d2p1:Fecha>
      <d2p1:NombreEmpleado>sample string 4</d2p1:NombreEmpleado>
      <d2p1:TipoObservacion>1</d2p1:TipoObservacion>
      <d2p1:VisibleWeb>1</d2p1:VisibleWeb>
    </d2p1:Observacion>
  </Items>
</ViewModelOfObservacionPwfDOY5I>

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 'ViewModel`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.