Updated API interface to be more 'resource' based (with the hash as the
resource that's created / requested).