Allow updating of partition_id and group_id. Needs more cleaning up...