A method for creating new versions of objects based on existing ones without fully rewriting the data.
This results in a new object identifier being generated.
publicstaticvoidpatchObject(FrostFSClientfrostFSClient,CallContextcallContext,ObjectIdoid,ContainerIdcid,InputStreampatch){varattribute1=newObjectAttribute("Filename","test.jpg");varattribute2=newObjectAttribute("Attribute","test");varpatch=PrmObjectPatch.builder().address(newAddress(oid,cid)).replaceAttributes(false)// false = add to existing.newAttributes(List.of(attribute1,attribute2)).payload(patch).range(newRange(0L,10L))// Replacement range (0-10 byte).build();varnewOid=frostFSClient.patchObject(patch,callContext);}