Forum Academy Marketplace Showcase Pricing Features

POST API: Difference between parameter not supplied or value is empty?

I have created an endpoint that takes several optional parameters, each corresponding to a field on my Thing. In my workflow, I have created an action per parameter, so that only the fields with new value will be updated.

Endpoint definition:

Action to update name:

However, I have a problem if someone wants to delete a value and sends a request like this:

{
“factory”:""
}

I cannot distinguish between when a parameter is not supplied, and when it just contains an empty string.

Does anybody have an idea?