Adds a group to a content restriction. That is, grant read or update
permission to the group for a piece of content.
Permissions required:
Permission to edit the content.
The name of the group to add to the content restriction.
Type: string
The ID of the content that the restriction applies to.
Type: string
The operation that the restriction applies to.
Type: string
Potential values: read, update
Adds labels to a piece of content. Does not modify the existing labels.
Notes:
Permissions required:
Permission to update the content.
The ID of the content that will have labels added to it.
Type: string
The labels to add to the content.
Type: array
[ {
"prefix" : "The prefix for the label.",
"name" : "The name of the label, which will be shown in the UI."
} ]
Adds restrictions to a piece of content. Note, this does not change any
existing restrictions on the content.
Permissions required:
Permission to edit the content.
The ID of the content to add restrictions to.
Type: string
The restrictions to be added to the content.
Type: array
[ {
"restrictions" : {
"user" : [ {
"accountId" : "The account ID of the user, which uniquely identifies the user across all Atlassian products.\nFor example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`. Required, unless `username` or `userKey` is specified.",
"type" : "Set to 'known'.",
"userKey" : "This property has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe user key of the user. Required, unless `accountId` or `username` is specified.",
"username" : "This property has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe username of the user. For example, _admin_. Required, unless `accountId` or `userKey` is specified."
} ],
"group" : [ {
"name" : "The name of the group.",
"type" : "Set to 'group'."
} ]
},
"operation" : "The restriction operation applied to content."
} ]
A multi-value parameter indicating which properties of the content
restrictions (returned in response) to expand.
restrictions.user
returns the piece of content that the restrictions arerestrictions.group
returns the piece of content that the restrictions arecontent
returns the piece of content that the restrictions areType: array
[ "string. Possible values: restrictions.user | restrictions.group | content" ]
Adds a user to a content restriction. That is, grant read or update
permission to the user for a piece of content.
Permissions required:
Permission to edit the content.
The ID of the content that the restriction applies to.
Type: string
The operation that the restriction applies to.
Type: string
The account ID of the user to add to the content restriction. The accountId uniquely identifies the user across
all Atlassian products. For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
.
Required, unless username
or userKey
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The key of the user to add to the content restriction. Required, unless the username
or accountId
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The username of the user to add to the content restriction. Required, unless the key
or accountId
is specified.
Type: string
Adds a user as a watcher to a piece of content. Choose the user by doing
one of the following:
username
, key
, or accountId
to identify the user.username
and key
have been deprecated in favor of accountId
. See theNote, you must add the X-Atlassian-Token: no-check
header when making a
request, as this operation has XSRF protection.
Permissions required:
'Confluence Administrator' global permission if specifying a user, otherwise
permission to access the Confluence site ('Can use' global permission).
The ID of the content to add the watcher to.
Type: string
The accountId
of the user to be added as a watcher. The accountId uniquely identifies the user across all Atlassian products.
For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
. Required, unless username
or userKey
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The key
of the user to be added as a watcher. Required, unless the username
or accountId
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The username
of the user to be added as a watcher. Required, unless the key
or accountId
is specified.
Type: string
Adds a user as a watcher to a label. Choose the user by doing one of the
following:
username
, key
, or accountId
to identify the user.username
and key
have been deprecated in favor of accountId
. See theNote, you must add the X-Atlassian-Token: no-check
header when making a
request, as this operation has XSRF protection.
Permissions required:
'Confluence Administrator' global permission if specifying a user, otherwise
permission to access the Confluence site ('Can use' global permission).
The name of the label to add the watcher to.
Type: string
The accountId
of the user to be added as a watcher. The accountId uniquely identifies the user across all Atlassian products.
For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
. Required, unless username
or userKey
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The key
of the user to be added as a watcher. Required, unless the username
or accountId
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The username
of the user to be added as a watcher. Required, unless the key
or accountId
is specified.
Type: string
Adds a user as a watcher to a space. Choose the user by doing one of the
following:
username
, key
, or accountId
to identify the user.username
and key
have been deprecated in favor of accountId
. See theNote, you must add the X-Atlassian-Token: no-check
header when making a
request, as this operation has XSRF protection.
Permissions required:
'Confluence Administrator' global permission if specifying a user, otherwise
permission to access the Confluence site ('Can use' global permission).
The key of the space to add the watcher to.
Type: string
The accountId
of the user to be added as a watcher. The accountId uniquely identifies the user across all
Atlassian products. For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
.
Required, unless username
or userKey
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The key
of the user to be added as a watcher. Required, unless the username
or accountId
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The username
of the user to be added as a watcher. Required, unless the key
or accountId
is specified.
Type: string
Converts a content body from one format to another format.
Supported conversions:
Permissions required:
If request specifies 'contentIdContext', 'View' permission for the space, and permission to view the content.
The name of the target format for the content body.
Type: string
The content body to convert.
Type: object
{
"value" : "The body of the content in the relevant format.",
"representation" : "The content format type. Set the value of this property to\nthe name of the format being used, e.g. 'storage'."
}
The content ID used to find the space for resolving embedded content
(page includes, files, and links) in the content body. For example,
if the source content contains the link ``
and the contentIdContext=123
parameter is provided, then the link
will be converted to a link to the "Example page" page in the same space
that has the content with ID=123. Note, spaceKeyContext
will be ignored
if this parameter is provided.
Type: string
Mode used for rendering embedded content, like attachments.
current
renders the embedded content using the latest version.version-at-save
renders the embedded content using the version atType: string
Potential values: current, version-at-save
A multi-value parameter indicating which properties of the content to expand.
childTypes.all
returns whether the content has attachments, comments, or child pages.childTypes.attachment
returns whether the content has attachments.childTypes.comment
returns whether the content has comments.childTypes.page
returns whether the content has child pages.container
returns the space that the content is in. This is the same as the informationmetadata.currentuser
returns information about the current user in relation to the content,metadata.properties
returns content properties that have been set via the Confluence REST API.metadata.labels
returns the labels that have been added to the content.metadata.frontend
(this property is only used by Atlassian)operations
returns the operations for the content, which are used when setting permissions.children.page
returns pages that are descendants at the level immediately below the content.children.attachment
returns all attachments for the content.children.comment
returns all comments on the content.restrictions.read.restrictions.user
returns the users that have permission to read the content.restrictions.read.restrictions.group
returns the groups that have permission to read the content. Note thatrestrictions.update.restrictions.user
returns the users that have permission to update the content.restrictions.update.restrictions.group
returns the groups that have permission to update the content. Note thathistory
returns the history of the content, including the date it was created.history.lastUpdated
returns information about the most recent update of the content, includinghistory.previousVersion
returns information about the update prior to the current content update.history.contributors
returns all of the users who have contributed to the content.history.nextVersion
returns information about the update after to the current content update.ancestors
returns the parent page, if the content is a page.body
returns the body of the content in different formats, including the editor format,version
returns information about the most recent update of the content, including who updated itdescendants.page
returns pages that are descendants at any level below the content.descendants.attachment
returns all attachments for the content, same as children.attachment
.descendants.comment
returns all comments on the content, same as children.comment
.space
returns the space that the content is in. This is the same as the information returned byIn addition, the following comment-specific expansions can be used:
extensions.inlineProperties
returns inline comment-specific properties.extensions.resolution
returns the resolution status of each comment.Type: array
[ "string. Possible values: childTypes.all | childTypes.attachment | childTypes.comment | childTypes.page | container | metadata.currentuser | metadata.properties | metadata.labels | metadata.frontend | operations | children.page | children.attachment | children.comment | restrictions.read.restrictions.user | restrictions.read.restrictions.group | restrictions.update.restrictions.user | restrictions.update.restrictions.group | history | history.lastUpdated | history.previousVersion | history.contributors | history.nextVersion | ancestors | body | version | descendants.page | descendants.attachment | descendants.comment | space" ]
The space key used for resolving embedded content (page includes,
files, and links) in the content body. For example, if the source content
contains the link ``
and the spaceKeyContext=TEST
parameter is provided, then the link
will be converted to a link to the "Example page" page in the "TEST" space.
Type: string
Converts one or more CQL queries with user identifiers (username or user key)
to equivalent CQL queries with account IDs.
You may wish to use this operation if your system stores CQL queries and you
want to make them GDPR-compliant. For more information about GDPR-related changes,
see the migration guide.
Permissions required: None
Copy page hierarchy allows the copying of an entire hierarchy of pages and their associated properties, permissions and attachments.
The id path parameter refers to the content id of the page to copy, and the new parent of this copied page is defined using the destinationPageId in the request body.
The titleOptions object defines the rules of renaming page titles during the copy;
for example, search and replace can be used in conjunction to rewrite the copied page titles.
Response example:
{
"id" : "1180606",
"links" : {
"status" : "/rest/api/longtask/1180606"
}
}
Use the /longtask/ REST API to get the copy task status.
Type: string
Request object from json post body
Type: object
{
"copyAttachments" : "boolean",
"originalPageId" : "string",
"copyPermissions" : "boolean",
"copyLabels" : "boolean",
"copyProperties" : "boolean",
"destinationPageId" : "ContentId",
"titleOptions" : {
"search" : "string",
"prefix" : "string",
"replace" : "string"
}
}
Creates a record in the audit log.
Permissions required:
'Confluence Administrator' global permission.
The record to be created in the audit log.
Type: object
{
"summary" : "The summary of the event, which is displayed in the 'Change' column on\nthe audit log in the Confluence UI.",
"changedValues" : [ {
"newValue" : "Required string",
"name" : "Required string",
"oldValue" : "Required string"
} ],
"author" : {
"operations" : { },
"displayName" : "The name that is displayed on the audit log in the Confluence UI.",
"type" : "Set to 'user'.",
"userKey" : "The userKey of the user that actioned the event.",
"username" : "The username of the user that actioned the event."
},
"affectedObject" : {
"name" : "Required string",
"objectType" : "Required string"
},
"description" : "A long description of the event, which is displayed in the 'Description'\nfield on the audit log in the Confluence UI.",
"associatedObjects" : [ {
"name" : "Required string",
"objectType" : "Required string"
} ],
"sysAdmin" : "Indicates whether the event was actioned by a system administrator.",
"creationDate" : "The creation date-time of the audit record, as a timestamp. This is converted\nto a date-time display in the Confluence UI. If the `creationDate` is not\nspecified, then it will be set to the timestamp for the current date-time.",
"category" : "The category of the event, which is displayed in the 'Event type' column\non the audit log in the Confluence UI.",
"remoteAddress" : "The IP address of the computer where the event was initiated from."
}
Creates a new piece of content or publishes an existing draft.
To publish a draft, add the id
and status
properties to the body of the request.
Set the id
to the ID of the draft and set the status
to 'current'. When the
request is sent, a new piece of content will be created and the metadata from the
draft will be transferred into it.
By default, the following objects are expanded: space
, history
, version
.
Permissions required: 'Add' permission for the
space that the content will be created in, and permission to view the draft if publishing a draft.
The new content to be created. Set the representation
to the name of the body
format type. For example, if you use storage
for the body format, set
'representation
=storage
'.
If you are not sure how to generate the different formats, you can create a page in the
Confluence application, retrieve the content using Get content,
and expand the desired content format, e.g. expand=body.storage
.
Type: object
{
"id" : "The ID of the draft content. Required when publishing a draft.",
"title" : "Required string",
"type" : "The type of the new content. Custom content types defined by apps are also supported.",
"ancestors" : [ {
"id" : "The `id` of the parent content."
} ],
"body" : {
"view" : {
"value" : "The body of the content in the relevant format.",
"representation" : "The content format type. Set the value of this property to\nthe name of the format being used, e.g. 'storage'."
},
"export_view" : {
"value" : "The body of the content in the relevant format.",
"representation" : "The content format type. Set the value of this property to\nthe name of the format being used, e.g. 'storage'."
},
"styled_view" : {
"value" : "The body of the content in the relevant format.",
"representation" : "The content format type. Set the value of this property to\nthe name of the format being used, e.g. 'storage'."
},
"storage" : {
"value" : "The body of the content in the relevant format.",
"representation" : "The content format type. Set the value of this property to\nthe name of the format being used, e.g. 'storage'."
},
"editor2" : {
"value" : "The body of the content in the relevant format.",
"representation" : "The content format type. Set the value of this property to\nthe name of the format being used, e.g. 'storage'."
},
"anonymous_export_view" : {
"value" : "The body of the content in the relevant format.",
"representation" : "The content format type. Set the value of this property to\nthe name of the format being used, e.g. 'storage'."
}
},
"space" : {
"key" : "The key of the space."
},
"status" : "The status of the new content."
}
A multi-value parameter indicating which properties of the content to expand.
childTypes.all
returns whether the content has attachments, comments, or child pages.childTypes.attachment
returns whether the content has attachments.childTypes.comment
returns whether the content has comments.childTypes.page
returns whether the content has child pages.container
returns the space that the content is in. This is the same as the informationmetadata.currentuser
returns information about the current user in relation to the content,metadata.properties
returns content properties that have been set via the Confluence REST API.metadata.labels
returns the labels that have been added to the content.metadata.frontend
(this property is only used by Atlassian)operations
returns the operations for the content, which are used when setting permissions.children.page
returns pages that are descendants at the level immediately below the content.children.attachment
returns all attachments for the content.children.comment
returns all comments on the content.restrictions.read.restrictions.user
returns the users that have permission to read the content.restrictions.read.restrictions.group
returns the groups that have permission to read the content. Note thatrestrictions.update.restrictions.user
returns the users that have permission to update the content.restrictions.update.restrictions.group
returns the groups that have permission to update the content. Note thathistory
returns the history of the content, including the date it was created.history.lastUpdated
returns information about the most recent update of the content, includinghistory.previousVersion
returns information about the update prior to the current content update.history.contributors
returns all of the users who have contributed to the content.history.nextVersion
returns information about the update after to the current content update.ancestors
returns the parent page, if the content is a page.body
returns the body of the content in different formats, including the editor format,version
returns information about the most recent update of the content, including who updated itdescendants.page
returns pages that are descendants at any level below the content.descendants.attachment
returns all attachments for the content, same as children.attachment
.descendants.comment
returns all comments on the content, same as children.comment
.space
returns the space that the content is in. This is the same as the information returned byIn addition, the following comment-specific expansions can be used:
extensions.inlineProperties
returns inline comment-specific properties.extensions.resolution
returns the resolution status of each comment.Type: array
[ "string. Possible values: childTypes.all | childTypes.attachment | childTypes.comment | childTypes.page | container | metadata.currentuser | metadata.properties | metadata.labels | metadata.frontend | operations | children.page | children.attachment | children.comment | restrictions.read.restrictions.user | restrictions.read.restrictions.group | restrictions.update.restrictions.user | restrictions.update.restrictions.group | history | history.lastUpdated | history.previousVersion | history.contributors | history.nextVersion | ancestors | body | version | descendants.page | descendants.attachment | descendants.comment | space" ]
Filter the returned content by status.
Type: string
Creates a new content template. Note, blueprint templates cannot be created via the REST API.
Permissions required:
'Admin' permission for the space to create a space template or 'Confluence Administrator'
global permission to create a global template.
The content template to be created.
The content body must be in 'storage' format.
Type: object
{
"templateType" : "The type of the new template. Set to `page`.",
"name" : "The name of the new template.",
"description" : "A description of the new template.",
"body" : {
"value" : "The body of the content in the relevant format.",
"representation" : "The content format type. Set the value of this property to\nthe name of the format being used, e.g. 'storage'."
},
"space" : {
"key" : "Required string"
},
"labels" : [ {
"prefix" : "Required string",
"name" : "Required string",
"id" : "Required string",
"label" : "Required string"
} ]
}
Creates a new space that is only visible to the creator. This method is
the same as the Create space method with permissions
set to the current user only. Note, currently you cannot set space
labels when creating a space.
Permissions required:
'Create Space(s)' global permission.
The space to be created.
Type: object
{
"name" : "The name of the new space.",
"description" : {
"plain" : {
"value" : "The space description.",
"representation" : "Set to 'plain'."
}
},
"key" : "The key for the new space. Format: See [Space\nkeys](https://confluence.atlassian.com/x/lqNMMQ)."
}
Creates a property for an existing piece of content. For more information
about content properties, see Confluence entity properties.
This is the same as Create content property for key
except that the key is specified in the request body instead of as a
path parameter.
Content properties can also be added when creating a new piece of content
by including them in the metadata.properties
of the request.
Permissions required:
Permission to update the content.
The ID of the content to add the property to.
Type: string
The content property to be created.
Type: object
{
"value" : { },
"key" : "The key of the new property."
}
Creates a property for an existing piece of content. For more information
about content properties, see Confluence entity properties.
This is the same as Create content property
except that the key is specified as a path parameter instead of in the
request body.
Content properties can also be added when creating a new piece of content
by including them in the metadata.properties
of the request.
Permissions required:
Permission to update the content.
The ID of the content to add the property to.
Type: string
The key of the content property. Required.
Type: string
The content property to be created.
Type: object
{
"value" : { }
}
Creates a new space property. This is the same as POST /space/{spaceKey}/property
but the key for the property is passed as a
path parameter, rather than in the request body.
Permissions required:
‘Admin’ permission for the space.
The key of the property to be created.
Type: string
The key of the space that the property will be created in.
Type: string
The space property to be created.
Type: object
{
"value" : { }
}
Creates a new space property.
Permissions required:
‘Admin’ permission for the space.
The key of the space that the property will be created in.
Type: string
The space property to be created.
Type: object
{
"value" : { },
"key" : "The key of the new property."
}
Creates a relationship between two entities (user, space, content). The
'favourite' relationship is supported by default, but you can use this method
to create any type of relationship between two entities.
For example, the following method creates a 'sibling' relationship between
two pieces of content:GET https://your-domain.atlassian.net/wiki/rest/api/relation/sibling/from/content/123/to/content/456
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
The name of the relationship. This method supports the 'favourite'
(i.e. 'save for later') relationship. You can also specify any other
value for this parameter to create a custom relationship type.
Type: string
The identifier for the source entity:
If sourceType
is 'user', then specify either 'current' (logged-in
user) or the user key.
If sourceType
is 'content', then specify the content ID.
If sourceType
is 'space', then specify the space key.
Type: string
The source entity type of the relationship. This must be 'user', if
the relationName
is 'favourite'.
Type: string
Potential values: user, content, space
The identifier for the target entity:
If sourceType
is 'user', then specify either 'current' (logged-in
user) or the user key.
If sourceType
is 'content', then specify the content ID.
If sourceType
is 'space', then specify the space key.
Type: string
The target entity type of the relationship. This must be 'space' or
'content', if the relationName
is 'favourite'.
Type: string
Potential values: user, content, space
The status of the source. This parameter is only used when thesourceType
is 'content'.
Type: string
The version of the source. This parameter is only used when thesourceType
is 'content' and the sourceStatus
is 'historical'.
Type: integer
The status of the target. This parameter is only used when thetargetType
is 'content'.
Type: string
The version of the target. This parameter is only used when thetargetType
is 'content' and the targetStatus
is 'historical'.
Type: integer
Creates a new space. Note, currently you cannot set space labels when
creating a space.
Permissions required:
'Create Space(s)' global permission.
The space to be created.
Type: object
{
"permissions" : [ {
"anonymousAccess" : "Grant anonymous users permission to use the operation.",
"subjects" : {
"_expandable" : {
"user" : "string",
"group" : "string"
},
"user" : {
"size" : "Required integer",
"results" : [ {
"_links" : "Required object",
"displayName" : "The display name of the user. Depending on the user's privacy setting, this may be the same as publicName.",
"accountType" : "The account type of the user, may return empty string if unavailable.",
"type" : "Required string. Possible values: known | unknown | anonymous | user",
"userKey" : "This property has been deprecated in favor of `accountId`, due to privacy changes. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe user key of the user.",
"accountId" : "The account ID of the user, which uniquely identifies the user across all Atlassian products.\nFor example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.",
"profilePicture" : {
"path" : "Required string",
"isDefault" : "Required boolean",
"width" : "Required integer",
"height" : "Required integer"
},
"operations" : [ {
"targetType" : "The space or content type that the operation applies to.",
"operation" : "The operation itself."
} ],
"publicName" : "The public name or nickname of the user. Will always contain a value.",
"details" : {
"business" : {
"location" : "This property has been deprecated due to privacy changes. There is no replacement. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.",
"position" : "This property has been deprecated due to privacy changes. There is no replacement. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.",
"department" : "This property has been deprecated due to privacy changes. There is no replacement. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details."
},
"personal" : {
"website" : "This property has been deprecated due to privacy changes. There is no replacement. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.",
"im" : "This property has been deprecated due to privacy changes. There is no replacement. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.",
"phone" : "This property has been deprecated due to privacy changes. There is no replacement. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.",
"email" : "This property has been deprecated due to privacy changes. Use the `User.email` property instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details."
}
},
"_expandable" : {
"operations" : "string",
"details" : "string",
"personalSpace" : "string"
},
"email" : "The email address of the user. Depending on the user's privacy setting, this may return an empty string.",
"username" : "This property has been deprecated in favor of `accountId`, due to privacy changes. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe username of the user. For example, _admin_.",
"personalSpace" : {
"settings" : {
"_links" : "Required object",
"routeOverrideEnabled" : "Defines whether an override for the space home should be used. This is\nused in conjunction with a space theme provided by an app. For\nexample, if this property is set to true, a theme can display a page\nother than the space homepage when users visit the root URL for a\nspace. This property allows apps to provide content-only theming\nwithout overriding the space home."
},
"metadata" : {
"labels" : {
"size" : "Required integer",
"_links" : "Required object",
"start" : "Required integer",
"limit" : "Required integer",
"results" : [ {
"prefix" : "Required string",
"name" : "Required string",
"id" : "Required string",
"label" : "Required string"
} ]
}
},
"_links" : "Required object",
"icon" : {
"path" : "Required string",
"isDefault" : "Required boolean",
"width" : "Required integer",
"height" : "Required integer"
},
"description" : {
"view" : {
"embeddedContent" : [ { } ],
"value" : "Required string",
"representation" : "Required string. Possible values: plain | view"
},
"plain" : {
"embeddedContent" : [ { } ],
"value" : "Required string",
"representation" : "Required string. Possible values: plain | view"
}
},
"history" : {
"createdDate" : "Required date-time"
},
"type" : "Required string",
"operations" : [ {
"targetType" : "The space or content type that the operation applies to.",
"operation" : "The operation itself."
} ],
"lookAndFeel" : {
"bordersAndDividers" : {
"color" : "Required string"
},
"headings" : {
"color" : "Required string"
},
"header" : {
"button" : {
"backgroundColor" : "Required string",
"color" : "Required string"
},
"backgroundColor" : "Required string",
"primaryNavigation" : {
"color" : "Required string",
"hoverOrFocus" : {
"backgroundColor" : "Required string",
"color" : "Required string"
}
},
"search" : {
"backgroundColor" : "Required string",
"color" : "Required string"
},
"secondaryNavigation" : {
"color" : "Required string",
"hoverOrFocus" : {
"backgroundColor" : "Required string",
"color" : "Required string"
}
}
},
"links" : {
"color" : "Required string"
},
"menus" : {
"color" : "Required string",
"hoverOrFocus" : {
"backgroundColor" : "Required string"
}
},
"content" : {
"container" : {
"padding" : "Required string",
"backgroundColor" : "Required string",
"borderRadius" : "Required string",
"background" : "Required string",
"backgroundImage" : "Required string",
"backgroundSize" : "Required string"
},
"screen" : {
"gutterRight" : "Required string",
"gutterLeft" : "Required string",
"gutterTop" : "Required string",
"backgroundColor" : "Required string",
"background" : "Required string",
"backgroundImage" : "Required string",
"backgroundSize" : "Required string",
"gutterBottom" : "Required string"
},
"header" : {
"padding" : "Required string",
"backgroundColor" : "Required string",
"borderRadius" : "Required string",
"background" : "Required string",
"backgroundImage" : "Required string",
"backgroundSize" : "Required string"
},
"body" : {
"padding" : "Required string",
"backgroundColor" : "Required string",
"borderRadius" : "Required string",
"background" : "Required string",
"backgroundImage" : "Required string",
"backgroundSize" : "Required string"
}
}
},
"permissions" : [ "SpacePermission" ],
"name" : "Required string",
"theme" : {
"name" : "Required string",
"icon" : {
"path" : "Required string",
"isDefault" : "Required boolean",
"width" : "Required integer",
"height" : "Required integer"
},
"description" : "Required string",
"themeKey" : "Required string",
"_links" : "Required object"
},
"id" : "Required integer",
"_expandable" : {
"settings" : "string",
"metadata" : "string",
"operations" : "string",
"lookAndFeel" : "string",
"permissions" : "string",
"icon" : "string",
"description" : "string",
"theme" : "string",
"history" : "string",
"homepage" : "string"
},
"key" : "Required string",
"homepage" : {
"container" : { },
"_links" : "object",
"restrictions" : {
"read" : {
"_links" : "Required object",
"restrictions" : {
"_expandable" : {
"user" : "string",
"group" : "string"
},
"user" : {
"size" : "Required integer",
"start" : "Required integer",
"limit" : "Required integer",
"results" : [ "User" ]
},
"group" : {
"size" : "Required integer",
"start" : "Required integer",
"limit" : "Required integer",
"results" : [ {
"_links" : "Required object",
"name" : "Required string",
"type" : "Required string. Possible values: group"
} ]
}
},
"_expandable" : {
"restrictions" : "string",
"content" : "string"
},
"operation" : "Required string. Possible values: administer | copy | create | delete | export | move | purge | purge_version | read | restore | update | use",
"content" : "Content"
},
"_links" : "Required object",
"update" : {
"_links" : "Required object",
"restrictions" : {
"_expandable" : {
"user" : "string",
"group" : "string"
},
"user" : {
"size" : "Required integer",
"start" : "Required integer",
"limit" : "Required integer",
"results" : [ "User" ]
},
"group" : {
"size" : "Required integer",
"start" : "Required integer",
"limit" : "Required integer",
"results" : [ {
"_links" : "Required object",
"name" : "Required string",
"type" : "Required string. Possible values: group"
} ]
}
},
"_expandable" : {
"restrictions" : "string",
"content" : "string"
},
"operation" : "Required string. Possible values: administer | copy | create | delete | export | move | purge | purge_version | read | restore | update | use",
"content" : "Content"
}
},
"history" : {
"lastUpdated" : {
"number" : "Required integer",
"minorEdit" : "Required boolean",
"_links" : "Required object",
"by" : "Required User",
"friendlyWhen" : "Required string",
"collaborators" : {
"_links" : "object",
"userKeys" : [ "string" ],
"users" : [ "User" ]
},
"message" : "Required string",
"_expandable" : {
"collaborators" : "Required string",
"content" : "Required string"
},
"when" : "Required date-time",
"content" : "Content"
},
"createdDate" : "Required date-time",
"createdBy" : "Required User",
"_links" : "object",
"previousVersion" : {
"number" : "Required integer",
"minorEdit" : "Required boolean",
"_links" : "Required object",
"by" : "Required User",
"friendlyWhen" : "Required string",
"collaborators" : {
"_links" : "object",
"userKeys" : [ "string" ],
"users" : [ "User" ]
},
"message" : "Required string",
"_expandable" : {
"collaborators" : "Required string",
"content" : "Required string"
},
"when" : "Required date-time",
"content" : "Content"
},
"contributors" : {
"publishers" : {
"_links" : "object",
"userKeys" : [ "string" ],
"users" : [ "User" ]
}
},
"_expandable" : {
"lastUpdated" : "string",
"previousVersion" : "string",
"contributors" : "string",
"nextVersion" : "string"
},
"nextVersion" : {
"number" : "Required integer",
"minorEdit" : "Required boolean",
"_links" : "Required object",
"by" : "Required User",
"friendlyWhen" : "Required string",
"collaborators" : {
"_links" : "object",
"userKeys" : [ "string" ],
"users" : [ "User" ]
},
"message" : "Required string",
"_expandable" : {
"collaborators" : "Required string",
"content" : "Required string"
},
"when" : "Required date-time",
"content" : "Content"
},
"latest" : "Required boolean"
},
"type" : "Required string",
"title" : "Required string",
"body" : {
"view" : {
"webresource" : {
"uris" : {
"all" : "string",
"css" : "string",
"js" : "string"
},
"keys" : [ "string" ],
"superbatch" : {
"uris" : {
"all" : "string",
"css" : "string",
"js" : "string"
},
"metatags" : "string",
"tags" : {
"all" : "string",
"css" : "string",
"data" : "string",
"js" : "string"
}
},
"contexts" : [ "string" ],
"tags" : {
"all" : "string",
"css" : "string",
"data" : "string",
"js" : "string"
}
},
"embeddedContent" : [ {
"entityId" : "integer",
"entity" : { }
} ],
"_expandable" : {
"content" : "string"
},
"value" : "Required string",
"representation" : "Required string. Possible values: view | export_view | styled_view | storage | editor2 | anonymous_export_view"
},
"export_view" : {
"webresource" : {
"uris" : {
"all" : "string",
"css" : "string",
"js" : "string"
},
"keys" : [ "string" ],
"superbatch" : {
"uris" : {
"all" : "string",
"css" : "string",
"js" : "string"
},
"metatags" : "string",
"tags" : {
"all" : "string",
"css" : "string",
"data" : "string",
"js" : "string"
}
},
"contexts" : [ "string" ],
"tags" : {
"all" : "string",
"css" : "string",
"data" : "string",
"js" : "string"
}
},
"embeddedContent" : [ {
"entityId" : "integer",
"entity" : { }
} ],
"_expandable" : {
"content" : "string"
},
"value" : "Required string",
"representation" : "Required string. Possible values: view | export_view | styled_view | storage | editor2 | anonymous_export_view"
},
"styled_view" : {
"webresource" : {
"uris" : {
"all" : "string",
"css" : "string",
"js" : "string"
},
"keys" : [ "string" ],
"superbatch" : {
"uris" : {
"all" : "string",
"css" : "string",
"js" : "string"
},
"metatags" : "string",
"tags" : {
"all" : "string",
"css" : "string",
"data" : "string",
"js" : "string"
}
},
"contexts" : [ "string" ],
"tags" : {
"all" : "string",
"css" : "string",
"data" : "string",
"js" : "string"
}
},
"embeddedContent" : [ {
"entityId" : "integer",
"entity" : { }
} ],
"_expandable" : {
"content" : "string"
},
"value" : "Required string",
"representation" : "Required string. Possible values: view | export_view | styled_view | storage | editor2 | anonymous_export_view"
},
"storage" : {
"webresource" : {
"uris" : {
"all" : "string",
"css" : "string",
"js" : "string"
},
"keys" : [ "string" ],
"superbatch" : {
"uris" : {
"all" : "string",
"css" : "string",
"js" : "string"
},
"metatags" : "string",
"tags" : {
"all" : "string",
"css" : "string",
"data" : "string",
"js" : "string"
}
},
"contexts" : [ "string" ],
"tags" : {
"all" : "string",
"css" : "string",
"data" : "string",
"js" : "string"
}
},
"embeddedContent" : [ {
"entityId" : "integer",
"entity" : { }
} ],
"_expandable" : {
"content" : "string"
},
"value" : "Required string",
"representation" : "Required string. Possible values: view | export_view | styled_view | storage | editor2 | anonymous_export_view"
},
"_expandable" : {
"editor" : "string",
"view" : "string",
"export_view" : "string",
"styled_view" : "string",
"storage" : "string",
"editor2" : "string",
"anonymous_export_view" : "string"
},
"editor2" : {
"webresource" : {
"uris" : {
"all" : "string",
"css" : "string",
"js" : "string"
},
"keys" : [ "string" ],
"superbatch" : {
"uris" : {
"all" : "string",
"css" : "string",
"js" : "string"
},
"metatags" : "string",
"tags" : {
"all" : "string",
"css" : "string",
"data" : "string",
"js" : "string"
}
},
"contexts" : [ "string" ],
"tags" : {
"all" : "string",
"css" : "string",
"data" : "string",
"js" : "string"
}
},
"embeddedContent" : [ {
"entityId" : "integer",
"entity" : { }
} ],
"_expandable" : {
"content" : "string"
},
"value" : "Required string",
"representation" : "Required string. Possible values: view | export_view | styled_view | storage | editor2 | anonymous_export_view"
},
"anonymous_export_view" : {
"webresource" : {
"uris" : {
"all" : "string",
"css" : "string",
"js" : "string"
},
"keys" : [ "string" ],
"superbatch" : {
"uris" : {
"all" : "string",
"css" : "string",
"js" : "string"
},
"metatags" : "string",
"tags" : {
"all" : "string",
"css" : "string",
"data" : "string",
"js" : "string"
}
},
"contexts" : [ "string" ],
"tags" : {
"all" : "string",
"css" : "string",
"data" : "string",
"js" : "string"
}
},
"embeddedContent" : [ {
"entityId" : "integer",
"entity" : { }
} ],
"_expandable" : {
"content" : "string"
},
"value" : "Required string",
"representation" : "Required string. Possible values: view | export_view | styled_view | storage | editor2 | anonymous_export_view"
}
},
"version" : {
"number" : "Required integer",
"minorEdit" : "Required boolean",
"_links" : "Required object",
"by" : "Required User",
"friendlyWhen" : "Required string",
"collaborators" : {
"_links" : "object",
"userKeys" : [ "string" ],
"users" : [ "User" ]
},
"message" : "Required string",
"_expandable" : {
"collaborators" : "Required string",
"content" : "Required string"
},
"when" : "Required date-time",
"content" : "Content"
},
"descendants" : {
"attachment" : {
"size" : "Required integer",
"_links" : "Required object",
"start" : "Required integer",
"limit" : "Required integer",
"results" : [ "Content" ]
},
"_links" : "Required object",
"comment" : {
"size" : "Required integer",
"_links" : "Required object",
"start" : "Required integer",
"limit" : "Required integer",
"results" : [ "Content" ]
},
"page" : {
"size" : "Required integer",
"_links" : "Required object",
"start" : "Required integer",
"limit" : "Required integer",
"results" : [ "Content" ]
},
"_expandable" : {
"attachment" : "string",
"comment" : "string",
"page" : "string"
}
},
"space" : "Space",
"childTypes" : {
"attachment" : {
"_links" : "Required object",
"value" : "Required boolean"
},
"comment" : {
"_links" : "Required object",
"value" : "Required boolean"
},
"page" : {
"_links" : "Required object",
"value" : "Required boolean"
},
"_expandable" : {
"all" : "string",
"attachment" : "string",
"comment" : "string",
"page" : "string"
}
},
"operations" : [ {
"targetType" : "The space or content type that the operation applies to.",
"operation" : "The operation itself."
} ],
"children" : {
"attachment" : {
"size" : "Required integer",
"_links" : "Required object",
"start" : "Required integer",
"limit" : "Required integer",
"results" : [ "Content" ]
},
"_links" : "Required object",
"comment" : {
"size" : "Required integer",
"_links" : "Required object",
"start" : "Required integer",
"limit" : "Required integer",
"results" : [ "Content" ]
},
"page" : {
"size" : "Required integer",
"_links" : "Required object",
"start" : "Required integer",
"limit" : "Required integer",
"results" : [ "Content" ]
},
"_expandable" : {
"attachment" : "string",
"comment" : "string",
"page" : "string"
}
},
"id" : "Required string",
"ancestors" : [ "Content" ],
"_expandable" : {
"childTypes" : "string",
"container" : "string",
"metadata" : "string",
"operations" : "string",
"children" : "string",
"restrictions" : "string",
"history" : "string",
"ancestors" : "string",
"body" : "string",
"version" : "string",
"descendants" : "string",
"space" : "string"
},
"status" : "Required string"
},
"status" : "Required string"
}
} ]
},
"group" : {
"size" : "Required integer",
"results" : [ {
"_links" : "Required object",
"name" : "Required string",
"type" : "Required string. Possible values: group"
} ]
}
},
"operation" : {
"targetType" : "The space or content type that the operation applies to.",
"operation" : "The operation itself."
},
"unlicensedAccess" : "Grants access to unlicensed users from JIRA Service Desk when used\nwith the 'read space' operation."
} ],
"name" : "The name of the new space.",
"description" : {
"plain" : {
"value" : "The space description.",
"representation" : "Set to 'plain'."
}
},
"key" : "The key for the new space. Format: See [Space\nkeys](https://confluence.atlassian.com/x/lqNMMQ)."
}
Moves a piece of content to the space's trash or purges it from the trash,
depending on the content's type and status:
page
or blogpost
and its status is current
,page
or blogpost
and its status is trashed
,status
query parameter to trashed
in your request.comment
or attachment
, it will be deletedPermissions required:
'Delete' permission for the space that the content is in, and permission to edit the content.
The ID of the content to be deleted.
Type: string
Set this to trashed
, if the content's status is trashed
and you want to purge it.
Type: string
Deletes a content property. For more information about content properties, see
Confluence entity properties.
Permissions required:
Permission to update the content.
The ID of the content that the property belongs to.
Type: string
The key of the property.
Type: string
Deletes a space property.
Permissions required:
‘Admin’ permission for the space.
The key of the property to be deleted.
Type: string
The key of the space that the property is in.
Type: string
Deletes a relationship between two entities (user, space, content).
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
For favourite relationships, the current user can only delete their own
favourite relationships. A space administrator can delete favourite
relationships for any user.
The name of the relationship.
Type: string
The identifier for the source entity:
If sourceType
is 'user', then specify either 'current' (logged-in
user) or the user key.
If sourceType
is 'content', then specify the content ID.
If sourceType
is 'space', then specify the space key.
Type: string
The source entity type of the relationship. This must be 'user', if
the relationName
is 'favourite'.
Type: string
Potential values: user, content, space
The identifier for the target entity:
If sourceType
is 'user', then specify either 'current' (logged-in
user) or the user key.
If sourceType
is 'content', then specify the content ID.
If sourceType
is 'space', then specify the space key.
Type: string
The target entity type of the relationship. This must be 'space' or
'content', if the relationName
is 'favourite'.
Type: string
Potential values: user, content, space
The status of the source. This parameter is only used when thesourceType
is 'content'.
Type: string
The version of the source. This parameter is only used when thesourceType
is 'content' and the sourceStatus
is 'historical'.
Type: integer
The status of the target. This parameter is only used when thetargetType
is 'content'.
Type: string
The version of the target. This parameter is only used when thetargetType
is 'content' and the targetStatus
is 'historical'.
Type: integer
Removes all restrictions (read and update) on a piece of content.
Permissions required:
Permission to edit the content.
The ID of the content to remove restrictions from.
Type: string
A multi-value parameter indicating which properties of the content
restrictions (returned in response) to expand.
restrictions.user
returns the piece of content that the restrictions arerestrictions.group
returns the piece of content that the restrictions arecontent
returns the piece of content that the restrictions areType: array
[ "string. Possible values: restrictions.user | restrictions.group | content" ]
Deletes a space. Note, the space will be deleted in a long running task.
Therefore, the space may not be deleted yet when this method has
returned. Clients should poll the status link that is returned in the
response until the task completes.
Permissions required:
'Admin' permission for the space.
Delete a historical version. This does not delete the changes made to the
content in that version, rather the changes for the deleted version are
rolled up into the next version. Note, you cannot delete the current version.
Permissions required:
Permission to update the content.
The ID of the content that the version will be deleted from.
Type: string
The number of the version to be deleted. The version number starts
from 1 up to current version.
Type: integer
Exports audit records as a CSV file or ZIP file.
Permissions required:
'Confluence Administrator' global permission.
Filters the exported results to the records on or before the endDate
.
The endDate
must be specified as a timestamp.
Type: string
The format of the export file for the audit records.
Type: string
Potential values: csv, zip
Filters the exported results to records that have string property values
matching the searchString
.
Type: string
Filters the exported results to the records on or after the startDate
.
The startDate
must be specified as a timestamp.
Type: string
Returns all target entities that have a particular relationship to the
source entity. Note, relationships are one way.
For example, the following method finds all users that have a 'collaborator'
relationship to a piece of content with an ID of '1234':GET https://your-domain.atlassian.net/wiki/rest/api/relation/collaborator/to/content/1234/from/user
Note, 'collaborator' is an example custom relationship type.
Permissions required:
Permission to view both the target entity and source entity.
The name of the relationship. This method supports relationships created via
Create relationship.
Note, this method does not support 'favourite' relationships.
Type: string
The source entity type of the relationship.
Type: string
Potential values: user, content, space
The identifier for the target entity:
targetType
is user
, then specify either current
(logged-in user), the user key of the user, ortargetType
is 'content', then specify the content ID.targetType
is 'space', then specify the space key.Type: string
The target entity type of the relationship.
Type: string
Potential values: user, content, space
A multi-value parameter indicating which properties of the response
object to expand.
relationData
returns information about the relationship, such assource
returns the source entity.target
returns the target entity.Type: array
[ "string. Possible values: relationData | source | target" ]
The status of the source. This parameter is only used when thesourceType
is 'content'.
Type: string
The version of the source. This parameter is only used when thesourceType
is 'content' and the sourceStatus
is 'historical'.
Type: integer
The status of the target. This parameter is only used when thetargetType
is 'content'.
Type: string
The version of the target. This parameter is only used when thetargetType
is 'content' and the targetStatus
is 'historical'.
Type: integer
Returns all target entities that have a particular relationship to the
source entity. Note, relationships are one way.
For example, the following method finds all content that the current user
has an 'ignore' relationship with:GET https://your-domain.atlassian.net/wiki/rest/api/relation/ignore/from/user/current/to/content
Note, 'ignore' is an example custom relationship type.
Permissions required:
Permission to view both the target entity and source entity.
The name of the relationship. This method supports relationships created via
Create relationship.
Note, this method does not support 'favourite' relationships.
Type: string
The identifier for the source entity:
sourceType
is user
, then specify either current
(logged-in user), the user key of the user, orsourceType
is 'content', then specify the content ID.sourceType
is 'space', then specify the space key.Type: string
The source entity type of the relationship.
Type: string
Potential values: user, content, space
The target entity type of the relationship.
Type: string
Potential values: user, content, space
A multi-value parameter indicating which properties of the response
object to expand.
relationData
returns information about the relationship, such assource
returns the source entity.target
returns the target entity.Type: array
[ "string. Possible values: relationData | source | target" ]
The status of the source. This parameter is only used when thesourceType
is 'content'.
Type: string
The version of the source. This parameter is only used when thesourceType
is 'content' and the sourceStatus
is 'historical'.
Type: integer
The status of the target. This parameter is only used when thetargetType
is 'content'.
Type: string
The version of the target. This parameter is only used when thetargetType
is 'content' and the targetStatus
is 'historical'.
Type: integer
Returns information about how anonymous users are represented, like the
profile picture and display name.
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
A multi-value parameter indicating which properties of the user to
expand.
operations
returns the operations that the user is allowed to do.Type: array
[ "string. Possible values: operations" ]
Returns the accountIds for the users specified in the key or username parameters. Note that multiple key and username parameters can be specified.
Permissions required:
'Confluence Administrator' global permission if specifying a user, otherwise
permission to access the Confluence site ('Can use' global permission).
The key of a user. To specify multiple users, pass multiple key parameters separated by ampersands.
For example, key=mia&key=alana. Required if username isn't provided. Cannot be provided if username is present.
Type: array
[ "string" ]
The username of a user. To specify multiple users, pass multiple username parameters separated by ampersands.
For example, username=mia&username=alana. Required if key isn't provided. Cannot be provided if key is present.
Type: array
[ "string" ]
Returns user email addresses for a set of accountIds. This API is only available to apps approved by
Atlassian, according to these guidelines.
Any accounts which are not available will not be included in the result.
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
Returns user details for the ids provided in request.
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
A list of accountId's of users to be returned.
Type: string
A multi-value parameter indicating which properties of the user to
expand.
operations
returns the operations that the user is allowed to do.details.personal
returns the 'Personal' details in the user's profile, like the 'Email' and 'Phone'.details.business
returns the 'Company' details in the user's profile, like the 'Position' and 'Department'.Type: array
[ "string. Possible values: operations | details.personal | details.business | personalSpace" ]
Returns a single piece of content, like a page or a blog post.
By default, the following objects are expanded: space
, history
, version
.
Permissions required:
Permission to view the content. If the content is a blog post, 'View' permission
for the space is required.
The ID of the content to be returned. If you don't know the content ID,
use Get content and filter the results.
Type: string
The version of embedded content (e.g. attachments) to render.
Type: string
Potential values: current, version-at-save
A multi-value parameter indicating which properties of the content to expand.
childTypes.all
returns whether the content has attachments, comments, or child pages.childTypes.attachment
returns whether the content has attachments.childTypes.comment
returns whether the content has comments.childTypes.page
returns whether the content has child pages.container
returns the space that the content is in. This is the same as the informationmetadata.currentuser
returns information about the current user in relation to the content,metadata.properties
returns content properties that have been set via the Confluence REST API.metadata.labels
returns the labels that have been added to the content.metadata.frontend
(this property is only used by Atlassian)operations
returns the operations for the content, which are used when setting permissions.children.page
returns pages that are descendants at the level immediately below the content.children.attachment
returns all attachments for the content.children.comment
returns all comments on the content.restrictions.read.restrictions.user
returns the users that have permission to read the content.restrictions.read.restrictions.group
returns the groups that have permission to read the content. Note thatrestrictions.update.restrictions.user
returns the users that have permission to update the content.restrictions.update.restrictions.group
returns the groups that have permission to update the content. Note thathistory
returns the history of the content, including the date it was created.history.lastUpdated
returns information about the most recent update of the content, includinghistory.previousVersion
returns information about the update prior to the current content update.history.contributors
returns all of the users who have contributed to the content.history.nextVersion
returns information about the update after to the current content update.ancestors
returns the parent page, if the content is a page.body
returns the body of the content in different formats, including the editor format,version
returns information about the most recent update of the content, including who updated itdescendants.page
returns pages that are descendants at any level below the content.descendants.attachment
returns all attachments for the content, same as children.attachment
.descendants.comment
returns all comments on the content, same as children.comment
.space
returns the space that the content is in. This is the same as the information returned byIn addition, the following comment-specific expansions can be used:
extensions.inlineProperties
returns inline comment-specific properties.extensions.resolution
returns the resolution status of each comment.Type: array
[ "string. Possible values: childTypes.all | childTypes.attachment | childTypes.comment | childTypes.page | container | metadata.currentuser | metadata.properties | metadata.labels | metadata.frontend | operations | children.page | children.attachment | children.comment | restrictions.read.restrictions.user | restrictions.read.restrictions.group | restrictions.update.restrictions.user | restrictions.update.restrictions.group | history | history.lastUpdated | history.previousVersion | history.contributors | history.nextVersion | ancestors | body | version | descendants.page | descendants.attachment | descendants.comment | space" ]
Filter the results to a set of content based on their status.
If set to any
, content with any status is returned. Note, thehistorical
status is currently not supported.
Type: array
[ "string. Possible values: current | trashed | draft | any" ]
If set to viewed
, the request will trigger a 'viewed' event for the content.
When this event is triggered, the page/blogpost will appear on the 'Recently visited'
tab of the user's Confluence dashboard.
Type: string
Potential values: viewed
The version number of the content to be returned.
Type: integer
Returns all content of a given type, in a space. The returned content is
ordered by content ID in ascending order.
Permissions required:
'View' permission for the space. Note, the returned list will only
contain content that the current user has permission to view.
The key of the space to be queried for its content.
Type: string
The type of content to return.
Type: string
Potential values: page, blogpost
Filter the results to content at the root level of the space or all
content.
Type: string
Potential values: all, root
A multi-value parameter indicating which properties of the content to expand.
childTypes.all
returns whether the content has attachments, comments, or child pages.childTypes.attachment
returns whether the content has attachments.childTypes.comment
returns whether the content has comments.childTypes.page
returns whether the content has child pages.container
returns the space that the content is in. This is the same as the informationmetadata.currentuser
returns information about the current user in relation to the content,metadata.properties
returns content properties that have been set via the Confluence REST API.metadata.labels
returns the labels that have been added to the content.metadata.frontend
(this property is only used by Atlassian)operations
returns the operations for the content, which are used when setting permissions.children.page
returns pages that are descendants at the level immediately below the content.children.attachment
returns all attachments for the content.children.comment
returns all comments on the content.restrictions.read.restrictions.user
returns the users that have permission to read the content.restrictions.read.restrictions.group
returns the groups that have permission to read the content. Note thatrestrictions.update.restrictions.user
returns the users that have permission to update the content.restrictions.update.restrictions.group
returns the groups that have permission to update the content. Note thathistory
returns the history of the content, including the date it was created.history.lastUpdated
returns information about the most recent update of the content, includinghistory.previousVersion
returns information about the update prior to the current content update.history.contributors
returns all of the users who have contributed to the content.history.nextVersion
returns information about the update after to the current content update.ancestors
returns the parent page, if the content is a page.body
returns the body of the content in different formats, including the editor format,version
returns information about the most recent update of the content, including who updated itdescendants.page
returns pages that are descendants at any level below the content.descendants.attachment
returns all attachments for the content, same as children.attachment
.descendants.comment
returns all comments on the content, same as children.comment
.space
returns the space that the content is in. This is the same as the information returned byIn addition, the following comment-specific expansions can be used:
extensions.inlineProperties
returns inline comment-specific properties.extensions.resolution
returns the resolution status of each comment.Type: array
[ "string. Possible values: childTypes.all | childTypes.attachment | childTypes.comment | childTypes.page | container | metadata.currentuser | metadata.properties | metadata.labels | metadata.frontend | operations | children.page | children.attachment | children.comment | restrictions.read.restrictions.user | restrictions.read.restrictions.group | restrictions.update.restrictions.user | restrictions.update.restrictions.group | history | history.lastUpdated | history.previousVersion | history.contributors | history.nextVersion | ancestors | body | version | descendants.page | descendants.attachment | descendants.comment | space" ]
Returns all content in a space. The returned content is grouped by type
(pages then blogposts), then ordered by content ID in ascending order.
Permissions required:
'View' permission for the space. Note, the returned list will only
contain content that the current user has permission to view.
The key of the space to be queried for its content.
Type: string
Filter the results to content at the root level of the space or all content.
Type: string
Potential values: all, root
A multi-value parameter indicating which properties of the content to expand.
childTypes.all
returns whether the content has attachments, comments, or child pages.childTypes.attachment
returns whether the content has attachments.childTypes.comment
returns whether the content has comments.childTypes.page
returns whether the content has child pages.container
returns the space that the content is in. This is the same as the informationmetadata.currentuser
returns information about the current user in relation to the content,metadata.properties
returns content properties that have been set via the Confluence REST API.metadata.labels
returns the labels that have been added to the content.metadata.frontend
(this property is only used by Atlassian)operations
returns the operations for the content, which are used when setting permissions.children.page
returns pages that are descendants at the level immediately below the content.children.attachment
returns all attachments for the content.children.comment
returns all comments on the content.restrictions.read.restrictions.user
returns the users that have permission to read the content.restrictions.read.restrictions.group
returns the groups that have permission to read the content. Note thatrestrictions.update.restrictions.user
returns the users that have permission to update the content.restrictions.update.restrictions.group
returns the groups that have permission to update the content. Note thathistory
returns the history of the content, including the date it was created.history.lastUpdated
returns information about the most recent update of the content, includinghistory.previousVersion
returns information about the update prior to the current content update.history.contributors
returns all of the users who have contributed to the content.history.nextVersion
returns information about the update after to the current content update.ancestors
returns the parent page, if the content is a page.body
returns the body of the content in different formats, including the editor format,version
returns information about the most recent update of the content, including who updated itdescendants.page
returns pages that are descendants at any level below the content.descendants.attachment
returns all attachments for the content, same as children.attachment
.descendants.comment
returns all comments on the content, same as children.comment
.space
returns the space that the content is in. This is the same as the information returned byIn addition, the following comment-specific expansions can be used:
extensions.inlineProperties
returns inline comment-specific properties.extensions.resolution
returns the resolution status of each comment.Type: array
[ "string. Possible values: childTypes.all | childTypes.attachment | childTypes.comment | childTypes.page | container | metadata.currentuser | metadata.properties | metadata.labels | metadata.frontend | operations | children.page | children.attachment | children.comment | restrictions.read.restrictions.user | restrictions.read.restrictions.group | restrictions.update.restrictions.user | restrictions.update.restrictions.group | history | history.lastUpdated | history.previousVersion | history.contributors | history.nextVersion | ancestors | body | version | descendants.page | descendants.attachment | descendants.comment | space" ]
Returns whether the specified content restriction applies to a group.
For example, if a page with id=123
has a read
restriction for the admins
group,
the following request will return true
:
https://your-domain.atlassian.net/wiki/rest/api/content/123/restriction/byOperation/read/group/admins
Note that a response of true
does not guarantee that the group can view the page, as it does not account for
account-inherited restrictions, space permissions, or even product access. For more
information, see Confluence permissions.
Permissions required:
Permission to view the content.
The name of the group to be queried for whether the content restriction
applies to it.
Type: string
The ID of the content that the restriction applies to.
Type: string
The operation that the restriction applies to.
Type: string
Potential values: read, update
Returns whether the specified content restriction applies to a user.
For example, if a page with id=123
has a read
restriction for a user with an account ID of384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
, the following request will return true
:
https://your-domain.atlassian.net/wiki/rest/api/content/123/restriction/byOperation/read/user?accountId=384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
Note that a response of true
does not guarantee that the user can view the page, as it does not account for
account-inherited restrictions, space permissions, or even product access. For more
information, see Confluence permissions.
Permissions required:
Permission to view the content.
The ID of the content that the restriction applies to.
Type: string
The operation that is restricted.
Type: string
The account ID of the user to be queried for whether the content restriction applies to it. The accountId
uniquely identifies the user across all Atlassian products. For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
.
Required, unless username
or userKey
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The key of the user to be queried for whether the content restriction applies to it.
Required, unless the username
or accountId
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The username of the user to be queried for whether the content restriction applies to it.
Required, unless the key
or accountId
is specified.
Type: string
Returns a content template. This includes information about template,
like the name, the space or blueprint that the template is in, the body
of the template, and more.
Permissions required:
'Admin' permission for the space to view space templates and 'Confluence
Administrator' global permission to view global templates.
Returns whether a user is watching a piece of content. Choose the user by
doing one of the following:
username
, key
, or accountId
to identify the user.username
and key
have been deprecated in favor of accountId
. See thePermissions required:
'Confluence Administrator' global permission if specifying a user, otherwise
permission to access the Confluence site ('Can use' global permission).
The ID of the content to be queried for whether the specified user is
watching it.
Type: string
The accountId
of the user to be queried for whether they are watching the content. The accountId uniquely
identifies the user across all Atlassian products. For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
.
Required, unless username
or userKey
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The key
of the user to be queried for whether they are watching the
content. Required, unless the username
or accountId
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The username
of the user to be queried for whether they are watching
the content. Required, unless the key
or accountId
is specified.
Type: string
Returns the currently logged-in user. This includes information about
the user, like the display name, userKey, account ID, profile picture,
and more.
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
A multi-value parameter indicating which properties of the user to
expand.
operations
returns the operations that the user is allowed to do.details.personal
returns the 'Personal' details in the user's profile, like the 'Email' and 'Phone'.details.business
returns the 'Company' details in the user's profile, like the 'Position' and 'Department'.Type: array
[ "string. Possible values: operations | details.personal | details.business | personalSpace" ]
This operation has no parameters
Returns a user group for a given group name.
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
The name of the group. This is the same as the group name shown in
the Confluence administration console.
Type: string
Returns the most recent update for a piece of content.
Permissions required: Permission to view the content.
The ID of the content to be queried for its history.
Type: string
A multi-value parameter indicating which properties of the content history to expand.
lastUpdated
returns information about the most recent update of the content,previousVersion
returns information about the update prior to the current contentlastUpdated
.contributors
returns all of the users who have contributed to the content.nextVersion
This parameter is not used for this method.Type: array
[ "string. Possible values: lastUpdated | previousVersion | contributors | nextVersion" ]
Returns the look and feel settings for the site or a single space. This
includes attributes such as the color scheme, padding, and border radius.
The look and feel settings for a space can be inherited from the global
look and feel settings or provided by a theme.
Permissions required:
None
The key of the space for which the look and feel settings will be
returned. If this is not set, only the global look and feel settings
are returned.
Type: string
Returns the body of a macro in storage format, for the given macro ID.
This includes information like the name of the macro, the body of the macro,
and any macro parameters. This method is mainly used by Cloud apps.
About the macro ID: When a macro is created in a new version of content,
Confluence will generate a random ID for it, unless an ID is specified
(by an app). The macro ID will look similar to this: '50884bd9-0cb8-41d5-98be-f80943c14f96'.
The ID is then persisted as new versions of content are created, and is
only modified by Confluence if there are conflicting IDs.
Note, to preserve backwards compatibility this resource will also match on
the hash of the macro body, even if a macro ID is found. This check will
eventually become redundant, as macro IDs are generated for pages and
transparently propagate out to all instances.
Permissions required:
Permission to view the content that the macro is in.
The ID for the content that contains the macro.
Type: string
The ID of the macro. This is usually passed by the app that the
macro is in. Otherwise, find the macro ID by querying the desired
content and version, then expanding the body in storage format.
For example, '/content/196611/version/7?expand=content.body.storage'.
Type: string
The version of the content that contains the macro.
Type: integer
Returns a user's email address. This API is only available to apps approved by
Atlassian, according to these guidelines.
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
The account ID of the user, which uniquely identifies the user across all Atlassian products.
For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
. Required.
Type: string
Returns a content property for a piece of content. For more information, see
Confluence entity properties.
Permissions required:
'View' permission for the space, and permission to view the content if it is a page.
The ID of the content to be queried for the property.
Type: string
The key of the content property.
Type: string
A multi-value parameter indicating which properties of the content to
expand. By default, the version
object is expanded.
content
returns the content that the property is stored against.version
returns information about the version of the property, suchType: array
[ "string. Possible values: content | version" ]
Returns a space property.
Permissions required: ‘View’ permission for the space.
The key of the space property.
Type: string
The key of the space that the property is in.
Type: string
A multi-value parameter indicating which properties of the space
property to expand. By default, the version
object is expanded.
version
returns information about the version of the content.space
returns the space that the properties are in.Type: array
[ "string. Possible values: version | space" ]
Find whether a particular type of relationship exists from a source
entity to a target entity. Note, relationships are one way.
For example, you can use this method to find whether the current user has
selected a particular page as a favorite (i.e. 'save for later'):GET https://your-domain.atlassian.net/wiki/rest/api/relation/favourite/from/user/current/to/content/123
Permissions required:
Permission to view both the target entity and source entity.
The name of the relationship. This method supports the 'favourite'
(i.e. 'save for later') relationship as well as any other relationship
types created via Create relationship.
Type: string
The identifier for the source entity:
If sourceType
is user
, then specify either current
(logged-in user), the user key of the user, or
the account ID of the user. Note that the user key has been deprecated in favor of the account ID for this parameter. See the
migration guide
for details.
If sourceType
is 'content', then specify the content ID.
If sourceType
is 'space', then specify the space key.
Type: string
The source entity type of the relationship. This must be 'user', if
the relationName
is 'favourite'.
Type: string
Potential values: user, content, space
The identifier for the target entity:
targetType
is user
, then specify either current
(logged-in user), the user key of the user, ortargetType
is 'content', then specify the content ID.targetType
is 'space', then specify the space key.Type: string
The target entity type of the relationship. This must be 'space' or
'content', if the relationName
is 'favourite'.
Type: string
Potential values: user, content, space
A multi-value parameter indicating which properties of the response
object to expand.
relationData
returns information about the relationship, such assource
returns the source entity.target
returns the target entity.Type: array
[ "string. Possible values: relationData | source | target" ]
The status of the source. This parameter is only used when thesourceType
is 'content'.
Type: string
The version of the source. This parameter is only used when thesourceType
is 'content' and the sourceStatus
is 'historical'.
Type: integer
The status of the target. This parameter is only used when thetargetType
is 'content'.
Type: string
The version of the target. This parameter is only used when thetargetType
is 'content' and the targetStatus
is 'historical'.
Type: integer
This operation has no parameters
Returns a space. This includes information like the name, description,
and permissions, but not the content in the space.
Permissions required:
'View' permission for the space.
The key of the space to be returned.
Type: string
A multi-value parameter indicating which properties of the spaces to
expand, where:
settings
returns the settings for the space, similar to Get space settings.metadata.labels
returns the space labels, which are used to categorize the space.operations
returns the operations for a space, which are used when setting permissions.lookAndFeel
returns information about the look and feel of the space, including the color scheme.permissions
returns the permissions for the space. Note that this may return permissions for deleted groups,icon
returns information about space icon.description.plain
returns the description of the space.description.view
returns the description of the space.theme
returns information about the space theme.homepage
returns information about the space homepage.Type: array
[ "string. Possible values: settings | metadata.labels | operations | lookAndFeel | permissions | icon | description.plain | description.view | theme | homepage" ]
This operation has no parameters
Returns information about an active long-running task (e.g. space export),
such as how long it has been running and the percentage of the task that
has completed.
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
Returns a theme. This includes information about the theme name,
description, and icon.
Permissions required: None
Returns the theme selected for a space, if one is set. If no space
theme is set, this means that the space is inheriting the global look
and feel settings.
Permissions required: ‘View’ permission for the space.
Returns a user. This includes information about the user, like the
display name, userKey, account ID, profile picture, and more.
The username
, key
, or accountId
parameter must be specified, in
order to identify the user.
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
The account ID of the user, which uniquely identifies the user across all Atlassian products.
For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
. Required, unless username
or userKey
is specified.
Type: string
A multi-value parameter indicating which properties of the user to
expand.
operations
returns the operations that the user is allowed to do.details.personal
returns the 'Personal' details in the user's profile, like the 'Email' and 'Phone'.details.business
returns the 'Company' details in the user's profile, like the 'Position' and 'Department'.Type: array
[ "string. Possible values: operations | details.personal | details.business | personalSpace" ]
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The userKey of the user to be returned. Required, unless theusername
or accountId
is specified. The key
uniquely identifies
a user in a Confluence instance and does not change.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The username of the user to be returned. Required, unless the key
or accountId
is specified. The username
uniquely identifies a
user in a Confluence instance but can change if the user is renamed.
Type: string
Returns a version for a piece of content.
Permissions required:
Permission to view the content. If the content is a blog post, 'View' permission
for the space is required.
The ID of the content to be queried for its version.
Type: string
The number of the version to be retrieved.
Type: integer
A multi-value parameter indicating which properties of the content to
expand. By default, the content
object is expanded.
collaborators
returns the users that collaborated on the version.content
returns the content for the version.Type: array
[ "string. Possible values: collaborators | content" ]
Returns whether a user is watching a label. Choose the user by doing one
of the following:
username
, key
, or accountId
to identify the user.username
and key
have been deprecated in favor of accountId
. See thePermissions required:
'Confluence Administrator' global permission if specifying a user, otherwise
permission to access the Confluence site ('Can use' global permission).
The name of the label to be queried for whether the specified user is
watching it.
Type: string
The accountId
of the user to be queried for whether they are watching the label. The accountId uniquely identifies
the user across all Atlassian products. For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
.
Required, unless username
or userKey
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The key
of the user to be queried for whether they are watching the label. Required, unless the username
or accountId
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The username
of the user to be queried for whether they are watching the label. Required, unless the key
or accountId
is specified.
Type: string
Returns whether a user is watching a space. Choose the user by
doing one of the following:
username
, key
, or accountId
to identify the user.username
and key
have been deprecated in favor of accountId
. See thePermissions required:
'Confluence Administrator' global permission if specifying a user, otherwise
permission to access the Confluence site ('Can use' global permission).
The key of the space to be queried for whether the specified user is
watching it.
Type: string
The accountId
of the user to be queried for whether they are watching the space. The accountId uniquely identifies
the user across all Atlassian products. For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
.
Required, unless username
or userKey
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The key
of the user to be queried for whether they are watching the space. Required, unless the username
or accountId
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The username
of the user to be queried for whether they are watching the space. Required, unless the key
or accountId
is specified.
Type: string
Returns all descendants of a given type, for a piece of content. This is
similar to Get content children by type,
except that this method returns child pages at all levels, rather than just
the direct child pages.
A piece of content has different types of descendants, depending on its type:
page
: descendant is page
, comment
, attachment
blogpost
: descendant is comment
, attachment
attachment
: descendant is comment
comment
: descendant is attachment
Custom content types that are provided by apps can also be returned.
Permissions required:
'View' permission for the space, and permission to view the content if it
is a page.
The ID of the content to be queried for its descendants.
Type: string
The type of descendants to return.
Type: string
Potential values: page, comment, attachment
A multi-value parameter indicating which properties of the content to expand.
childTypes.all
returns whether the content has attachments, comments, or child pages.childTypes.attachment
returns whether the content has attachments.childTypes.comment
returns whether the content has comments.childTypes.page
returns whether the content has child pages.container
returns the space that the content is in. This is the same as the informationmetadata.currentuser
returns information about the current user in relation to the content,metadata.properties
returns content properties that have been set via the Confluence REST API.metadata.labels
returns the labels that have been added to the content.metadata.frontend
(this property is only used by Atlassian)operations
returns the operations for the content, which are used when setting permissions.children.page
returns pages that are descendants at the level immediately below the content.children.attachment
returns all attachments for the content.children.comment
returns all comments on the content.restrictions.read.restrictions.user
returns the users that have permission to read the content.restrictions.read.restrictions.group
returns the groups that have permission to read the content. Note thatrestrictions.update.restrictions.user
returns the users that have permission to update the content.restrictions.update.restrictions.group
returns the groups that have permission to update the content. Note thathistory
returns the history of the content, including the date it was created.history.lastUpdated
returns information about the most recent update of the content, includinghistory.previousVersion
returns information about the update prior to the current content update.history.contributors
returns all of the users who have contributed to the content.history.nextVersion
returns information about the update after to the current content update.ancestors
returns the parent page, if the content is a page.body
returns the body of the content in different formats, including the editor format,version
returns information about the most recent update of the content, including who updated itdescendants.page
returns pages that are descendants at any level below the content.descendants.attachment
returns all attachments for the content, same as children.attachment
.descendants.comment
returns all comments on the content, same as children.comment
.space
returns the space that the content is in. This is the same as the information returned byIn addition, the following comment-specific expansions can be used:
extensions.inlineProperties
returns inline comment-specific properties.extensions.resolution
returns the resolution status of each comment.Type: array
[ "string. Possible values: childTypes.all | childTypes.attachment | childTypes.comment | childTypes.page | container | metadata.currentuser | metadata.properties | metadata.labels | metadata.frontend | operations | children.page | children.attachment | children.comment | restrictions.read.restrictions.user | restrictions.read.restrictions.group | restrictions.update.restrictions.user | restrictions.update.restrictions.group | history | history.lastUpdated | history.previousVersion | history.contributors | history.nextVersion | ancestors | body | version | descendants.page | descendants.attachment | descendants.comment | space" ]
Returns the attachments for a piece of content.
By default, the following objects are expanded: metadata
.
Permissions required:
Permission to view the content. If the content is a blog post, 'View' permission
for the space is required.
The ID of the content to be queried for its attachments.
Type: string
A multi-value parameter indicating which properties of the content to expand.
childTypes.all
returns whether the content has attachments, comments, or child pages.childTypes.attachment
returns whether the content has attachments.childTypes.comment
returns whether the content has comments.childTypes.page
returns whether the content has child pages.container
returns the space that the content is in. This is the same as the informationmetadata.currentuser
returns information about the current user in relation to the content,metadata.properties
returns content properties that have been set via the Confluence REST API.metadata.labels
returns the labels that have been added to the content.metadata.frontend
(this property is only used by Atlassian)operations
returns the operations for the content, which are used when setting permissions.children.page
returns pages that are descendants at the level immediately below the content.children.attachment
returns all attachments for the content.children.comment
returns all comments on the content.restrictions.read.restrictions.user
returns the users that have permission to read the content.restrictions.read.restrictions.group
returns the groups that have permission to read the content. Note thatrestrictions.update.restrictions.user
returns the users that have permission to update the content.restrictions.update.restrictions.group
returns the groups that have permission to update the content. Note thathistory
returns the history of the content, including the date it was created.history.lastUpdated
returns information about the most recent update of the content, includinghistory.previousVersion
returns information about the update prior to the current content update.history.contributors
returns all of the users who have contributed to the content.history.nextVersion
returns information about the update after to the current content update.ancestors
returns the parent page, if the content is a page.body
returns the body of the content in different formats, including the editor format,version
returns information about the most recent update of the content, including who updated itdescendants.page
returns pages that are descendants at any level below the content.descendants.attachment
returns all attachments for the content, same as children.attachment
.descendants.comment
returns all comments on the content, same as children.comment
.space
returns the space that the content is in. This is the same as the information returned byIn addition, the following comment-specific expansions can be used:
extensions.inlineProperties
returns inline comment-specific properties.extensions.resolution
returns the resolution status of each comment.Type: array
[ "string. Possible values: childTypes.all | childTypes.attachment | childTypes.comment | childTypes.page | container | metadata.currentuser | metadata.properties | metadata.labels | metadata.frontend | operations | children.page | children.attachment | children.comment | restrictions.read.restrictions.user | restrictions.read.restrictions.group | restrictions.update.restrictions.user | restrictions.update.restrictions.group | history | history.lastUpdated | history.previousVersion | history.contributors | history.nextVersion | ancestors | body | version | descendants.page | descendants.attachment | descendants.comment | space" ]
Filter the results to attachments that match the filename.
Type: string
Filter the results to attachments that match the media type.
Type: string
Returns all records in the audit log, optionally for a certain date range.
This contains information about events like space exports, group membership
changes, app installations, etc. For more information, see
Audit log
in the Confluence administrator's guide.
Permissions required:
'Confluence Administrator' global permission.
Filters the results to the records on or before the endDate
.
The endDate
must be specified as a timestamp.
Type: string
Filters the results to records that have string property values
matching the searchString
.
Type: string
Filters the results to the records on or after the startDate
.
The startDate
must be specified as a timestamp.
Type: string
Returns records from the audit log, for a time period back from the current
date. For example, you can use this method to get the last 3 months of records.
This contains information about events like space exports, group membership
changes, app installations, etc. For more information, see
Audit log
in the Confluence administrator's guide.
Permissions required:
'Confluence Administrator' global permission.
The number of units for the time period.
Type: integer
Filters the results to records that have string property values
matching the searchString
.
Type: string
The unit of time that the time period is measured in.
Type: string
Potential values: NANOS, MICROS, MILLIS, SECONDS, MINUTES, HOURS, HALF_DAYS, DAYS, WEEKS, MONTHS, YEARS, DECADES, CENTURIES
Returns all templates provided by blueprints. Use this method to retrieve
all global blueprint templates or all blueprint templates in a space.
Note, all global blueprints are inherited by each space. Space blueprints
can be customised without affecting the global blueprints.
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
A multi-value parameter indicating which properties of the template
to expand.
body
returns the content of the template in storage format.Type: array
[ "string. Possible values: body" ]
The key of the space to be queried for templates. If the spaceKey
is not specified, global blueprint templates will be returned.
Type: string
Returns a map of the direct children of a piece of content. A piece of content
has different types of child content, depending on its type. These are
the default parent-child content type relationships:
page
: child content is page
, comment
, attachment
blogpost
: child content is comment
, attachment
attachment
: child content is comment
comment
: child content is attachment
Apps can override these default relationships. Apps can also introduce
new content types that create new parent-child content relationships.
Note, the map will always include all child content types that are valid
for the content. However, if the content has no instances of a child content
type, the map will contain an empty array for that child content type.
Permissions required: 'View' permission for the space,
and permission to view the content if it is a page.
The ID of the content to be queried for its children.
Type: string
A multi-value parameter indicating which properties of the children to expand, where:
attachment
returns all attachments for the content.comments
returns all comments for the content.page
returns all child pages of the content.Type: array
[ "string. Possible values: attachment | comment | page" ]
The version of the parent content to retrieve children for.
Currently, this only works for the latest version.
Type: integer
Returns all children of a given type, for a piece of content.
A piece of content has different types of child content, depending on its type:
page
: child content is page
, comment
, attachment
blogpost
: child content is comment
, attachment
attachment
: child content is comment
comment
: child content is attachment
Custom content types that are provided by apps can also be returned.
Note, this method only returns direct children. To return children at all
levels, use Get descendants by type.
Permissions required: 'View' permission for the space,
and permission to view the content if it is a page.
The ID of the content to be queried for its children.
Type: string
The type of children to return.
Type: string
Potential values: page, comment, attachment
A multi-value parameter indicating which properties of the content to expand.
childTypes.all
returns whether the content has attachments, comments, or child pages.childTypes.attachment
returns whether the content has attachments.childTypes.comment
returns whether the content has comments.childTypes.page
returns whether the content has child pages.container
returns the space that the content is in. This is the same as the informationmetadata.currentuser
returns information about the current user in relation to the content,metadata.properties
returns content properties that have been set via the Confluence REST API.metadata.labels
returns the labels that have been added to the content.metadata.frontend
(this property is only used by Atlassian)operations
returns the operations for the content, which are used when setting permissions.children.page
returns pages that are descendants at the level immediately below the content.children.attachment
returns all attachments for the content.children.comment
returns all comments on the content.restrictions.read.restrictions.user
returns the users that have permission to read the content.restrictions.read.restrictions.group
returns the groups that have permission to read the content. Note thatrestrictions.update.restrictions.user
returns the users that have permission to update the content.restrictions.update.restrictions.group
returns the groups that have permission to update the content. Note thathistory
returns the history of the content, including the date it was created.history.lastUpdated
returns information about the most recent update of the content, includinghistory.previousVersion
returns information about the update prior to the current content update.history.contributors
returns all of the users who have contributed to the content.history.nextVersion
returns information about the update after to the current content update.ancestors
returns the parent page, if the content is a page.body
returns the body of the content in different formats, including the editor format,version
returns information about the most recent update of the content, including who updated itdescendants.page
returns pages that are descendants at any level below the content.descendants.attachment
returns all attachments for the content, same as children.attachment
.descendants.comment
returns all comments on the content, same as children.comment
.space
returns the space that the content is in. This is the same as the information returned byIn addition, the following comment-specific expansions can be used:
extensions.inlineProperties
returns inline comment-specific properties.extensions.resolution
returns the resolution status of each comment.Type: array
[ "string. Possible values: childTypes.all | childTypes.attachment | childTypes.comment | childTypes.page | container | metadata.currentuser | metadata.properties | metadata.labels | metadata.frontend | operations | children.page | children.attachment | children.comment | restrictions.read.restrictions.user | restrictions.read.restrictions.group | restrictions.update.restrictions.user | restrictions.update.restrictions.group | history | history.lastUpdated | history.previousVersion | history.contributors | history.nextVersion | ancestors | body | version | descendants.page | descendants.attachment | descendants.comment | space" ]
The version of the parent content to retrieve children for.
Currently, this only works for the latest version.
Type: integer
Returns the comments on a piece of content.
Permissions required: 'View' permission for the space,
and permission to view the content if it is a page.
The ID of the content to be queried for its comments.
Type: string
Currently, this parameter is not used.
Comments are returned at the root level only.
Type: string
A multi-value parameter indicating which properties of the content to expand.
childTypes.all
returns whether the content has attachments, comments, or child pages.childTypes.attachment
returns whether the content has attachments.childTypes.comment
returns whether the content has comments.childTypes.page
returns whether the content has child pages.container
returns the space that the content is in. This is the same as the informationmetadata.currentuser
returns information about the current user in relation to the content,metadata.properties
returns content properties that have been set via the Confluence REST API.metadata.labels
returns the labels that have been added to the content.metadata.frontend
(this property is only used by Atlassian)operations
returns the operations for the content, which are used when setting permissions.children.page
returns pages that are descendants at the level immediately below the content.children.attachment
returns all attachments for the content.children.comment
returns all comments on the content.restrictions.read.restrictions.user
returns the users that have permission to read the content.restrictions.read.restrictions.group
returns the groups that have permission to read the content. Note thatrestrictions.update.restrictions.user
returns the users that have permission to update the content.restrictions.update.restrictions.group
returns the groups that have permission to update the content. Note thathistory
returns the history of the content, including the date it was created.history.lastUpdated
returns information about the most recent update of the content, includinghistory.previousVersion
returns information about the update prior to the current content update.history.contributors
returns all of the users who have contributed to the content.history.nextVersion
returns information about the update after to the current content update.ancestors
returns the parent page, if the content is a page.body
returns the body of the content in different formats, including the editor format,version
returns information about the most recent update of the content, including who updated itdescendants.page
returns pages that are descendants at any level below the content.descendants.attachment
returns all attachments for the content, same as children.attachment
.descendants.comment
returns all comments on the content, same as children.comment
.space
returns the space that the content is in. This is the same as the information returned byIn addition, the following comment-specific expansions can be used:
extensions.inlineProperties
returns inline comment-specific properties.extensions.resolution
returns the resolution status of each comment.Type: array
[ "string. Possible values: childTypes.all | childTypes.attachment | childTypes.comment | childTypes.page | container | metadata.currentuser | metadata.properties | metadata.labels | metadata.frontend | operations | children.page | children.attachment | children.comment | restrictions.read.restrictions.user | restrictions.read.restrictions.group | restrictions.update.restrictions.user | restrictions.update.restrictions.group | history | history.lastUpdated | history.previousVersion | history.contributors | history.nextVersion | ancestors | body | version | descendants.page | descendants.attachment | descendants.comment | space" ]
The location of the comments in the page. Multiple locations can be specified.
If no location is specified, comments from all locations are returned.
Type: array
[ "string. Possible values: inline | footer | resolved" ]
The version of the parent content to retrieve children for.
Currently, this only works for the latest version.
Type: integer
Returns all content in a Confluence instance.
By default, the following objects are expanded: space
, history
, version
.
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
Only content that the user has permission to view will be returned.
A multi-value parameter indicating which properties of the content to expand.
childTypes.all
returns whether the content has attachments, comments, or child pages.childTypes.attachment
returns whether the content has attachments.childTypes.comment
returns whether the content has comments.childTypes.page
returns whether the content has child pages.container
returns the space that the content is in. This is the same as the informationmetadata.currentuser
returns information about the current user in relation to the content,metadata.properties
returns content properties that have been set via the Confluence REST API.metadata.labels
returns the labels that have been added to the content.metadata.frontend
(this property is only used by Atlassian)operations
returns the operations for the content, which are used when setting permissions.children.page
returns pages that are descendants at the level immediately below the content.children.attachment
returns all attachments for the content.children.comment
returns all comments on the content.restrictions.read.restrictions.user
returns the users that have permission to read the content.restrictions.read.restrictions.group
returns the groups that have permission to read the content. Note thatrestrictions.update.restrictions.user
returns the users that have permission to update the content.restrictions.update.restrictions.group
returns the groups that have permission to update the content. Note thathistory
returns the history of the content, including the date it was created.history.lastUpdated
returns information about the most recent update of the content, includinghistory.previousVersion
returns information about the update prior to the current content update.history.contributors
returns all of the users who have contributed to the content.history.nextVersion
returns information about the update after to the current content update.ancestors
returns the parent page, if the content is a page.body
returns the body of the content in different formats, including the editor format,version
returns information about the most recent update of the content, including who updated itdescendants.page
returns pages that are descendants at any level below the content.descendants.attachment
returns all attachments for the content, same as children.attachment
.descendants.comment
returns all comments on the content, same as children.comment
.space
returns the space that the content is in. This is the same as the information returned byIn addition, the following comment-specific expansions can be used:
extensions.inlineProperties
returns inline comment-specific properties.extensions.resolution
returns the resolution status of each comment.Type: array
[ "string. Possible values: childTypes.all | childTypes.attachment | childTypes.comment | childTypes.page | container | metadata.currentuser | metadata.properties | metadata.labels | metadata.frontend | operations | children.page | children.attachment | children.comment | restrictions.read.restrictions.user | restrictions.read.restrictions.group | restrictions.update.restrictions.user | restrictions.update.restrictions.group | history | history.lastUpdated | history.previousVersion | history.contributors | history.nextVersion | ancestors | body | version | descendants.page | descendants.attachment | descendants.comment | space" ]
Orders the content by a particular field. Specify the field and sort direction for
this parameter, as follows: 'fieldpath asc/desc'. For example, 'history.createdDate desc'.
Type: string
The posting date of the blog post to be returned. Required for
blogpost type. Format: yyyy-mm-dd.
Type: string
The key of the space to be queried for its content.
Type: string
Filter the results to a set of content based on their status. If set to any
,
content with any status is returned. Note, the historical
status is currently
not supported.
Type: array
[ "string. Possible values: current | trashed | draft | any" ]
The title of the page to be returned. Required for page type.
Type: string
If set to viewed
, the request will trigger a 'viewed' event for the content.
When this event is triggered, the page/blogpost will appear on the 'Recently visited'
tab of the user's Confluence dashboard.
Type: string
Potential values: viewed
The type of content to return.
Type: string
Potential values: page, blogpost
Returns all content templates. Use this method to retrieve all global
content templates or all content templates in a space.
Permissions required:
'Admin' permission for the space to view space templates and 'Confluence
Administrator' global permission to view global templates.
A multi-value parameter indicating which properties of the template
to expand.
body
returns the content of the template in storage format.Type: array
[ "string. Possible values: body" ]
The key of the space to be queried for templates. If the spaceKey
is not specified, global templates will be returned.
Type: string
Returns a map of the descendants of a piece of content. This is similar
to Get content children, except that this
method returns child pages at all levels, rather than just the direct
child pages.
A piece of content has different types of descendants, depending on its type:
page
: descendant is page
, comment
, attachment
blogpost
: descendant is comment
, attachment
attachment
: descendant is comment
comment
: descendant is attachment
The map will always include all descendant types that are valid for the content.
However, if the content has no instances of a descendant type, the map will
contain an empty array for that descendant type.
Permissions required:
'View' permission for the space, and permission to view the content if it
is a page.
The ID of the content to be queried for its descendants.
Type: string
A multi-value parameter indicating which properties of the children to
expand, where:
attachment
returns all attachments for the content.comments
returns all comments for the content.page
returns all child pages of the content.Type: array
[ "string. Possible values: attachment | comment | page" ]
Returns the groups that a user is a member of.
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
The account ID of the user, which uniquely identifies the user across all Atlassian products.
For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
. Required, unless username
or userKey
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The userKey of the user. Required, unless the username
or accountId
is specified. The key
uniquely identifies
a user in a Confluence instance and does not change.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The username of the user. Required, unless the key
or accountId
is specified. The username
uniquely identifies a
user in a Confluence instance but can change if the user is renamed.
Type: string
Returns all user groups. The returned groups are ordered alphabetically in
ascending order by group name.
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
This operation has no parameters
Returns the labels on a piece of content.
Permissions required:
'View' permission for the space and permission to view the content if it is a page.
The ID of the content to be queried for its labels.
Type: string
Filters the results to labels with the specified prefix. If this parameter
is not specified, then labels with any prefix will be returned.
global
prefix is used by default when a user adds a labelmy
prefix can be explicitly added by a user when adding a labelteam
can used when adding labels via Add labels to contentType: string
Potential values: global, my, team
Returns the users that are members of a group.
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
Returns the properties for a piece of content. For more information
about content properties, see Confluence entity properties.
Permissions required:
'View' permission for the space, and permission to view the content if it is a page.
The ID of the content to be queried for its properties.
Type: string
A multi-value parameter indicating which properties of the content to
expand. By default, the version
object is expanded.
content
returns the content that the property is stored against.version
returns information about the version of the property, suchType: array
[ "string. Possible values: content | version" ]
Returns all properties for the given space. Space properties are a key-value storage associated with a space.
Permissions required: ‘View’ permission for the space.
The key of the space to be queried for its properties.
Type: string
A multi-value parameter indicating which properties of the space
property to expand. By default, the version
object is expanded.
version
returns information about the version of the content.space
returns the space that the properties are in.Type: array
[ "string. Possible values: version | space" ]
Returns the restrictions on a piece of content.
Permissions required:
Permission to view the content.
The ID of the content to be queried for its restrictions.
Type: string
A multi-value parameter indicating which properties of the content
restrictions to expand. By default, the following objects are expanded:restrictions.user
, restrictions.group
.
restrictions.user
returns the piece of content that the restrictions arerestrictions.group
returns the piece of content that the restrictions arecontent
returns the piece of content that the restrictions areType: array
[ "string. Possible values: restrictions.user | restrictions.group | content" ]
Returns restrictions on a piece of content by operation. This method is
similar to Get restrictions except that
the operations are properties of the return object, rather than items in
a results array.
Permissions required:
Permission to view the content.
The ID of the content to be queried for its restrictions.
Type: string
A multi-value parameter indicating which properties of the content
restrictions to expand.
restrictions.user
returns the piece of content that the restrictions arerestrictions.group
returns the piece of content that the restrictions arecontent
returns the piece of content that the restrictions areType: array
[ "string. Possible values: restrictions.user | restrictions.group | content" ]
Returns the restictions on a piece of content for a given operation (read
or update).
Permissions required:
Permission to view the content.
The ID of the content to be queried for its restrictions.
Type: string
The operation type of the restrictions to be returned.
Type: string
Potential values: read, update
A multi-value parameter indicating which properties of the content
restrictions to expand.
restrictions.user
returns the piece of content that the restrictions arerestrictions.group
returns the piece of content that the restrictions arecontent
returns the piece of content that the restrictions areType: array
[ "string. Possible values: restrictions.user | restrictions.group | content" ]
Returns the settings of a space. Currently only therouteOverrideEnabled
setting can be returned.
Permissions required:
'View' permission for the space.
Returns all spaces. The returned spaces are ordered alphabetically in
ascending order by space key.
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
Note, the returned list will only contain spaces that the current user
has permission to view.
A multi-value parameter indicating which properties of the spaces to
expand, where:
settings
returns the settings for the space, similar to Get space settings.metadata.labels
returns the space labels, which are used to categorize the space.operations
returns the operations for a space, which are used when setting permissions.lookAndFeel
returns information about the look and feel of the space, including the color scheme.permissions
returns the permissions for the space. Note that this may return permissions for deleted groups,icon
returns information about space icon.description.plain
returns the description of the space.description.view
returns the description of the space.theme
returns information about the space theme.homepage
returns information about the space homepage.Type: array
[ "string. Possible values: settings | metadata.labels | operations | lookAndFeel | permissions | icon | description.plain | description.view | theme | homepage" ]
Filter the results to the favourite spaces of the user specified byfavouriteUserKey
. Note, 'favourite' spaces are also
known as 'saved for later' spaces.
Type: boolean
The userKey of the user, whose favourite spaces are used to filter
the results when using the favourite
parameter.
Leave blank for the current user. Use Get user to
get the userKey for a user.
Type: string
Filter the results to spaces based on their label.
Type: array
[ "string" ]
The key of the space to be returned. To return multiple spaces,
specify this parameter multiple times with different values.
Type: array
[ "string" ]
Filter the results to spaces based on their status.
Type: string
Potential values: current, archived
Filter the results to spaces based on their type.
Type: string
Potential values: global, personal
Returns information about all active long-running tasks (e.g. space export),
such as how long each task has been running and the percentage of each task
that has completed.
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
This operation has no parameters
Returns all themes, not including the default theme.
Permissions required: None
This operation has no parameters
Returns the versions for a piece of content in descending order.
Permissions required:
Permission to view the content. If the content is a blog post, 'View' permission
for the space is required.
The ID of the content to be queried for its versions.
Type: string
A multi-value parameter indicating which properties of the content to expand.
collaborators
returns the users that collaborated on the version.content
returns the content for the version.Type: array
[ "string. Possible values: collaborators | content" ]
Returns a list of watchers of a space
Returns the watches for a page. A user that watches a page will receive
receive notifications when the page is updated.
If you want to manage watches for a page, use the following user
methods:
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
Returns all space watches for the space that the content is in. A user that
watches a space will receive receive notifications when any content in the
space is updated.
If you want to manage watches for a space, use the following user
methods:
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
Publishes a legacy draft of a page created from a blueprint. Legacy drafts
will eventually be removed in favor of shared drafts. For now, this method
works the same as Publish shared draft.
By default, the following objects are expanded: body.storage
, history
, space
, version
, ancestors
.
Permissions required:
Permission to view the draft and 'Add' permission for the space that
the content will be created in.
The ID of the draft page that was created from a blueprint.
You can find the draftId
in the Confluence application by
opening the draft page and checking the page URL.
Type: string
Type: object
{
"title" : "The title of the content. If you don't want to change the title,\nset this to the current title of the draft.",
"type" : "The type of content. Set this to `page`.",
"ancestors" : [ {
"id" : "The content ID of the ancestor."
} ],
"version" : {
"number" : "The version number. Set this to `1`."
},
"space" : {
"key" : "The key of the space"
},
"status" : "The status of the content. Set this to `current` or omit it altogether."
}
A multi-value parameter indicating which properties of the content to expand.
childTypes.all
returns whether the content has attachments, comments, or child pages.childTypes.attachment
returns whether the content has attachments.childTypes.comment
returns whether the content has comments.childTypes.page
returns whether the content has child pages.container
returns the space that the content is in. This is the same as the informationmetadata.currentuser
returns information about the current user in relation to the content,metadata.properties
returns content properties that have been set via the Confluence REST API.metadata.labels
returns the labels that have been added to the content.metadata.frontend
(this property is only used by Atlassian)operations
returns the operations for the content, which are used when setting permissions.children.page
returns pages that are descendants at the level immediately below the content.children.attachment
returns all attachments for the content.children.comment
returns all comments on the content.restrictions.read.restrictions.user
returns the users that have permission to read the content.restrictions.read.restrictions.group
returns the groups that have permission to read the content. Note thatrestrictions.update.restrictions.user
returns the users that have permission to update the content.restrictions.update.restrictions.group
returns the groups that have permission to update the content. Note thathistory
returns the history of the content, including the date it was created.history.lastUpdated
returns information about the most recent update of the content, includinghistory.previousVersion
returns information about the update prior to the current content update.history.contributors
returns all of the users who have contributed to the content.history.nextVersion
returns information about the update after to the current content update.ancestors
returns the parent page, if the content is a page.body
returns the body of the content in different formats, including the editor format,version
returns information about the most recent update of the content, including who updated itdescendants.page
returns pages that are descendants at any level below the content.descendants.attachment
returns all attachments for the content, same as children.attachment
.descendants.comment
returns all comments on the content, same as children.comment
.space
returns the space that the content is in. This is the same as the information returned byIn addition, the following comment-specific expansions can be used:
extensions.inlineProperties
returns inline comment-specific properties.extensions.resolution
returns the resolution status of each comment.Type: array
[ "string. Possible values: childTypes.all | childTypes.attachment | childTypes.comment | childTypes.page | container | metadata.currentuser | metadata.properties | metadata.labels | metadata.frontend | operations | children.page | children.attachment | children.comment | restrictions.read.restrictions.user | restrictions.read.restrictions.group | restrictions.update.restrictions.user | restrictions.update.restrictions.group | history | history.lastUpdated | history.previousVersion | history.contributors | history.nextVersion | ancestors | body | version | descendants.page | descendants.attachment | descendants.comment | space" ]
The status of the content to be updated, i.e. the draft. This is set
to 'draft' by default, so you shouldn't need to specify it.
Type: string
Publishes a shared draft of a page created from a blueprint.
By default, the following objects are expanded: body.storage
, history
, space
, version
, ancestors
.
Permissions required:
Permission to view the draft and 'Add' permission for the space that
the content will be created in.
The ID of the draft page that was created from a blueprint.
You can find the draftId
in the Confluence application by
opening the draft page and checking the page URL.
Type: string
Type: object
{
"title" : "The title of the content. If you don't want to change the title,\nset this to the current title of the draft.",
"type" : "The type of content. Set this to `page`.",
"ancestors" : [ {
"id" : "The content ID of the ancestor."
} ],
"version" : {
"number" : "The version number. Set this to `1`."
},
"space" : {
"key" : "The key of the space"
},
"status" : "The status of the content. Set this to `current` or omit it altogether."
}
A multi-value parameter indicating which properties of the content to expand.
childTypes.all
returns whether the content has attachments, comments, or child pages.childTypes.attachment
returns whether the content has attachments.childTypes.comment
returns whether the content has comments.childTypes.page
returns whether the content has child pages.container
returns the space that the content is in. This is the same as the informationmetadata.currentuser
returns information about the current user in relation to the content,metadata.properties
returns content properties that have been set via the Confluence REST API.metadata.labels
returns the labels that have been added to the content.metadata.frontend
(this property is only used by Atlassian)operations
returns the operations for the content, which are used when setting permissions.children.page
returns pages that are descendants at the level immediately below the content.children.attachment
returns all attachments for the content.children.comment
returns all comments on the content.restrictions.read.restrictions.user
returns the users that have permission to read the content.restrictions.read.restrictions.group
returns the groups that have permission to read the content. Note thatrestrictions.update.restrictions.user
returns the users that have permission to update the content.restrictions.update.restrictions.group
returns the groups that have permission to update the content. Note thathistory
returns the history of the content, including the date it was created.history.lastUpdated
returns information about the most recent update of the content, includinghistory.previousVersion
returns information about the update prior to the current content update.history.contributors
returns all of the users who have contributed to the content.history.nextVersion
returns information about the update after to the current content update.ancestors
returns the parent page, if the content is a page.body
returns the body of the content in different formats, including the editor format,version
returns information about the most recent update of the content, including who updated itdescendants.page
returns pages that are descendants at any level below the content.descendants.attachment
returns all attachments for the content, same as children.attachment
.descendants.comment
returns all comments on the content, same as children.comment
.space
returns the space that the content is in. This is the same as the information returned byIn addition, the following comment-specific expansions can be used:
extensions.inlineProperties
returns inline comment-specific properties.extensions.resolution
returns the resolution status of each comment.Type: array
[ "string. Possible values: childTypes.all | childTypes.attachment | childTypes.comment | childTypes.page | container | metadata.currentuser | metadata.properties | metadata.labels | metadata.frontend | operations | children.page | children.attachment | children.comment | restrictions.read.restrictions.user | restrictions.read.restrictions.group | restrictions.update.restrictions.user | restrictions.update.restrictions.group | history | history.lastUpdated | history.previousVersion | history.contributors | history.nextVersion | ancestors | body | version | descendants.page | descendants.attachment | descendants.comment | space" ]
The status of the content to be updated, i.e. the draft. This is set
to 'draft' by default, so you shouldn't need to specify it.
Type: string
Removes a group from a content restriction. That is, remove read or update
permission for the group for a piece of content.
Permissions required:
Permission to edit the content.
The name of the group to remove from the content restriction.
Type: string
The ID of the content that the restriction applies to.
Type: string
The operation that the restriction applies to.
Type: string
Potential values: read, update
Removes a label from a piece of content. This is similar to
Remove label from content using query parameter
except that the label name is specified via a path parameter.
Use this method if the label name does not have "/" characters, as the path
parameter does not accept "/" characters for security reasons. Otherwise,
use Remove label from content using query parameter.
Permissions required:
Permission to update the content.
The ID of the content that the label will be removed from.
Type: string
The name of the label to be removed.
Type: string
Removes a label from a piece of content. This is similar to
Remove label from content
except that the label name is specified via a query parameter.
Use this method if the label name has "/" characters, as
Remove label from content using query parameter
does not accept "/" characters for the label name.
Permissions required:
Permission to update the content.
The ID of the content that the label will be removed from.
Type: string
The name of the label to be removed.
Type: string
Deletes a template. This results in different actions depending on the
type of template:
Note, unmodified blueprint templates cannot be deleted.
Removes a group from a content restriction. That is, remove read or update
permission for the group for a piece of content.
Permissions required:
Permission to edit the content.
The ID of the content that the restriction applies to.
Type: string
The operation that the restriction applies to.
Type: string
Potential values: read, update
The account ID of the user to remove from the content restriction. The accountId uniquely identifies the user
across all Atlassian products. For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
.
Required, unless username
or userKey
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The key of the user to remove from the content restriction. Required, unless the username
or accountId
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The username of the user to remove from the content restriction. Required, unless the key
or accountId
is specified.
Type: string
Removes a user as a watcher from a space. Choose the user by doing one of
the following:
username
, key
, or accountId
to identify the user.username
and key
have been deprecated in favor of accountId
. See thePermissions required:
'Confluence Administrator' global permission if specifying a user, otherwise
permission to access the Confluence site ('Can use' global permission).
The key of the space to remove the watcher from.
Type: string
The accountId
of the user to be removed as a watcher. The accountId uniquely identifies the user across all
Atlassian products. For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
.
Required, unless username
or userKey
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The key
of the user to be removed as a watcher. Required, unless the username
or accountId
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The username
of the user to be removed as a watcher. Required, unless the key
or accountId
is specified.
Type: string
Removes a user as a watcher from a piece of content. Choose the user by
doing one of the following:
username
, key
, or accountId
to identify the user.username
and key
have been deprecated in favor of accountId
. See thePermissions required:
'Confluence Administrator' global permission if specifying a user, otherwise
permission to access the Confluence site ('Can use' global permission).
The ID of the content to remove the watcher from.
Type: string
The accountId
of the user to be removed as a watcher. The accountId uniquely identifies the user across all Atlassian products.
For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
. Required, unless username
or userKey
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The key
of the user to be removed as a watcher. Required, unless the username
or accountId
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The username
of the user to be removed as a watcher. Required, unless the key
or accountId
is specified.
Type: string
Removes a user as a watcher from a label. Choose the user by doing one of
the following:
username
, key
, or accountId
to identify the user.username
and key
have been deprecated in favor of accountId
. See thePermissions required:
'Confluence Administrator' global permission if specifying a user, otherwise
permission to access the Confluence site ('Can use' global permission).
The name of the label to remove the watcher from.
Type: string
The accountId
of the user to be removed as a watcher. The accountId uniquely identifies the user across all Atlassian products.
For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
. Required, unless username
or userKey
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The key
of the user to be removed as a watcher. Required, unless the username
or accountId
is specified.
Type: string
This parameter has been deprecated due to privacy changes. Use accountId
instead. See the
migration guide
for details.
The username
of the user to be removed as a watcher. Required, unless the key
or accountId
is specified.
Type: string
Resets the custom look and feel settings for the site or a single space.
This changes the values of the custom settings to be the same as the
default settings. It does not change which settings (default or custom)
are selected. Note, the default space settings are inherited from the
current global settings.
Permissions required:
'Admin' permission for the space.
The key of the space for which the look and feel settings will be
reset. If this is not set, the global look and feel settings will
be reset.
Type: string
Resets the space theme. This means that the space will inherit the
global look and feel settings
Permissions required:
'Admin' permission for the space.
Restores a historical version to be the latest version. That is, a new version
is created with the content of the historical version.
Permissions required:
Permission to update the content.
The ID of the content for which the history will be restored.
Type: string
The content version to be restored.
Type: object
{
"operationKey" : "Set to 'RESTORE'.",
"params" : {
"message" : "Description for the version.",
"versionNumber" : "The version number to be restored."
}
}
A multi-value parameter indicating which properties of the returned
content to expand.
collaborators
returns the users that collaborated on the version.content
returns the content for the version.Type: array
[ "string. Possible values: collaborators | content" ]
Searches for content using the
Confluence Query Language (CQL)
Permissions required:
Permission to view the entities. Note, only entities that the user has
permission to view will be returned.
The CQL query to be used for the search. See
Advanced Searching using CQL
for instructions on how to build a CQL query.
Type: string
The space, content, and content status to execute the search
against.
spaceKey
Key of the space to search against. Optional.contentId
ID of the content to search against. Optional. Must bespaceKey
.contentStatuses
Content statuses to search against. Optional.Specify these values in an object. For example,cqlcontext={%22spaceKey%22:%22TEST%22, %22contentId%22:%22123%22}
Type: string
Include content from archived spaces in the results.
Type: boolean
Returns the list of content that matches a Confluence Query Language
(CQL) query. For information on CQL, see:
Advanced searching using CQL.
Permissions required:
Permission to access the Confluence site ('Can use' global permission).
Only content that the user has permission to view will be returned.
The CQL string that is used to find the requested content.
Type: string
The space, content, and content status to execute the search against.
Specify this as an object with the following properties:
spaceKey
Key of the space to search against. Optional.contentId
ID of the content to search against. Optional. MustspaceKey
.contentStatuses
Content statuses to search against. Optional.Type: string
A multi-value parameter indicating which properties of the content to expand.
childTypes.all
returns whether the content has attachments, comments, or child pages.childTypes.attachment
returns whether the content has attachments.childTypes.comment
returns whether the content has comments.childTypes.page
returns whether the content has child pages.container
returns the space that the content is in. This is the same as the informationmetadata.currentuser
returns information about the current user in relation to the content,metadata.properties
returns content properties that have been set via the Confluence REST API.metadata.labels
returns the labels that have been added to the content.metadata.frontend
(this property is only used by Atlassian)operations
returns the operations for the content, which are used when setting permissions.children.page
returns pages that are descendants at the level immediately below the content.children.attachment
returns all attachments for the content.children.comment
returns all comments on the content.restrictions.read.restrictions.user
returns the users that have permission to read the content.restrictions.read.restrictions.group
returns the groups that have permission to read the content. Note thatrestrictions.update.restrictions.user
returns the users that have permission to update the content.restrictions.update.restrictions.group
returns the groups that have permission to update the content. Note thathistory
returns the history of the content, including the date it was created.history.lastUpdated
returns information about the most recent update of the content, includinghistory.previousVersion
returns information about the update prior to the current content update.history.contributors
returns all of the users who have contributed to the content.history.nextVersion
returns information about the update after to the current content update.ancestors
returns the parent page, if the content is a page.body
returns the body of the content in different formats, including the editor format,version
returns information about the most recent update of the content, including who updated itdescendants.page
returns pages that are descendants at any level below the content.descendants.attachment
returns all attachments for the content, same as children.attachment
.descendants.comment
returns all comments on the content, same as children.comment
.space
returns the space that the content is in. This is the same as the information returned byIn addition, the following comment-specific expansions can be used:
extensions.inlineProperties
returns inline comment-specific properties.extensions.resolution
returns the resolution status of each comment.Type: array
[ "string. Possible values: childTypes.all | childTypes.attachment | childTypes.comment | childTypes.page | container | metadata.currentuser | metadata.properties | metadata.labels | metadata.frontend | operations | children.page | children.attachment | children.comment | restrictions.read.restrictions.user | restrictions.read.restrictions.group | restrictions.update.restrictions.user | restrictions.update.restrictions.group | history | history.lastUpdated | history.previousVersion | history.contributors | history.nextVersion | ancestors | body | version | descendants.page | descendants.attachment | descendants.comment | space" ]
Searches for users using user-specific queries from the
Confluence Query Language (CQL).
Note that some user fields may be set to null depending on the user's privacy settings.
These are: email, profilePicture, and displayName.
The CQL query to be used for the search. See
Advanced Searching using CQL
for instructions on how to build a CQL query.
Example queries:
cql=type=user will return all users
cql=user=“1234” will return user with accountId “1234”
You can also use IN, NOT IN, != operators
cql=user IN (“12”, “34") will return users with accountids “12” and “34”
cql=user.fullname~jo will return users with nickname/full name starting with “jo”
cql=user.accountid=“123” will return user with accountId “123”
Type: string
Sets the look and feel settings to either the default settings or the
custom settings, for the site or a single space. Note, the default
space settings are inherited from the current global settings.
Permissions required:
'Admin' permission for the space.
The look and feel settings to be set.
Type: object
{
"custom" : {
"bordersAndDividers" : {
"color" : "Required string"
},
"headings" : {
"color" : "Required string"
},
"header" : {
"button" : {
"backgroundColor" : "Required string",
"color" : "Required string"
},
"backgroundColor" : "Required string",
"primaryNavigation" : {
"color" : "Required string",
"hoverOrFocus" : {
"backgroundColor" : "Required string",
"color" : "Required string"
}
},
"search" : {
"backgroundColor" : "Required string",
"color" : "Required string"
},
"secondaryNavigation" : {
"color" : "Required string",
"hoverOrFocus" : {
"backgroundColor" : "Required string",
"color" : "Required string"
}
}
},
"links" : {
"color" : "Required string"
},
"menus" : {
"color" : "Required string",
"hoverOrFocus" : {
"backgroundColor" : "Required string"
}
},
"content" : {
"container" : {
"padding" : "Required string",
"backgroundColor" : "Required string",
"borderRadius" : "Required string",
"background" : "Required string",
"backgroundImage" : "Required string",
"backgroundSize" : "Required string"
},
"screen" : {
"gutterRight" : "Required string",
"gutterLeft" : "Required string",
"gutterTop" : "Required string",
"backgroundColor" : "Required string",
"background" : "Required string",
"backgroundImage" : "Required string",
"backgroundSize" : "Required string",
"gutterBottom" : "Required string"
},
"header" : {
"padding" : "Required string",
"backgroundColor" : "Required string",
"borderRadius" : "Required string",
"background" : "Required string",
"backgroundImage" : "Required string",
"backgroundSize" : "Required string"
},
"body" : {
"padding" : "Required string",
"backgroundColor" : "Required string",
"borderRadius" : "Required string",
"background" : "Required string",
"backgroundImage" : "Required string",
"backgroundSize" : "Required string"
}
}
},
"global" : {
"bordersAndDividers" : {
"color" : "Required string"
},
"headings" : {
"color" : "Required string"
},
"header" : {
"button" : {
"backgroundColor" : "Required string",
"color" : "Required string"
},
"backgroundColor" : "Required string",
"primaryNavigation" : {
"color" : "Required string",
"hoverOrFocus" : {
"backgroundColor" : "Required string",
"color" : "Required string"
}
},
"search" : {
"backgroundColor" : "Required string",
"color" : "Required string"
},
"secondaryNavigation" : {
"color" : "Required string",
"hoverOrFocus" : {
"backgroundColor" : "Required string",
"color" : "Required string"
}
}
},
"links" : {
"color" : "Required string"
},
"menus" : {
"color" : "Required string",
"hoverOrFocus" : {
"backgroundColor" : "Required string"
}
},
"content" : {
"container" : {
"padding" : "Required string",
"backgroundColor" : "Required string",
"borderRadius" : "Required string",
"background" : "Required string",
"backgroundImage" : "Required string",
"backgroundSize" : "Required string"
},
"screen" : {
"gutterRight" : "Required string",
"gutterLeft" : "Required string",
"gutterTop" : "Required string",
"backgroundColor" : "Required string",
"background" : "Required string",
"backgroundImage" : "Required string",
"backgroundSize" : "Required string",
"gutterBottom" : "Required string"
},
"header" : {
"padding" : "Required string",
"backgroundColor" : "Required string",
"borderRadius" : "Required string",
"background" : "Required string",
"backgroundImage" : "Required string",
"backgroundSize" : "Required string"
},
"body" : {
"padding" : "Required string",
"backgroundColor" : "Required string",
"borderRadius" : "Required string",
"background" : "Required string",
"backgroundImage" : "Required string",
"backgroundSize" : "Required string"
}
}
},
"selected" : "The look and feel scheme. If you set this to `global`, you must specify\nthe current global look and feel settings as a `global` object in this\nrequest. Similarly, if you set this to `custom`, you must specify the\ncurrent custom look and feel settings as a `custom` object in this request."
}
The key of the space for which the look and feel settings will be
set. If this is not set, the global look and feel settings will be
set.
Type: string
Sets the retention period for records in the audit log. The retention period
can be set to a maximum of 20 years.
Permissions required:
'Confluence Administrator' global permission.
The updated retention period.
Type: object
{
"number" : "The number of units for the retention period.",
"units" : "The unit of time that the retention period is measured in."
}
Sets the theme for a space. Note, if you want to reset the space theme to
the default Confluence theme, use the 'Reset space theme' method instead
of this method.
Permissions required:
'Admin' permission for the space.
The key of the space to set the theme for.
Type: string
Type: object
{
"themeKey" : "The key of the theme to be set as the space theme."
}
Updates a piece of content. Use this method to update the title or body
of a piece of content, change the status, change the parent page, and more.
Note, updating draft content is currently not supported.
Permissions required:
Permission to update the content.
The ID of the content to be updated.
Type: string
The updated content.
Type: object
{
"title" : "The updated title of the content. If you are not changing this field, set this to the current `title`.",
"type" : "The type of content. Set this to the current type of the content.",
"ancestors" : [ {
"id" : "The `id` of the parent content."
} ],
"body" : {
"view" : {
"value" : "The body of the content in the relevant format.",
"representation" : "The content format type. Set the value of this property to\nthe name of the format being used, e.g. 'storage'."
},
"export_view" : {
"value" : "The body of the content in the relevant format.",
"representation" : "The content format type. Set the value of this property to\nthe name of the format being used, e.g. 'storage'."
},
"styled_view" : {
"value" : "The body of the content in the relevant format.",
"representation" : "The content format type. Set the value of this property to\nthe name of the format being used, e.g. 'storage'."
},
"storage" : {
"value" : "The body of the content in the relevant format.",
"representation" : "The content format type. Set the value of this property to\nthe name of the format being used, e.g. 'storage'."
},
"editor2" : {
"value" : "The body of the content in the relevant format.",
"representation" : "The content format type. Set the value of this property to\nthe name of the format being used, e.g. 'storage'."
},
"anonymous_export_view" : {
"value" : "The body of the content in the relevant format.",
"representation" : "The content format type. Set the value of this property to\nthe name of the format being used, e.g. 'storage'."
}
},
"version" : {
"number" : "The version number."
},
"status" : "The updated status of the content. Note, if you change the status of a page from\n'current' to 'draft' and it has an existing draft, the existing draft will be deleted\nin favor of the updated page."
}
The action that should be taken when conflicts are discovered.
Only used when publishing a draft page.
Type: string
Potential values: abort
The updated status of the content. Use this parameter to change the
status of a piece of content without passing the entire request body.
Type: string
Potential values: current, trashed, historical, draft
Updates a content template. Note, blueprint templates cannot be updated
via the REST API.
Permissions required:
'Admin' permission for the space to create a space template or 'Confluence Administrator'
global permission to create a global template.
The updated content template.
Type: object
{
"templateType" : "The type of the template. Set to `page`.",
"name" : "The name of the template. Set to the current `name` if this field is\nnot being updated.",
"description" : "A description of the template.",
"templateId" : "The ID of the template being updated.",
"body" : {
"value" : "The body of the content in the relevant format.",
"representation" : "The content format type. Set the value of this property to\nthe name of the format being used, e.g. 'storage'."
},
"space" : {
"key" : "Required string"
},
"labels" : [ {
"prefix" : "Required string",
"name" : "Required string",
"id" : "Required string",
"label" : "Required string"
} ]
}
Updates the look and feel settings for the site or for a single space.
If custom settings exist, they are updated. If no custom settings exist,
then a set of custom settings is created.
Note, if a theme is selected for a space, the space look and feel settings
are provided by the theme and cannot be overridden.
Permissions required:
'Admin' permission for the space.
The updated settings. All values for the settings must be included,
regardless of whether they are being changed.
One way to create the request body is to copy the settings from the
response body of Get look and feel settings
and modify it as needed.
Type: object
{
"bordersAndDividers" : {
"color" : "Required string"
},
"headings" : {
"color" : "Required string"
},
"header" : {
"button" : {
"backgroundColor" : "Required string",
"color" : "Required string"
},
"backgroundColor" : "Required string",
"primaryNavigation" : {
"color" : "Required string",
"hoverOrFocus" : {
"backgroundColor" : "Required string",
"color" : "Required string"
}
},
"search" : {
"backgroundColor" : "Required string",
"color" : "Required string"
},
"secondaryNavigation" : {
"color" : "Required string",
"hoverOrFocus" : {
"backgroundColor" : "Required string",
"color" : "Required string"
}
}
},
"links" : {
"color" : "Required string"
},
"menus" : {
"color" : "Required string",
"hoverOrFocus" : {
"backgroundColor" : "Required string"
}
},
"content" : {
"container" : {
"padding" : "Required string",
"backgroundColor" : "Required string",
"borderRadius" : "Required string",
"background" : "Required string",
"backgroundImage" : "Required string",
"backgroundSize" : "Required string"
},
"screen" : {
"gutterRight" : "Required string",
"gutterLeft" : "Required string",
"gutterTop" : "Required string",
"backgroundColor" : "Required string",
"background" : "Required string",
"backgroundImage" : "Required string",
"backgroundSize" : "Required string",
"gutterBottom" : "Required string"
},
"header" : {
"padding" : "Required string",
"backgroundColor" : "Required string",
"borderRadius" : "Required string",
"background" : "Required string",
"backgroundImage" : "Required string",
"backgroundSize" : "Required string"
},
"body" : {
"padding" : "Required string",
"backgroundColor" : "Required string",
"borderRadius" : "Required string",
"background" : "Required string",
"backgroundImage" : "Required string",
"backgroundSize" : "Required string"
}
}
}
The key of the space for which the look and feel settings will be
updated. If this is not set, the global look and feel settings will
be updated.
Type: string
Updates the attachment properties, i.e. the non-binary data of an attachment
like the filename, media-type, comment, and parent container.
Permissions required:
Permission to update the content.
The ID of the attachment to update.
Type: string
The ID of the content that the attachment is attached to.
Type: string
The details of the attachment to be updated.
Type: object
{
"container" : {
"id" : "The `id` of the parent content.",
"type" : "The content type. You can only attach attachments to content\nof type: `page`, `blogpost`."
},
"metadata" : {
"mediaType" : "The media type of the attachment, e.g. 'img/jpg'.",
"comment" : "The comment for this update."
},
"id" : "The ID of the attachment to be updated.",
"type" : "Set this to `attachment`.",
"title" : "The updated name of the attachment.",
"version" : {
"number" : "The version number."
}
}
Updates an existing content property. This method will also create a new
property for a piece of content, if the property key does not exist and
the property version is 1. For more information about content properties, see
Confluence entity properties.
Permissions required:
Permission to update the content.
The ID of the content that the property belongs to.
Type: string
The key of the property.
Type: string
The content property being updated.
Type: object
{
"value" : "The value of the property.",
"version" : {
"number" : "The new version for the updated content property. Set this to the\ncurrent version number incremented by one. To get the current\nversion number, use 'Get content property' and retrieve\n`version.number`.",
"minorEdit" : "If `minorEdit` is set to 'true', no notification email or activity\nstream will be generated for the change."
}
}
Updates a space property. Note, you cannot update the key of a space
property, only the value.
Permissions required:
‘Admin’ permission for the space.
The key of the property to be updated.
Type: string
The key of the space that the property is in.
Type: string
The space property being updated.
Type: object
{
"value" : { },
"version" : {
"number" : "The new version for the updated space property. Set this to the\ncurrent version number incremented by one. To get the current\nversion number, use 'Get space property' and retrieve\n`version.number`.",
"minorEdit" : "If `minorEdit` is set to 'true', no notification email or activity\nstream will be generated for the change."
}
}
Updates restrictions for a piece of content. This removes the existing
restrictions and replaces them with the restrictions in the request.
Permissions required:
Permission to edit the content.
The ID of the content to update restrictions for.
Type: string
The updated restrictions for the content.
Type: array
[ {
"restrictions" : {
"user" : [ {
"accountId" : "The account ID of the user, which uniquely identifies the user across all Atlassian products.\nFor example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`. Required, unless `username` or `userKey` is specified.",
"type" : "Set to 'known'.",
"userKey" : "This property has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe user key of the user. Required, unless `accountId` or `username` is specified.",
"username" : "This property has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe username of the user. For example, _admin_. Required, unless `accountId` or `userKey` is specified."
} ],
"group" : [ {
"name" : "The name of the group.",
"type" : "Set to 'group'."
} ]
},
"operation" : "The restriction operation applied to content."
} ]
A multi-value parameter indicating which properties of the content
restrictions (returned in response) to expand.
restrictions.user
returns the piece of content that the restrictions arerestrictions.group
returns the piece of content that the restrictions arecontent
returns the piece of content that the restrictions areType: array
[ "string. Possible values: restrictions.user | restrictions.group | content" ]
Updates the settings for a space. Currently only therouteOverrideEnabled
setting can be updated.
Permissions required:
'Admin' permission for the space.
The key of the space whose settings will be updated.
Type: string
The space settings to update.
Type: object
{
"routeOverrideEnabled" : "Defines whether an override for the space home should be used. This is\nused in conjunction with a space theme provided by an app. For\nexample, if this property is set to true, a theme can display a page\nother than the space homepage when users visit the root URL for a\nspace. This property allows apps to provide content-only theming\nwithout overriding the space home."
}
Updates the name, description, or homepage of a space.
Permissions required:
'Admin' permission for the space.
The key of the space to update.
Type: string
The updated space.
Type: object
{
"name" : "The name of the space.",
"description" : {
"plain" : {
"value" : "The space description.",
"representation" : "Set to 'plain'."
}
},
"homepage" : {
"id" : "The ID of the page."
}
}