Add content watcher
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
/rest/api/user/watch/content/{contentId}contentIdstringrequiredid of the content.
keystringuserkey of the user to check for watching state.
usernamestringusername of the user to check for watching state.
Returned if the watcher was successfully created.
watcherUserShow propertiesHide properties
profilePictureIconShow propertiesHide properties
pathstringwidthinteger<int32>heightinteger<int32>isDefaultbooleandisplayNamestringusernamestringuserKeystringcontentContentShow propertiesHide properties
idstringtypestringstatusstringtitlestringlinksobjectspaceSpaceShow propertiesHide properties
idinteger<int64>keystringnamestringstatusstringiconReferenceIconShow propertiesHide properties
expandedbooleanidPropertiesobjectdescriptionobjecthomepageReferenceContentShow propertiesHide properties
expandedbooleanidPropertiesobjectlinksobjecttypestringmetadataobjectretentionPolicyReferenceSpaceRetentionPolicyShow propertiesHide properties
expandedbooleanidPropertiesobjecthistoryHistoryShow propertiesHide properties
previousVersionReferenceVersionnextVersionReferenceVersionlastUpdatedReferenceVersionlatestbooleancreatedByPersonShow propertiesHide properties
profilePictureIcondisplayNamestringtypestringcreatedDatestring<date-time>contributorsReferenceContributorsShow propertiesHide properties
expandedbooleanidPropertiesobjectlastUpdatedRefReferenceVersionnextVersionRefReferenceVersionpreviousVersionRefReferenceVersioncontentParentRefReferenceContentversionVersionShow propertiesHide properties
byPersonwhenstring<date-time>messagestringnumberinteger<int32>minorEditbooleanhiddenbooleansyncRevstringcontentReferenceContentcontentRefReferenceContentancestorsContent[]Show propertiesHide properties
ContentContent.positioninteger<int32>operationsOperationCheckResult[]Show propertiesHide properties
OperationCheckResultoperationstringtargetTypestringchildrenobjectdescendantsobjectcontainerContainerbodyobjectmetadataobjectextensionsobjectrestrictionsobjecthistoryRefReferenceHistoryShow propertiesHide properties
expandedbooleanidPropertiesobjectspaceRefReferenceSpaceShow propertiesHide properties
expandedbooleanidPropertiesobjectcontainerRefReferenceContainerShow propertiesHide properties
expandedbooleanidPropertiesobjectversionRefReferenceVersionShow propertiesHide properties
expandedbooleanidPropertiesobjectReturned if no content exists for the specified content id or the calling user does not have permission to perform the operation.
statusCodeinteger<int32>dataValidationResultShow propertiesHide properties
authorizedbooleanvalidbooleanerrorsobjectsuccessfulbooleanallowedInReadOnlyModebooleanmessagestringreasonstring