API error Duplicate variable name in URL

I am trying to create the endpoint for an API command that happens to be the same as the name of the folder it is in. The relative URL I want is “/v1/Gateway/Gateway”.

But New-UDEndpoint doesn’t like that and throws an error.

New-UDEndpoint : Duplicate variable name in URL.

Is this expected behavior?

That’s a bug. Please open an issue. It’s trying to prevent this:


But since you’re not using variables in the path it shouldn’t be checking for it.

Shoot. Forgot my phone. Shoveling out my car interrupted by normal morning routine. I’ll open the issue on Friday. I hate MFA.

1 Like