Delete one variable in a variable set

I am using the octopus client and was wondering if it is possible to delete a single variable out of a variable set. Looks like the only other way is to clear the variable set and then repopulate it with the data minus the variable you would want. Just wanted to verify one way or the other.

Hi @mtintes,

Thanks for getting in touch! This is correct. The method for replacing a single variable in the set is to get the entire variable set object, remove the individual variable, and post the updated json object back in.

We have a pre-made script in our GitHub repository for adding a variable to a variable set, which you could edit for your needs.

If you have any questions here, please let me know. :slight_smile:

Best regards,

Thanks, for the quick response! I will go that route.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.