---
ai:
  exclude: true
search:
  tags:
    - User Watch
    - POST
seo:
  description: >-
    Create a new watcher for the given user and space… Reference for the POST
    /rest/api/user/watch/space/{spaceKey} endpoint in the Confluence Data Center
    API.
sidebar:
  label: Add space watcher
  badge: POST
title: Add space watcher
type: openapi-operation
---
Create a new watcher for the given user and space key. User is optional. If not specified, currently logged-in user will be used. Otherwise, it can be specified by either user key or username. When a user is specified and is different from the logged-in user, the logged-in user needs to be a Confluence administrator. 

 Example request URI(s):

`http://example.com/confluence/rest/api/user/watch/space/SPACEKEY`
`http://example.com/confluence/rest/api/user/watch/space/SPACEKEY?username=jblogs`
`http://example.com/confluence/rest/api/user/watch/space/SPACEKEY?key=ff8080815a58e24c015a58e263710000`
`http://example.com/confluence/rest/api/user/watch/space/SPACEKEY?contentType=blogpost`

`POST /rest/api/user/watch/space/{spaceKey}`

**Responses**

- `200` — Returned if the watcher was successfully created
- `404` — Returned if no content exists for the specified space key or the calling user does not have permission to perform the operation

Response example, 200:

```json
{
  "watcher": {
    "profilePicture": {
      "path": "http://www.example.com/path/to/image.png",
      "width": 16,
      "height": 16,
      "isDefault": true
    },
    "displayName": "Joe Smith",
    "username": "user1",
    "userKey": "userkey[admin]"
  },
  "space": {
    "id": 123456,
    "key": "TEST",
    "name": "Test Space",
    "status": "current",
    "icon": {
      "expanded": true,
      "idProperties": {}
    },
    "description": {},
    "homepage": {
      "expanded": true,
      "idProperties": {}
    },
    "links": {},
    "type": "global",
    "metadata": {
      "labels": [
        "label1",
        "label2"
      ]
    },
    "retentionPolicy": {
      "expanded": true,
      "idProperties": {}
    }
  },
  "contentTypes": [
    "string"
  ]
}
```
