# API call to have a user watch specific category(ies)?

**URL:** <https://meta.discourse.org/t/api-call-to-have-a-user-watch-specific-category-ies/67450>\
**Category:** Development\
**Created:** [Août 4, 2017, 1:02 UTC](https://meta.discourse.org/t/api-call-to-have-a-user-watch-specific-category-ies/67450 "2017-08-04T13:02:51Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Osama](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osama/32/98013_2.png) [@Osama](https://meta.discourse.org/u/Osama)\
**Post date:** [Août 11, 2017, 2:03 UTC](https://meta.discourse.org/t/api-call-to-have-a-user-watch-specific-category-ies/67450/5 "2017-08-11T14:03:16Z")

</div>

Have you figured out how to achieve this?

Here is how to do it using jQuery Ajax for anyone interested:

```javascript
const data = {
	notification_level: 3, 
	api_key: "all_users_api_key",
	api_username: "target_user_username"
};

const settings = {
  url: "/category/{{category_id}}/notifications",
  method: "POST",
  data: data
};

$.ajax(settings).done(response => {
  console.log(response);
});

```

---

_[View the full topic](https://meta.discourse.org/t/api-call-to-have-a-user-watch-specific-category-ies/67450)._
