Updating resource info in api's ok method