Confluence Data Center
This is the reference document for the Atlassian Confluence DC REST API. The REST API is for developers who want to:
-
integrate Confluence with other applications;
-
create scripts that interact with Confluence; or
-
develop plugins that enhance the Confluence UI, using REST to interact with the backend.
You can read more about developing Confluence plugins in the Confluence Developer Documentation.
Version 9.2.2
Base URL
http://{baseurl}/confluenceAccess Mode
Admin Group
Admin User
- POSTChange password
/rest/api/admin/user/{username}/password - POSTCreate user
/rest/api/admin/user - DELETEDelete user
/rest/api/admin/user/{username} - PUTDisable user
/rest/api/admin/user/{username}/disable - PUTEnable user
/rest/api/admin/user/{username}/enable
Attachments
- GETGet attachment
/rest/api/content/{id}/child/attachment - POSTCreate attachments
/rest/api/content/{id}/child/attachment - POSTMove attachment
/rest/api/content/{id}/child/attachment/{attachmentId}/move - PUTUpdate non-binary data of an Attachment
/rest/api/content/{id}/child/attachment/{attachmentId} - DELETERemove attachment
/rest/api/content/{id}/child/attachment/{attachmentId} - DELETERemove attachment version
/rest/api/content/{id}/child/attachment/{attachmentId}/version/{version} - POSTUpdate binary data of an attachment
/rest/api/content/{id}/child/attachment/{attachmentId}/data
Backup and Restore
- PUTCancel all queued jobs
/rest/api/backup-restore/jobs/clear-queue - PUTCancel job
/rest/api/backup-restore/jobs/{jobId}/cancel - POSTCreate site backup job
/rest/api/backup-restore/backup/site - POSTCreate site restore job
/rest/api/backup-restore/restore/site - POSTCreate site restore job for upload backup file
/rest/api/backup-restore/restore/site/upload - POSTCreate space backup job
/rest/api/backup-restore/backup/space - POSTCreate space restore job
/rest/api/backup-restore/restore/space - POSTCreate space restore job for upload backup file
/rest/api/backup-restore/restore/space/upload - GETDownload backup file
/rest/api/backup-restore/jobs/{jobId}/download - GETFind jobs by filters
/rest/api/backup-restore/jobs - GETGet files in restore directory
/rest/api/backup-restore/restore/files - GETGet job by ID
/rest/api/backup-restore/jobs/{jobId}
Category
Child Content
- GETGet children of content
/rest/api/content/{id}/child - GETGet children of content by type
/rest/api/content/{id}/child/{type} - GETGet comments of content
/rest/api/content/{id}/child/comment
Content Blueprint
- PUTPublish shared draft
/rest/api/content/blueprint/instance/{draftId} - POSTPublish legacy draft
/rest/api/content/blueprint/instance/{draftId}
Content Body
Content Descendant
- GETGet Descendants
/rest/api/content/{id}/descendant - GETGet descendants of type
/rest/api/content/{id}/descendant/{type}
Content Labels
- GETGet labels
/rest/api/content/{id}/label - POSTAdd Labels
/rest/api/content/{id}/label - DELETEDelete label with query param
/rest/api/content/{id}/label - DELETEDelete label
/rest/api/content/{id}/label/{label}
Content Property
- GETFind all content properties
/rest/api/content/{id}/property - POSTCreate a content property
/rest/api/content/{id}/property - GETFind content property by key
/rest/api/content/{id}/property/{key} - PUTUpdate content property
/rest/api/content/{id}/property/{key} - POST/rest/api/content/{id}/property/{key}
- DELETEDelete content property
/rest/api/content/{id}/property/{key}
Content Resource
- GETGet content
/rest/api/content - POSTCreate content
/rest/api/content - GETGet content by ID
/rest/api/content/{id} - DELETEDelete content
/rest/api/content/{id} - GETGet history of content
/rest/api/content/{id}/history - GETGet macro body by hash
/rest/api/content/{id}/history/{version}/macro/hash/{hash} - GETGet macro body by macro ID
/rest/api/content/{id}/history/{version}/macro/id/{macroId} - GETScan content by space key
/rest/api/content/scan - GETSearch content using CQL
/rest/api/content/search - PUTUpdate content
/rest/api/content/{contentId}
Content Restrictions
- GETGet all restrictions by Operation
/rest/api/content/{id}/restriction/byOperation - GETGet all restrictions for given operation
/rest/api/content/{id}/restriction/byOperation/{operationKey} - PUTUpdate restrictions
/rest/api/content/{id}/restriction
Content Version
Content Watchers
GlobalColorScheme
- GETGet default global color scheme
/rest/api/color-scheme/default - GETGet global color scheme
/rest/api/color-scheme - PUTSet global color scheme
/rest/api/color-scheme - PUTReset global color scheme
/rest/api/color-scheme/reset
Group
- GETGet group by name
/rest/api/group/{groupName} - GETGet groups
/rest/api/group - GETGet members of group
/rest/api/group/{groupName}/member
Instance Metrics
Label
- GETGet related labels, currently returning global labels only.
/rest/api/label/{labelName}/related - GETGet recently used labels
/rest/api/label/recent
Long Task
Search
Server Information
Space
- PUTArchive space
/rest/api/space/{spaceKey}/archive - GETGet contents in space
/rest/api/space/{spaceKey}/content - GETGet contents by type
/rest/api/space/{spaceKey}/content/{type} - POSTCreate private space
/rest/api/space/_private - GETGet spaces by key
/rest/api/space - POSTCreates a new Space.
/rest/api/space - GETGet space
/rest/api/space/{spaceKey} - PUTUpdate Space
/rest/api/space/{spaceKey} - DELETEDelete Space
/rest/api/space/{spaceKey} - PUTRestore space
/rest/api/space/{spaceKey}/restore
Space Label
- GETFetch all labels
/rest/api/space/{spaceKey}/labels - GETGet popular labels
/rest/api/space/{spaceKey}/labels/popular - GETGet recent labels
/rest/api/space/{spaceKey}/labels/recent - GETGet related labels
/rest/api/space/{spaceKey}/labels/{labelName}/related
Space Permissions
- GETGet all space permissions
/rest/api/space/{spaceKey}/permissions - POSTSet permissions to multiple users/groups/anonymous user in the given space
/rest/api/space/{spaceKey}/permissions - GETGets the permissions granted to an anonymous user in a space
/rest/api/space/{spaceKey}/permissions/anonymous - GETGets the permissions granted to a group in a space
/rest/api/space/{spaceKey}/permissions/group/{groupName} - GETGets the permissions granted to a user in a space
/rest/api/space/{spaceKey}/permissions/user/{userKey} - PUTGrants space permissions to anonymous user
/rest/api/space/{spaceKey}/permissions/anonymous/grant - PUTGrants space permissions to a group
/rest/api/space/{spaceKey}/permissions/group/{groupName}/grant - PUTGrants space permissions to a user
/rest/api/space/{spaceKey}/permissions/user/{userKey}/grant - PUTRevoke space permissions from anonymous user
/rest/api/space/{spaceKey}/permissions/anonymous/revoke - PUTRevoke space permissions from a group
/rest/api/space/{spaceKey}/permissions/group/{groupName}/revoke - PUTRevoke space permissions from a user
/rest/api/space/{spaceKey}/permissions/user/{userKey}/revoke
Space Property
- GETGet space properties
/rest/api/space/{spaceKey}/property - POSTCreate a space property
/rest/api/space/{spaceKey}/property - GETGet space property by key
/rest/api/space/{spaceKey}/property/{key} - PUTUpdate space property
/rest/api/space/{spaceKey}/property/{key} - POSTCreate a space property with a specific key
/rest/api/space/{spaceKey}/property/{key} - DELETEDelete space property
/rest/api/space/{spaceKey}/property/{key}
Space Watchers
SpaceColorScheme
- GETGet Space color scheme type
/rest/api/space/{spaceKey}/color-scheme/type - PUTUpdate Space color scheme type
/rest/api/space/{spaceKey}/color-scheme/type - GETGet Space color scheme
/rest/api/space/{spaceKey}/color-scheme - PUTUpdate Space color scheme
/rest/api/space/{spaceKey}/color-scheme - PUTReset Space color scheme
/rest/api/space/{spaceKey}/color-scheme/reset
User
- POSTChange password
/rest/api/user/current/password - GETGet information about anonymous user type
/rest/api/user/anonymous - GETGet current user
/rest/api/user/current - GETGet groups
/rest/api/user/memberof - GETGet user
/rest/api/user - GETGet registered users
/rest/api/user/list
User Group
- PUTUpdate user group
/rest/api/user/{username}/group/{groupName} - DELETEDelete user group
/rest/api/user/{username}/group/{groupName}
User Watch
- GETGet information about content watcher
/rest/api/user/watch/content/{contentId} - POSTAdd content watcher
/rest/api/user/watch/content/{contentId} - DELETERemove content watcher
/rest/api/user/watch/content/{contentId} - GETGet information about space watcher
/rest/api/user/watch/space/{spaceKey} - POSTAdd space watcher
/rest/api/user/watch/space/{spaceKey} - DELETERemove space watcher
/rest/api/user/watch/space/{spaceKey}
Webhooks
- GETFind webhooks
/rest/api/webhooks - POSTCreate webhook
/rest/api/webhooks - GETGet webhook
/rest/api/webhooks/{webhookId} - PUTUpdate webhook
/rest/api/webhooks/{webhookId} - DELETEDelete webhook
/rest/api/webhooks/{webhookId} - GETGet latest invocations
/rest/api/webhooks/{webhookId}/latest - GETGet statistic
/rest/api/webhooks/{webhookId}/statistics - GETGet statistics summary
/rest/api/webhooks/{webhookId}/statistics/summary - POSTTest webhook
/rest/api/webhooks/test