POST api/Empresas/updateEmpresa
Request Information
URI Parameters
None.
Body Parameters
empresaObjName | Description | Type | Additional information |
---|---|---|---|
EmpresaID | integer |
None. |
|
Nombre | string |
None. |
|
NombreComercial | string |
None. |
|
NumProveedor | string |
None. |
|
TipoPersona | integer |
None. |
|
NombreTipoPersona | string |
None. |
|
TipoContrato | integer |
None. |
|
NombreTipoContrato | string |
None. |
|
TipoLinea | string |
None. |
|
NombreTipoLinea | string |
None. |
|
MotivoInhabil | string |
None. |
|
Proveedor | boolean |
None. |
|
ProveedorVal | string |
None. |
|
itemA | integer |
None. |
|
itemF | integer |
None. |
|
itemV | integer |
None. |
|
Correo_Frecuencia | integer |
None. |
|
Correo_StatusID | string |
None. |
|
Correo_ItemsID | string |
None. |
|
Eliminado | boolean |
None. |
|
LineaExtranjera | boolean |
None. |
|
FechaCreacion | date |
None. |
|
users | Collection of string |
None. |
|
usersData | Collection of usersData |
None. |
|
ProspectoID | integer |
None. |
|
ProspectoRutasPrincipales | Collection of ProspectoRutasPrincipalesObj |
None. |
|
ProspectoTipoUnidades | Collection of ProspectoTipoUnidadesObj |
None. |
Request Formats
application/json, text/json
Sample:
{ "EmpresaID": 1, "Nombre": "sample string 2", "NombreComercial": "sample string 3", "NumProveedor": "sample string 4", "TipoPersona": 5, "NombreTipoPersona": "sample string 6", "TipoContrato": 7, "NombreTipoContrato": "sample string 8", "TipoLinea": "sample string 9", "NombreTipoLinea": "sample string 10", "MotivoInhabil": "sample string 11", "Proveedor": true, "ProveedorVal": "sample string 13", "itemA": 14, "itemF": 15, "itemV": 16, "Correo_Frecuencia": 17, "Correo_StatusID": "sample string 18", "Correo_ItemsID": "sample string 19", "Eliminado": true, "LineaExtranjera": true, "FechaCreacion": "2024-11-28T07:23:39.6934535-05:00", "users": [ "sample string 1", "sample string 2" ], "usersData": [ { "UsuarioID": 1, "Nombre": "sample string 2", "Correo": "sample string 3", "Telefono": "sample string 4" }, { "UsuarioID": 1, "Nombre": "sample string 2", "Correo": "sample string 3", "Telefono": "sample string 4" } ], "ProspectoID": 1, "ProspectoRutasPrincipales": [ { "ProspectoRutasPrincipalesID": 1, "ProspectoID": 2, "Origen": "sample string 3", "Destino": "sample string 4", "Eliminado": true, "INSERT_DATE": "2024-11-28T07:23:39.6934535-05:00", "UPDATE_DATE": "2024-11-28T07:23:39.6934535-05:00", "DELETE_DATE": "2024-11-28T07:23:39.6934535-05:00" }, { "ProspectoRutasPrincipalesID": 1, "ProspectoID": 2, "Origen": "sample string 3", "Destino": "sample string 4", "Eliminado": true, "INSERT_DATE": "2024-11-28T07:23:39.6934535-05:00", "UPDATE_DATE": "2024-11-28T07:23:39.6934535-05:00", "DELETE_DATE": "2024-11-28T07:23:39.6934535-05:00" } ], "ProspectoTipoUnidades": [ { "ProspectoTipoUnidadesID": 1, "ProspectoID": 2, "Tipo": "sample string 3", "Capacidad": "sample string 4", "Cantidad": 5, "Eliminado": true, "INSERT_DATE": "2024-11-28T07:23:39.6934535-05:00", "UPDATE_DATE": "2024-11-28T07:23:39.6934535-05:00", "DELETE_DATE": "2024-11-28T07:23:39.6934535-05:00" }, { "ProspectoTipoUnidadesID": 1, "ProspectoID": 2, "Tipo": "sample string 3", "Capacidad": "sample string 4", "Cantidad": 5, "Eliminado": true, "INSERT_DATE": "2024-11-28T07:23:39.6934535-05:00", "UPDATE_DATE": "2024-11-28T07:23:39.6934535-05:00", "DELETE_DATE": "2024-11-28T07:23:39.6934535-05:00" } ] }
application/xml, text/xml
Sample:
<empresaObj xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EXPU_Backend.Models"> <Correo_Frecuencia>17</Correo_Frecuencia> <Correo_ItemsID>sample string 19</Correo_ItemsID> <Correo_StatusID>sample string 18</Correo_StatusID> <Eliminado>true</Eliminado> <EmpresaID>1</EmpresaID> <FechaCreacion>2024-11-28T07:23:39.6934535-05:00</FechaCreacion> <LineaExtranjera>true</LineaExtranjera> <MotivoInhabil>sample string 11</MotivoInhabil> <Nombre>sample string 2</Nombre> <NombreComercial>sample string 3</NombreComercial> <NombreTipoContrato>sample string 8</NombreTipoContrato> <NombreTipoLinea>sample string 10</NombreTipoLinea> <NombreTipoPersona>sample string 6</NombreTipoPersona> <NumProveedor>sample string 4</NumProveedor> <ProspectoID>1</ProspectoID> <ProspectoRutasPrincipales> <ProspectoRutasPrincipalesObj> <DELETE_DATE>2024-11-28T07:23:39.6934535-05:00</DELETE_DATE> <Destino>sample string 4</Destino> <Eliminado>true</Eliminado> <INSERT_DATE>2024-11-28T07:23:39.6934535-05:00</INSERT_DATE> <Origen>sample string 3</Origen> <ProspectoID>2</ProspectoID> <ProspectoRutasPrincipalesID>1</ProspectoRutasPrincipalesID> <UPDATE_DATE>2024-11-28T07:23:39.6934535-05:00</UPDATE_DATE> </ProspectoRutasPrincipalesObj> <ProspectoRutasPrincipalesObj> <DELETE_DATE>2024-11-28T07:23:39.6934535-05:00</DELETE_DATE> <Destino>sample string 4</Destino> <Eliminado>true</Eliminado> <INSERT_DATE>2024-11-28T07:23:39.6934535-05:00</INSERT_DATE> <Origen>sample string 3</Origen> <ProspectoID>2</ProspectoID> <ProspectoRutasPrincipalesID>1</ProspectoRutasPrincipalesID> <UPDATE_DATE>2024-11-28T07:23:39.6934535-05:00</UPDATE_DATE> </ProspectoRutasPrincipalesObj> </ProspectoRutasPrincipales> <ProspectoTipoUnidades> <ProspectoTipoUnidadesObj> <Cantidad>5</Cantidad> <Capacidad>sample string 4</Capacidad> <DELETE_DATE>2024-11-28T07:23:39.6934535-05:00</DELETE_DATE> <Eliminado>true</Eliminado> <INSERT_DATE>2024-11-28T07:23:39.6934535-05:00</INSERT_DATE> <ProspectoID>2</ProspectoID> <ProspectoTipoUnidadesID>1</ProspectoTipoUnidadesID> <Tipo>sample string 3</Tipo> <UPDATE_DATE>2024-11-28T07:23:39.6934535-05:00</UPDATE_DATE> </ProspectoTipoUnidadesObj> <ProspectoTipoUnidadesObj> <Cantidad>5</Cantidad> <Capacidad>sample string 4</Capacidad> <DELETE_DATE>2024-11-28T07:23:39.6934535-05:00</DELETE_DATE> <Eliminado>true</Eliminado> <INSERT_DATE>2024-11-28T07:23:39.6934535-05:00</INSERT_DATE> <ProspectoID>2</ProspectoID> <ProspectoTipoUnidadesID>1</ProspectoTipoUnidadesID> <Tipo>sample string 3</Tipo> <UPDATE_DATE>2024-11-28T07:23:39.6934535-05:00</UPDATE_DATE> </ProspectoTipoUnidadesObj> </ProspectoTipoUnidades> <Proveedor>true</Proveedor> <ProveedorVal>sample string 13</ProveedorVal> <TipoContrato>7</TipoContrato> <TipoLinea>sample string 9</TipoLinea> <TipoPersona>5</TipoPersona> <itemA>14</itemA> <itemF>15</itemF> <itemV>16</itemV> <users xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </users> <usersData> <usersData> <Correo>sample string 3</Correo> <Nombre>sample string 2</Nombre> <Telefono>sample string 4</Telefono> <UsuarioID>1</UsuarioID> </usersData> <usersData> <Correo>sample string 3</Correo> <Nombre>sample string 2</Nombre> <Telefono>sample string 4</Telefono> <UsuarioID>1</UsuarioID> </usersData> </usersData> </empresaObj>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
EmpresaIDResponseName | Description | Type | Additional information |
---|---|---|---|
EmpresaID | integer |
None. |
|
status | integer |
None. |
|
message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "EmpresaID": 1, "status": 2, "message": "sample string 3" }
application/xml, text/xml
Sample:
<EmpresaIDResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EXPU_Backend.Models"> <message>sample string 3</message> <status>2</status> <EmpresaID>1</EmpresaID> </EmpresaIDResponse>