Invoke Rest returning {"code":2300,"message":"This API endpoint is not recognized."}

Format Your New Topic as Follows:

API Endpoint(s) and/or Zoom API Event(s)
Link the API endpoint(s) and/orZoom API Event(s) you’re working with to help give context.

I am trying to build a powershell script to add team chat channels using this endpoint:

I’ve replaced userID with my unique userID I got by calling with my zoom account email address.

When I try to use the userID I get the error in the title. I’ve tried using the “me” endpoint and that isn’t working either.

I’ve tried calling other apis without issue, I can do a GET for my user information and for the list of channels but cannot create a new channel.

My Oauth app is active and I have the listed scopes in the API guide applied. My authentication token seems to be good since I can call other endpoints.

Does anyone have any other suggestions to try?

Thank you,

If it helps anyone, I found that my issue was that I didn’t specify that the API call was a json application call

Invoke-RestMethod ‘{userID}/channels’ -Method ‘POST’ -Headers @{Authorization = “Bearer $token”} -Body $body -ContentType ‘application/json’

Thanks for sharing how you resolved @michael.miller2 !

1 Like