Add a user as watcher
Adds a user to an issue’s watcher list.
POST
/api/2/issue/{issueIdOrKey}/watchersAuthorization
AuthorizationBasic auth · headerrequiredIn order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.
or
AuthorizationBearer token · headerrequiredPersonal Access Token — Administration > Profile > Personal Access Tokens
AuthorizationBasic auth · headerrequiredIn order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.
Path parameters
issueIdOrKeystringrequiredIssue id or key
Query parameters
userNamestringThe name of the user to add to the watcher list. If no name is specified, the current user is added.
Request body
application/jsonstringResponses
204
Returned if the watcher was added successfully.
400
Returned if a user name query parameter is not supplied.
401
Returned if the calling user does not have permission to add the watcher to the issue's list of watchers.
404
Returned if either the issue does not exist.