Method Update
Update(UpdateStorageConditionOperationContract)
Update an existing storage condition
[OperationContract]
[FaultContract(typeof(DbFaultContract))]
[FaultContract(typeof(StorageConditionNotFoundContract))]
[FaultContract(typeof(ValidationFaultContract))]
[SwaggerWcfTag("Storage Conditions", false)]
[SwaggerWcfPath(null, null, null, null, null, false, null, Summary = "Update an existing storage condition definition", Description = "Attempts to update an existing storage condition definition, and if successful, raises the corresponding events (untested)")]
[WebInvoke(UriTemplate = "Definitions", Method = "PUT", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.OK, Description = "Success")]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.InternalServerError, Description = "An unexpected error occurred while processing the request.", Type = typeof(JsonErrorMessage))]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.NotFound, Description = "No storage condition found with provided code.", Type = typeof(JsonErrorMessage))]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.BadRequest, Description = "Fault exception", Type = typeof(JsonErrorMessage))]
void Update(UpdateStorageConditionOperationContract storageConditionUpdate)
Parameters
storageConditionUpdateUpdateStorageConditionOperationContractContains the updated storage condition to save (using the user-provided credentials)
Exceptions
- StorageConditionNotFoundContract
This exception would be thrown if the given code is not found in the database