# /chat/channels/events throws scope error when attempting to archive a team\_chat channel

**URL:** <https://devforum.zoom.us/t/chat-channels-events-throws-scope-error-when-attempting-to-archive-a-team-chat-channel/118154>\
**Category:** Chat\
**Created:** [September 26, 2024, 4:35pm UTC](https://devforum.zoom.us/t/chat-channels-events-throws-scope-error-when-attempting-to-archive-a-team-chat-channel/118154 "2024-09-26T16:35:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt.eisenberg](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@matt.eisenberg](https://devforum.zoom.us/u/matt.eisenberg)\
**Post date:** [September 26, 2024, 4:35pm UTC](https://devforum.zoom.us/t/chat-channels-events-throws-scope-error-when-attempting-to-archive-a-team-chat-channel/118154/1 "2024-09-26T16:35:21Z")

</div>

**API Endpoint:**  
PATCH[https://api.zoom.us/v2/chat/channels/events](https://developers.zoom.us/docs/api/rest/reference/chat/methods/#operation/PerformOperationsOnChannels)  
**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:

 ![2024-09-26 14_03_45-App Marketplace](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/1/f14ba09343017244fe79b96bfcd2ebe99c06343e.png)

**Error:**

```auto
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_

```auto
$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].” }
