POST api/UbicazioneAssociaSalvaAggiorna
Se DTOUbicazione.IdUbicazione null insert, altrimenti update
Request Information
URI Parameters
None.
Body Parameters
DTOAssociaUbicazioneName | Description | Type | Additional information |
---|---|---|---|
IdArticolo |
Articolo a cui associare l'ubicazione |
integer |
Required |
DTOUbicazioni |
Ubicazione da inserire o aggiornare |
Collection of DTOUbicazione |
Required |
Request Formats
application/json, text/json
Sample:
{ "IdArticolo": 1, "DTOUbicazioni": [ { "IdUbicazione": 1, "Ubicazione": "sample string 1", "Locked": "sample string 2", "Ordinamento": 1 }, { "IdUbicazione": 1, "Ubicazione": "sample string 1", "Locked": "sample string 2", "Ordinamento": 1 } ] }
application/xml, text/xml
Sample:
<DTOAssociaUbicazione xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DueBit.DTO"> <DTOUbicazioni> <DTOUbicazione> <IdUbicazione>1</IdUbicazione> <Locked>sample string 2</Locked> <Ordinamento>1</Ordinamento> <Ubicazione>sample string 1</Ubicazione> </DTOUbicazione> <DTOUbicazione> <IdUbicazione>1</IdUbicazione> <Locked>sample string 2</Locked> <Ordinamento>1</Ordinamento> <Ubicazione>sample string 1</Ubicazione> </DTOUbicazione> </DTOUbicazioni> <IdArticolo>1</IdArticolo> </DTOAssociaUbicazione>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>