If that is an option for your use case, look into the various API clients out there. I know of at least one that does the “read, modify, write” for you:
By the way, the same goes for removing a single record from an existing set, should you require this as well.