# Change an automation token's scopes **PATCH /auth/tokens/{id}/scopes** Replaces the scopes of one of the caller's automation tokens (duplicates removed; an empty list disables the token without deleting it) and returns the updated token. Returns 403 while automation tokens are turned off, 400 for an unsupported scope and 404 when the id is not one of the caller's automation tokens. ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Access token ## Parameters ### Path parameters - **id** (string) Automation token (session) id ### Body: application/json (object) - **scopes** (array[string]) New scope set for the token. Must be a subset of the allowed scopes. Empty array disables the token. ## Responses ### 200 #### Body: application/json (object) - **data** (object) - **statusCode** (number) - **timestamp** (string(date-time)) [Powered by Bump.sh](https://bump.sh)