PUT api/Productos/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

PRODUCTOS
NameDescriptionTypeAdditional information
ProductoId

decimal number

None.

CategoriaId

string

None.

Descripcion

string

None.

Nombre

string

None.

Imagen

Collection of byte

None.

Codigo

string

None.

Estado

string

None.

DETALLEFACTURA

Collection of DETALLEFACTURA

None.

DETALLEORDEN

Collection of DETALLEORDEN

None.

LISTAPRECIOS

Collection of LISTAPRECIOS

None.

Request Formats

application/json, text/json

Sample:
{
  "ProductoId": 1.0,
  "CategoriaId": "sample string 2",
  "Descripcion": "sample string 3",
  "Nombre": "sample string 4",
  "Imagen": "QEA=",
  "Codigo": "sample string 5",
  "Estado": "sample string 6",
  "DETALLEFACTURA": [
    {
      "$id": "2",
      "DetalleId": 1.0,
      "FacturaId": 2.0,
      "ProductoId": 3.0,
      "ValorUnitario": 4.0,
      "Cantidad": 5,
      "ValorTotal": 1.0,
      "Impuesto": 1.0,
      "Estado": "sample string 6",
      "FACTURAS": {
        "$id": "3",
        "FacturaId": 1.0,
        "NumeroFactura": "sample string 2",
        "ClienteId": "sample string 3",
        "Fecha": "2025-12-11T08:13:47.5391562-05:00",
        "Subtotal": 5.0,
        "Total": 6.0,
        "Estado": "sample string 7",
        "MedioPago": "sample string 8",
        "CLIENTES": {
          "$id": "4",
          "ClienteId": "sample string 1",
          "Telefono": "sample string 2",
          "Direccion": "sample string 3",
          "Correo": "sample string 4",
          "PERSONAS": {
            "$id": "5",
            "PersonaId": "sample string 1",
            "TipoDocumentoId": "sample string 2",
            "NumeroDocumento": "sample string 3",
            "Primernombre": "sample string 4",
            "SegundoNombre": "sample string 5",
            "PrimerApellido": "sample string 6",
            "SegundoApellido": "sample string 7",
            "NombreCompleto": "sample string 8",
            "Telefono": "sample string 9",
            "Direccion": "sample string 10",
            "FechaNacimiento": "2025-12-11T08:13:47.5391562-05:00",
            "TipoPersona": "sample string 11",
            "DigitoChequeo": "sample string 12",
            "CLIENTES": {
              "$ref": "4"
            },
            "SEUSUARIOS": {
              "$id": "6",
              "UsuarioId": "sample string 1",
              "Login": "sample string 2",
              "CorreoElectronico": "sample string 3",
              "Clave": "sample string 4",
              "Inicializa": true,
              "Estado": "sample string 6",
              "FechaCreacion": "2025-12-11T08:13:47.5391562-05:00",
              "UsuarioRegistro": "sample string 8",
              "CodigoRol": "sample string 9",
              "PERSONAS": {
                "$ref": "5"
              }
            }
          },
          "FACTURAS": [
            {
              "$ref": "3"
            },
            {
              "$ref": "3"
            }
          ]
        },
        "DETALLEFACTURA": [
          {
            "$ref": "2"
          },
          {
            "$ref": "2"
          }
        ]
      },
      "PRODUCTOS": {
        "$ref": "1"
      }
    },
    {
      "$ref": "2"
    }
  ],
  "DETALLEORDEN": [
    {
      "$id": "7",
      "DetalleId": 1.0,
      "OrdenId": 2.0,
      "ProductoId": 3.0,
      "Cantidad": 4,
      "Observaciones": "sample string 5",
      "ORDEN": {
        "$id": "8",
        "OrdenId": 1.0,
        "MesaId": 2.0,
        "Fecha": "2025-12-11T08:13:47.5391562-05:00",
        "MeseroId": 4.0,
        "Estado": "sample string 5",
        "DETALLEORDEN": [
          {
            "$ref": "7"
          },
          {
            "$ref": "7"
          }
        ],
        "MESAS": {
          "$id": "9",
          "MesaId": 1.0,
          "Nombre": "sample string 2",
          "Capacidad": 1,
          "Estado": "sample string 3",
          "Ocupacion": true,
          "Zona": "sample string 4",
          "ORDEN": [
            {
              "$ref": "8"
            },
            {
              "$ref": "8"
            }
          ]
        }
      },
      "PRODUCTOS": {
        "$ref": "1"
      }
    },
    {
      "$ref": "7"
    }
  ],
  "LISTAPRECIOS": [
    {
      "$id": "10",
      "Id": 1.0,
      "ProductoId": 2.0,
      "Precio": 3.0,
      "Estado": "sample string 4",
      "VigenciaInicial": "2025-12-11T08:13:47.5391562-05:00",
      "VigenciaFinal": "2025-12-11T08:13:47.5391562-05:00",
      "PRODUCTOS": {
        "$ref": "1"
      }
    },
    {
      "$ref": "10"
    }
  ]
}

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 'PRODUCTOS'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.