Removing invitation uses wrong method
Closed this issue · 1 comments
roberta-pavel commented
Description
- Node.js version: 18.20.4
- Gitbeaker version: 40.4.0
- Gitbeaker release (cli, rest, core, requester-utils): core
- OS & version: Mac
Removing method for invitations uses put
method instead of delete
Steps to reproduce
const gitlabService = new Gitlab({
host: HOST,
token: TOKEN,
});
await gitlabService.GroupInvitations.remove(someId, someEmail)
Expected behaviour
Invitation gets removed
Actual behaviour
Error "Bad request" because the method is not correct
Possible fixes
Update method for remove from put
to del
here
Open pull request: #3639
Checklist
- [ x ] I have checked that this is not a duplicate issue.
- [ x ] I have read the documentation.
jdalrymple commented
🚀 Issue was released in 40.5.0
🚀