# Correct scope for Set Notification Level API endpoint

**URL:** https://meta.discourse.org/t/correct-scope-for-set-notification-level-api-endpoint/263163
**Category:** Development
**Tags:** rest-api
**Created:** [April 28, 2023, 8:35am UTC](https://meta.discourse.org/t/correct-scope-for-set-notification-level-api-endpoint/263163 "2023-04-28T08:35:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Gooman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gooman/32/304507_2.png) [@Gooman](https://meta.discourse.org/u/Gooman)
#### Post date: [April 28, 2023, 8:35am UTC](https://meta.discourse.org/t/correct-scope-for-set-notification-level-api-endpoint/263163/1 "2023-04-28T08:35:19Z")

</div>

What’s the correct scope to limit an API Key to just the Set Notification Level endpoint?

My external service needs to set the notification level on a given topic, for any given user. So I guess I need User Level to be All Users, Scope as Granular - but the (?) help on the page doesn’t give any direction as to which scope is concerned with notification levels.

Can someone help?

---

<div class="post-metadata">

### Author: ![aidanheerdegen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aidanheerdegen/32/277061_2.png) [@aidanheerdegen](https://meta.discourse.org/u/aidanheerdegen)
#### Post date: [September 13, 2023, 5:47am UTC](https://meta.discourse.org/t/correct-scope-for-set-notification-level-api-endpoint/263163/2 "2023-09-13T05:47:41Z")

</div>

> [@Gooman](#):
>
> Can someone help?

I’d like to know this too. We have a lot of problem getting people watching important topics that we use as mailing lists. We’d like to either do it for them, or have a few big buttons they could push to watch important topics.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [September 13, 2023, 7:49am UTC](https://meta.discourse.org/t/correct-scope-for-set-notification-level-api-endpoint/263163/3 "2023-09-13T07:49:53Z")

</div>

I think you can now use the `/t/<topic_id>/notifications` endpoint for this:

> [@AlexDev](#):
>
> Some details about this API endpoint that are important to note:
> 
> - The API user should be an admin(so they should have global scope) to be able to change another user’s notification level.
> - Endpoint URL: `siteurl/t/<topic_id>/notifications`
> - Request type: `POST`
> - Parameters:
> - `username` or `external_id` of the target user. If empty, the admin’s own notifcation level for the topic will be changed.
> - `notification_level`: integer value corresponding to the level
> - `muted: 0,`
> - `regular: 1,`
> - `normal: 1, # alias for regular`
> - `tracking: 2,`
> - `watching: 3,`

---

<div class="post-metadata">

### Author: ![aidanheerdegen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aidanheerdegen/32/277061_2.png) [@aidanheerdegen](https://meta.discourse.org/u/aidanheerdegen)
#### Post date: [September 13, 2023, 11:52am UTC](https://meta.discourse.org/t/correct-scope-for-set-notification-level-api-endpoint/263163/4 "2023-09-13T11:52:52Z")

</div>

Thanks for the prompt reply.
