Partial update of a record

My web application has two steps to updating a 'user'. The first step includes 5 fields, the second step includes 6 fields.

When I use a PATCH or POST call, what I've found is the first 5 fields save but upon the second step saving the 6 fields, the original 5 are nulled.

I believe this is due to only sending the 6 fields on the second step but the function is still looking for the original 5 fields.

Any suggestions on how to address? I would rather not have 2 API endpoints, one for each step.

Working with APIs
8 replies