---
ai:
  exclude: true
search:
  tags:
    - User Watch
    - POST
seo:
  description: >-
    Create a new watcher for the given user and… Reference for the POST
    /rest/api/user/watch/content/{contentId} endpoint in the Confluence Data
    Center API.
sidebar:
  label: Add content watcher
  badge: POST
title: Add content watcher
type: openapi-operation
---
Create a new watcher for the given user and content id. 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/content/131213`
`http://example.com/confluence/rest/api/user/watch/content/131213?username=jblogs`
`http://example.com/confluence/rest/api/user/watch/content/131213?key=ff8080815a58e24c015a58e263710000`

`POST /rest/api/user/watch/content/{contentId}`

**Responses**

- `200` — Returned if the watcher was successfully created.
- `404` — Returned if no content exists for the specified content id 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]"
  },
  "content": {
    "id": "123456",
    "type": "page",
    "status": "current",
    "title": "My Page",
    "links": {},
    "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": {}
      }
    },
    "history": {
      "previousVersion": {
        "expanded": true,
        "idProperties": {}
      },
      "nextVersion": {
        "expanded": true,
        "idProperties": {}
      },
      "lastUpdated": {
        "expanded": true,
        "idProperties": {}
      },
      "latest": true,
      "createdBy": {
        "profilePicture": {
          "path": "http://www.example.com/path/to/image.png",
          "width": 16,
          "height": 16,
          "isDefault": true
        },
        "displayName": "Joe Smith",
        "type": "string"
      },
      "createdDate": "2020-01-01T00:00:00Z",
      "contributors": {
        "expanded": true,
        "idProperties": {}
      },
      "lastUpdatedRef": {
        "expanded": true,
        "idProperties": {}
      },
      "nextVersionRef": {
        "expanded": true,
        "idProperties": {}
      },
      "previousVersionRef": {
        "expanded": true,
        "idProperties": {}
      },
      "contentParentRef": {
        "expanded": true,
        "idProperties": {}
      }
    },
    "version": {
      "by": {
        "profilePicture": {
          "path": "http://www.example.com/path/to/image.png",
          "width": 16,
          "height": 16,
          "isDefault": true
        },
        "displayName": "Joe Smith",
        "type": "string"
      },
      "when": "2020-01-01T00:00:00Z",
      "message": "A message",
      "number": 1,
      "minorEdit": true,
      "hidden": true,
      "syncRev": "123456",
      "content": {
        "expanded": true,
        "idProperties": {}
      },
      "contentRef": {
        "expanded": true,
        "idProperties": {}
      }
    },
    "ancestors": [
      {}
    ],
    "position": 1,
    "operations": [
      {
        "operation": "read",
        "targetType": "page"
      }
    ],
    "children": {},
    "descendants": {},
    "container": null,
    "body": {},
    "metadata": {
      "key": "value"
    },
    "extensions": {
      "key": "value"
    },
    "restrictions": {
      "use": {
        "operation": "use",
        "restrictions": []
      }
    },
    "historyRef": {
      "expanded": true,
      "idProperties": {}
    },
    "spaceRef": {
      "expanded": true,
      "idProperties": {}
    },
    "containerRef": {
      "expanded": true,
      "idProperties": {}
    },
    "versionRef": {
      "expanded": true,
      "idProperties": {}
    }
  }
}
```
