API Endpoint:
PATCHhttps://api.zoom.us/v2/chat/channels/events
API Response:{“code”: 4711, “message”: “Invalid access token, does not contain scopes: team_chat:update:archive_channels:admin, team_chat:update:archive_channels].” }
Description
Server-to-Server OAuth Account-level app (using PowerShell) unable to archive a channel, receive missing scope error for team_chat:update:archive_channels:admin, however this scope is not available in the App Scopes adminitration pane:
Error:
Invoke-WebRequest:
{
"code": 4711,
"message": "Invalid access token, does not contain scopes:[team_chat:update:archive_channels:admin, team_chat:update:archive_channels]."
}
How To Reproduce
Steps to reproduce the behavior:
1. Request URL / Headers / Body
$RequestURL = "https://api.zoom.us/v2/chat/channels/events"
$Body."channel_ids" = "a5...[redacted]"
$Body."method" = "archive"
$Answer = Invoke-WebRequest -Uri $Query -Body $Body -Method Patch -Token $Token -Authentication Bearer
2. Authentication method or app type: Server-to-Server OAuth (Account-level)
3. Any errors
{“code”: 4711, “message”: “Invalid access token, does not contain scopes: team_chat:update:archive_channels:admin, team_chat:update:archive_channels].” }