PUT api/Empresas/my

Request Information

URI Parameters

None.

Body Parameters

Empresa
NameDescriptionTypeAdditional information
id

integer

None.

nombre

string

Required

String length: inclusive between 0 and 100

direccion

string

Required

String length: inclusive between 0 and 100

poblacion

string

Required

String length: inclusive between 0 and 45

cp

string

Required

String length: inclusive between 0 and 5

provincia

string

Required

String length: inclusive between 0 and 45

nif

string

Required

String length: inclusive between 0 and 10

contacto

string

String length: inclusive between 0 and 45

telef1

string

String length: inclusive between 0 and 15

telef2

string

String length: inclusive between 0 and 15

email

string

String length: inclusive between 0 and 100

allowComms

integer

Required

fechaAlta

date

Required

fechaBaja

date

None.

observs

string

None.

serieFacturasMantenimiento

string

String length: inclusive between 0 and 15

numeroUltimaFraMantenimiento

integer

None.

conceptoFraMantenimiento

string

String length: inclusive between 0 and 125

stockMinimoArticulo

integer

None.

diasColchonPedido

decimal number

None.

udsLoteRotacionMaxima

integer

None.

udsLoteRotacionMedia

integer

None.

udsLoteRotacionMinima

integer

None.

umbralSobrestockSemanas

integer

None.

devolverSobrestock

integer

None.

bitronicLinkActive

integer

None.

bitronicLinkKey

string

None.

stratorLinkActive

integer

None.

calendarWeekViewType

string

String length: inclusive between 0 and 10

status

integer

None.

fechaInicioDemo

date

None.

diasStockApalancado

integer

None.

resaltarStockApalancado

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "nombre": "sample string 2",
  "direccion": "sample string 3",
  "poblacion": "sample string 4",
  "cp": "sample string 5",
  "provincia": "sample string 6",
  "nif": "sample string 7",
  "contacto": "sample string 8",
  "telef1": "sample string 9",
  "telef2": "sample string 10",
  "email": "sample string 11",
  "allowComms": 12,
  "fechaAlta": "2026-06-29T05:14:50.9167555+03:00",
  "fechaBaja": "2026-06-29T05:14:50.9167555+03:00",
  "observs": "sample string 14",
  "serieFacturasMantenimiento": "sample string 15",
  "numeroUltimaFraMantenimiento": 16,
  "conceptoFraMantenimiento": "sample string 17",
  "stockMinimoArticulo": 18,
  "diasColchonPedido": 19.0,
  "udsLoteRotacionMaxima": 20,
  "udsLoteRotacionMedia": 21,
  "udsLoteRotacionMinima": 22,
  "umbralSobrestockSemanas": 23,
  "devolverSobrestock": 24,
  "bitronicLinkActive": 25,
  "bitronicLinkKey": "sample string 26",
  "stratorLinkActive": 27,
  "calendarWeekViewType": "sample string 28",
  "status": 29,
  "fechaInicioDemo": "2026-06-29T05:14:50.9167555+03:00",
  "diasStockApalancado": 30,
  "resaltarStockApalancado": 31
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'VendingAPI.Models.Maquina' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'VendingAPI.Models.Maquina' contains cycles and cannot be serialized if reference tracking is disabled.

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

Response Information

Resource Description

Empresa
NameDescriptionTypeAdditional information
id

integer

None.

nombre

string

Required

String length: inclusive between 0 and 100

direccion

string

Required

String length: inclusive between 0 and 100

poblacion

string

Required

String length: inclusive between 0 and 45

cp

string

Required

String length: inclusive between 0 and 5

provincia

string

Required

String length: inclusive between 0 and 45

nif

string

Required

String length: inclusive between 0 and 10

contacto

string

String length: inclusive between 0 and 45

telef1

string

String length: inclusive between 0 and 15

telef2

string

String length: inclusive between 0 and 15

email

string

String length: inclusive between 0 and 100

allowComms

integer

Required

fechaAlta

date

Required

fechaBaja

date

None.

observs

string

None.

serieFacturasMantenimiento

string

String length: inclusive between 0 and 15

numeroUltimaFraMantenimiento

integer

None.

conceptoFraMantenimiento

string

String length: inclusive between 0 and 125

stockMinimoArticulo

integer

None.

diasColchonPedido

decimal number

None.

udsLoteRotacionMaxima

integer

None.

udsLoteRotacionMedia

integer

None.

udsLoteRotacionMinima

integer

None.

umbralSobrestockSemanas

integer

None.

devolverSobrestock

integer

None.

bitronicLinkActive

integer

None.

bitronicLinkKey

string

None.

stratorLinkActive

integer

None.

calendarWeekViewType

string

String length: inclusive between 0 and 10

status

integer

None.

fechaInicioDemo

date

None.

diasStockApalancado

integer

None.

resaltarStockApalancado

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "nombre": "sample string 2",
  "direccion": "sample string 3",
  "poblacion": "sample string 4",
  "cp": "sample string 5",
  "provincia": "sample string 6",
  "nif": "sample string 7",
  "contacto": "sample string 8",
  "telef1": "sample string 9",
  "telef2": "sample string 10",
  "email": "sample string 11",
  "allowComms": 12,
  "fechaAlta": "2026-06-29T05:14:50.9686179+03:00",
  "fechaBaja": "2026-06-29T05:14:50.9686179+03:00",
  "observs": "sample string 14",
  "serieFacturasMantenimiento": "sample string 15",
  "numeroUltimaFraMantenimiento": 16,
  "conceptoFraMantenimiento": "sample string 17",
  "stockMinimoArticulo": 18,
  "diasColchonPedido": 19.0,
  "udsLoteRotacionMaxima": 20,
  "udsLoteRotacionMedia": 21,
  "udsLoteRotacionMinima": 22,
  "umbralSobrestockSemanas": 23,
  "devolverSobrestock": 24,
  "bitronicLinkActive": 25,
  "bitronicLinkKey": "sample string 26",
  "stratorLinkActive": 27,
  "calendarWeekViewType": "sample string 28",
  "status": 29,
  "fechaInicioDemo": "2026-06-29T05:14:50.9686179+03:00",
  "diasStockApalancado": 30,
  "resaltarStockApalancado": 31
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'VendingAPI.Models.Maquina' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'VendingAPI.Models.Maquina' contains cycles and cannot be serialized if reference tracking is disabled.