I am not able to create variables for the environments we have in different repositories.
The request we are doing is like the following:
curl --location --request POST 'https://api.bitbucket.org/2.0/repositories/:workspace/:repo_slug/deployments_config/environments/:environment_uuid/variables' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Basic thisisatest3czo5RGZWR1d5cjZDbYTU0Nw==' \
--data-raw '{
"key": "name",
"value": "test"
}'
environment_uuid is encoded with the '{' and '}', like this: "
%7B12fa2ce1-5c4c-4f92-b250-9c557e6096ef%7D"
it's always returning a 404 error.
The same request, GET, is working as expected returning the list of variables.
Any clue?
Thank you