Streaming live at 10am (PST)

Can we use PATCH to update just one field in a collection?


#1

(EDITED: We figured out how to update a collection item with an image field)

Is there a way we can use PATCH to update just the inventory field in a collection?

Thanks!

(ccing @nathan )


#2

We don't currently have support for a PATCH endpoint, but off the top of my head I can't think of any good reason on why we couldn't have one. I will add an issue for it internally and see about getting it implemented!


#3

Excellent! Thank you.

There are a lot of different interpretations of how PATCH should be done (json diffs, etc), but for our API we've just decided to allow for name value pairs and partial JSON snippets of just the fields to be updated. Works out rather well.