Set initial value of collection variables

I’ve just tested a quick patch request to one of my collections and it shows immediately after you refresh the page. (This is using the web app).

{
    "collection": {
        "variables": [
            {
                "key": "var1",
                "value": "value3",
                "type": "string"
            },
            {
                "key": "var2",
                "value": "value4",
                "type": "string"
            }
        ]
    }
}

image

If the variables don’t exist, then it will create two new ones and copy the initial value to the current value.

If the variables exist, then it will only update the initial value.