How does one create variables using the 2.0 API

I see information on how to update variables but I am not finding information on how to create variables.
We have a large number of variables that we need to move from our old Octopus server to the new one and appear to be hitting a road block using the API.

Can someone write an example variable creation post?


Hi Eric,

I’ve posted an example here:


We got it working. Thanks for the documentation Paul.