Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProjectProtectedEnvironments.create seems to be broken #3682

Open
2 tasks done
auwang2 opened this issue Feb 6, 2025 · 0 comments
Open
2 tasks done

ProjectProtectedEnvironments.create seems to be broken #3682

auwang2 opened this issue Feb 6, 2025 · 0 comments
Labels
type:bug Changes fix a minor bug

Comments

@auwang2
Copy link

auwang2 commented Feb 6, 2025

For whatever reason I can't seem to get the ProjectProtectedEnvironments.create() function to work. I believe it has to do with the payload being injected (ProtectedEnvironmentAccessLevelEntity[]). Despite filling it in

deployAccessLevel.push({
	accessLevel: gitbeaker.AccessLevel.MAINTAINER,
})

and passing it like so:

client.ProjectProtectedEnvironments.create(
	123,
	"EnvName",
	deployAccessLevel,
)

It returns a 400 Bad Request. I've played around with manual curls and there have been no issues on that side. The other ProjectProtectedEnvironments currently work too, just not this one.

Checklist

  • I have checked that this is not a duplicate issue.
  • I have read the documentation.
@jdalrymple jdalrymple added the type:bug Changes fix a minor bug label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Changes fix a minor bug
Projects
None yet
Development

No branches or pull requests

2 participants