Use dict.popitem when we know the dict only has one key
Removed extra reference to the `id` parameter for create API
Example code using the client