MunifTanjim / node-bitbucket

Bitbucket API client for Browser and Node.js
https://bitbucketjs.netlify.app
MIT License
106 stars 28 forks source link

updateEnvironment requires a _body parameter #47

Closed folofse closed 4 years ago

folofse commented 4 years ago

Hi

I write here instead of creating a PR, basically we need to add a _body to the updateEnvironment

"_body": {
  "in": "body",
  "required": true,
  "schema": "DeploymentEnvironment",
  "type": "any"
},

It's not documented in the API´s

https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/environments/%7Benvironment_uuid%7D/changes/ )

But this endpoints takes a body with changes like this

{
  "change":{
    "name":"My Environment name",
  }
}

I don't think we can change its type like Test|Staging|Production since this don't seems to be able to change it in Bitbucket dashboard either.

MunifTanjim commented 4 years ago

released v1.17.0 :tada: