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

Cannot bind argument to parameter 'Resource' because it is an empty string. #38

Closed
hpineapples opened this issue May 24, 2024 · 2 comments · Fixed by #40
Closed

Cannot bind argument to parameter 'Resource' because it is an empty string. #38

hpineapples opened this issue May 24, 2024 · 2 comments · Fixed by #40

Comments

@hpineapples
Copy link

In function 'Set-NinjaOneOrganisationPolicies', $Resource is not set, thus is null when the API call parameters are built later in the function, resulting in the error being thrown.

$Resource = ("v2/organization/{0}/policies" -f $organisationId)

Path from: https://app.ninjarmm.com/apidocs-beta/core-resources/operations/updateNodeRolePolicyAssignmentForOrganization

@homotechsual
Copy link
Owner

Thanks for that 🤣 it got removed during refactoring for v2. Knuckleheaded mistake.

homotechsual added a commit that referenced this issue May 24, 2024
…icies. Fixes for some other small bugs/issues also included.
@homotechsual
Copy link
Owner

Should go out in 2.0.0-RC5 which is due to release soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants