POST api/DripPoint/UpdatePhotos
Aggiorna ordine e stato delle foto del Drip Point
Request Information
URI Parameters
None.
Body Parameters
UpdatePhotosRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| IdDripPoint |
Identificativo univoco del Drip Point a cui sono associate le foto da aggiornare. |
integer |
None. |
| updatePhotos |
Collezione di operazioni di aggiornamento sulle foto del Drip Point. Ogni elemento descrive una singola foto e l'azione da eseguire (es. aggiunta, rimozione, aggiornamento metadata, ordinamento). |
Collection of UpdatePhotos |
None. |
Request Formats
application/json, text/json
Sample:
{
"IdDripPoint": 1,
"updatePhotos": [
{
"Id": 1,
"Order": 2
},
{
"Id": 1,
"Order": 2
}
]
}
application/xml, text/xml
Sample:
<UpdatePhotosRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DripApi.Models.DripPoint">
<IdDripPoint>1</IdDripPoint>
<updatePhotos>
<UpdatePhotos>
<Id>1</Id>
<Order>2</Order>
</UpdatePhotos>
<UpdatePhotos>
<Id>1</Id>
<Order>2</Order>
</UpdatePhotos>
</updatePhotos>
</UpdatePhotosRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of DripImage| Name | Description | Type | Additional information |
|---|---|---|---|
| UrlImage |
URL dell'immagine |
string |
None. |
| Id |
Id univoco dell'immagine |
integer |
None. |
| Order |
Ordine di visualizzazione dell'immagine |
integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"UrlImage": "sample string 1",
"Id": 2,
"Order": 3
},
{
"UrlImage": "sample string 1",
"Id": 2,
"Order": 3
}
]
application/xml, text/xml
Sample:
<ArrayOfDripImage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DripApi.Models.DripPoint">
<DripImage>
<Id>2</Id>
<Order>3</Order>
<UrlImage>sample string 1</UrlImage>
</DripImage>
<DripImage>
<Id>2</Id>
<Order>3</Order>
<UrlImage>sample string 1</UrlImage>
</DripImage>
</ArrayOfDripImage>