Remove entry from Enterprise Connection Metadata

This is the body I use to set the properties, and it works fine:

{
        "Id": "xyz",
        "Name": "xyz",
        "Metadata": {
            "Property1": "something",
            "Property2": "something"
        }
    }

These are the bodies I used to try to remove the metadata:

Fails with 400:

{
        "Id": "xyz",
        "Name": "xyz",
        "Metadata": null
    }

Works but doesn’t change anything:

{
        "Id": "xyz",
        "Name": "xyz",
        "Metadata": {}
    }

Works but doesn’t change anything:

{
        "Id": "xyz",
        "Name": "xyz",
        "Metadata": {
            "Property1": null,
            "Property2": null
        }
    }

Works, changes to empty string, but I want to remove them:

{
        "Id": "xyz",
        "Name": "xyz",
        "Metadata": {
            "Property1": "",
            "Property2": ""
        }
    }
1 Like