I’m trying to update just a single Property for an Item via the PATCH method, but whenever I call it, it acts like a PUT and deletes all the other Properties on the Item. It’s definitely a PATCH request going out, and the json payload only has the single ‘custom’ property I want to edit, not any of the ‘main’ resource properties.
Reading the docs at REST API - Omeka S Developer Documentation and I’m a little unclear on what it means with RDF values? Does PATCH not work as I might expect to just update a single Property on the Resource?
Obviously, I could do a GET and a PUT, but it’s slower.
Yes, PATCH through the REST API when you’re setting values for Properties acts as it says there: the values for all properties are handled together for patching purposes, so if you don’t send any values at all, they’re all left as-is, but if you send a value for any property you must send them all, or the others will get deleted.
This only applies to the Properties/Values; everything else in a PATCH is handled key-by-key.