PUT api/alerts/{idAlert}

Aggiorna l'associazione di un alert con Asta e Lotto.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
idAlert

Identificativo univoco dell'alert da aggiornare

integer

Required

Body Parameters

Oggetto contenente i nuovi valori di IdAsta e IdLotto

UpdateAlertRequest
NameDescriptionTypeAdditional information
IdAsta

Identificativo dell'asta da associare all'alert

integer

None.

IdLotto

Numero del lotto da associare all'alert

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "IdAsta": 1,
  "IdLotto": 2
}

application/xml, text/xml

Sample:
<UpdateAlertRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inlinea.ReteAste.WebApi.Models">
  <IdAsta>1</IdAsta>
  <IdLotto>2</IdLotto>
</UpdateAlertRequest>

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

Response Information

Resource Description

204 NoContent: aggiornamento eseguito con successo 400 BadRequest: parametri non validi 404 NotFound: alert non trovato 500 InternalServerError: errore interno

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.