POST api/Sujeto/Insert

Request Information

URI Parameters

None.

Body Parameters

Sujeto
NameDescriptionTypeAdditional information
id

string

Required

id_Empresa

string

None.

id_Sucursal

string

None.

Nombre

string

Required

NombreComercial

string

None.

id_Tipo_Doc

string

Required

NumeroDocumento

string

None.

id_Localidad

string

None.

Domicilio

string

Required

Altura

decimal number

None.

Piso

decimal number

None.

Oficina

decimal number

None.

Telefono1

string

None.

Telefono2

string

None.

Telefono3

string

None.

Movil1

string

None.

Movil2

string

None.

Movil3

string

None.

Fax1

string

None.

Fax2

string

None.

Fax3

string

None.

email1

string

None.

email2

string

None.

email3

string

None.

id_Condicion_Iva

string

None.

id_Condicion_Ganancia

string

None.

id_Condicion_Ib

string

None.

Numero_IB

decimal number

None.

id_Condicion_Productor

string

None.

Activo

boolean

None.

Sujeto_Domicilio

Collection of Sujeto_Domicilio

None.

Sujeto_Rol

Collection of Sujeto_Rol

None.

Sujeto_Vehiculo

Collection of Sujeto_Vehiculo

None.

Sujeto_Contacto

Collection of Sujeto_Contacto

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "sample string 1",
  "id_Empresa": "sample string 2",
  "id_Sucursal": "sample string 3",
  "Nombre": "sample string 4",
  "NombreComercial": "sample string 5",
  "id_Tipo_Doc": "sample string 6",
  "NumeroDocumento": "sample string 7",
  "id_Localidad": "sample string 8",
  "Domicilio": "sample string 9",
  "Altura": 1.0,
  "Piso": 1.0,
  "Oficina": 1.0,
  "Telefono1": "sample string 10",
  "Telefono2": "sample string 11",
  "Telefono3": "sample string 12",
  "Movil1": "sample string 13",
  "Movil2": "sample string 14",
  "Movil3": "sample string 15",
  "Fax1": "sample string 16",
  "Fax2": "sample string 17",
  "Fax3": "sample string 18",
  "email1": "sample string 19",
  "email2": "sample string 20",
  "email3": "sample string 21",
  "id_Condicion_Iva": "sample string 22",
  "id_Condicion_Ganancia": "sample string 23",
  "id_Condicion_Ib": "sample string 24",
  "Numero_IB": 1.0,
  "id_Condicion_Productor": "sample string 25",
  "Activo": true,
  "Sujeto_Domicilio": [
    {
      "id": "sample string 1",
      "id_Sujeto": "sample string 2",
      "Nombre": "sample string 3",
      "id_Localidad": "sample string 4",
      "Direccion": "sample string 5",
      "Altura": 1.0,
      "Codigo_Postal": "sample string 6",
      "CodigoPlanta": 1.0,
      "Localidad": {
        "id": "sample string 1",
        "Nombre": "sample string 2",
        "id_Provincia": "sample string 3",
        "id_Partido": "sample string 4",
        "Provincia": {
          "id": "sample string 1",
          "Nombre": "sample string 2",
          "id_Pais": "sample string 3"
        },
        "Partido": {
          "id": "sample string 1",
          "Nombre": "sample string 2",
          "id_Provincia": "sample string 3"
        }
      }
    },
    {
      "id": "sample string 1",
      "id_Sujeto": "sample string 2",
      "Nombre": "sample string 3",
      "id_Localidad": "sample string 4",
      "Direccion": "sample string 5",
      "Altura": 1.0,
      "Codigo_Postal": "sample string 6",
      "CodigoPlanta": 1.0,
      "Localidad": {
        "id": "sample string 1",
        "Nombre": "sample string 2",
        "id_Provincia": "sample string 3",
        "id_Partido": "sample string 4",
        "Provincia": {
          "id": "sample string 1",
          "Nombre": "sample string 2",
          "id_Pais": "sample string 3"
        },
        "Partido": {
          "id": "sample string 1",
          "Nombre": "sample string 2",
          "id_Provincia": "sample string 3"
        }
      }
    }
  ],
  "Sujeto_Rol": [
    {
      "id_Sujeto": "sample string 1",
      "id_Rol": "sample string 2",
      "DateAdd": "2018-08-20T06:26:46.8005234-03:00",
      "RolSujeto": {
        "id": "sample string 1",
        "Nombre": "sample string 2",
        "Sujeto_Rol": []
      }
    },
    {
      "id_Sujeto": "sample string 1",
      "id_Rol": "sample string 2",
      "DateAdd": "2018-08-20T06:26:46.8005234-03:00",
      "RolSujeto": {
        "id": "sample string 1",
        "Nombre": "sample string 2",
        "Sujeto_Rol": []
      }
    }
  ],
  "Sujeto_Vehiculo": [
    {
      "id": "sample string 1",
      "id_Sujeto": "sample string 2",
      "Nombre": "sample string 3",
      "NombreChofer": "sample string 4",
      "NumeroDocumento": 5.0,
      "Patente_Chasis": "sample string 6",
      "Patente_Acoplado": "sample string 7"
    },
    {
      "id": "sample string 1",
      "id_Sujeto": "sample string 2",
      "Nombre": "sample string 3",
      "NombreChofer": "sample string 4",
      "NumeroDocumento": 5.0,
      "Patente_Chasis": "sample string 6",
      "Patente_Acoplado": "sample string 7"
    }
  ],
  "Sujeto_Contacto": [
    {
      "id": "sample string 1",
      "id_Sujeto": "sample string 2",
      "Nombre": "sample string 3",
      "Cargo": "sample string 4",
      "Telefono1": "sample string 5",
      "Telefono2": "sample string 6",
      "Telefono3": "sample string 7",
      "Movil1": "sample string 8",
      "Movil2": "sample string 9",
      "Movil3": "sample string 10",
      "email1": "sample string 11",
      "email2": "sample string 12",
      "email3": "sample string 13"
    },
    {
      "id": "sample string 1",
      "id_Sujeto": "sample string 2",
      "Nombre": "sample string 3",
      "Cargo": "sample string 4",
      "Telefono1": "sample string 5",
      "Telefono2": "sample string 6",
      "Telefono3": "sample string 7",
      "Movil1": "sample string 8",
      "Movil2": "sample string 9",
      "Movil3": "sample string 10",
      "email1": "sample string 11",
      "email2": "sample string 12",
      "email3": "sample string 13"
    }
  ]
}

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.