Merge client.put and client.post.