@ApiOperation(nickname = "accountUpdate",
value = "Update an Account",
notes = "Updates a new Account based on the information provided in the Account parameter.",
response = Account.class)
@PUT
@Path("{accountId}")
@Consumes({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public Account update(
@ApiParam(value = "The ScopeId of the requested Account.", required = true, defaultValue = DEFAULT_SCOPE_ID) @PathParam("scopeId") ScopeId scopeId,
@ApiParam(value = "The id of the requested Account", required = true) @PathParam("accountId") EntityId accountId,
@ApiParam(value = "The modified Account whose attributes needs to be updated", required = true) Account account) throws Exception {
account.setScopeId(scopeId);
account.setId(accountId);
return accountService.update(account);
}