InternalCreate a new instance of the service.
Creates a new custom content in the given space, page, blogpost or other custom content.
Only one of spaceId, pageId, blogPostId, or customContentId is required
in the request body.
Permissions required:
Permission to view the content of the page or blogpost and its corresponding
space. Permission to create custom content in the space.
Returned if the requested custom content is created successfully.
Delete a custom content by id.
Deleting a custom content will either move it to the trash or permanently
delete it (purge it), depending on the apiSupport.
To permanently delete a trashed custom content, the endpoint must be called
with the following param purge=true.
Permissions required: Permission to view the content of the page or blogpost and its corresponding space. Permission to delete custom content in the space. Permission to administer the space (if attempting to purge).
The ID of the custom content to be deleted.
Optionalpurge?: booleanIf attempting to purge the custom content.
Returns a specific piece of custom content.
Permissions required: Permission to view the custom content, the container of the custom content, and the corresponding space (if different from the container).
OptionalbodyThe content format types to be returned in the body field of the response. If
available, the representation will be available under a response field of the
same name under the body field.
Note: If the custom content body type is storage, the storage and
atlas_doc_format body formats are able to be returned. If the custom content
body type is raw, only the raw body format is able to be returned.
The ID of the custom content to be returned. If you don't know the custom content ID, use Get Custom Content by Type and filter the results.
OptionalincludeIncludes collaborators on the custom content.
OptionalincludeIncludes labels associated with this custom content in the response.
The number of results will be limited to 50 and sorted in the default sort
order.
A meta and _links property will be present to indicate if more results are
available and a link to retrieve the rest of the results.
OptionalincludeIncludes operations associated with this custom content in the response, as
defined in the Operation object.
The number of results will be limited to 50 and sorted in the default sort
order.
A meta and _links property will be present to indicate if more results are
available and a link to retrieve the rest of the results.
OptionalincludeIncludes content properties associated with this custom content in the response.
The number of results will be limited to 50 and sorted in the default sort
order.
A meta and _links property will be present to indicate if more results are
available and a link to retrieve the rest of the results.
OptionalincludeIncludes the current version associated with this custom content in the
response.
By default this is included and can be omitted by setting the value to false.
OptionalincludeIncludes versions associated with this custom content in the response.
The number of results will be limited to 50 and sorted in the default sort
order.
A meta and _links property will be present to indicate if more results are
available and a link to retrieve the rest of the results.
Optionalversion?: numberAllows you to retrieve a previously published version. Specify the previous version's number to retrieve its details.
Returned if the requested custom content is returned.
Returns all custom content for a given type. The number of results is limited
by the limit parameter and additional results (if available)
will be available through the next URL present in the Link response header.
Permissions required: Permission to view the custom content, the container of the custom content, and the corresponding space (if different from the container).
OptionalbodyThe content format types to be returned in the body field of the response. If
available, the representation will be available under a response field of the
same name under the body field.
Note: If the custom content body type is storage, the storage and
atlas_doc_format body formats are able to be returned. If the custom content
body type is raw, only the raw body format is able to be returned.
Optionalcursor?: stringUsed for pagination, this opaque cursor will be returned in the next URL in
the Link response header. Use the relative URL in the Link header to
retrieve the next set of results.
Optionalid?: number[]Filter the results based on custom content ids. Multiple custom content ids can be specified as a comma-separated list.
Optionallimit?: numberMaximum number of pages per result to return. If more results exist, use the
Link header to retrieve a relative URL that will return the next set of
results.
Optionalsort?: CustomContentSortOrderUsed to sort the result by a particular field.
OptionalspaceFilter the results based on space ids. Multiple space ids can be specified as a comma-separated list.
The type of custom content being requested. See: https://developer.atlassian.com/cloud/confluence/custom-content/ for additional details on custom content.
Returned if the requested custom content is returned.
Returns all custom content for a given type within a given blogpost. The number
of results is limited by the limit parameter and additional results (if
available)
will be available through the next URL present in the Link response header.
Permissions required: Permission to view the custom content, the container of the custom content (blog post), and the corresponding space.
OptionalbodyThe content format types to be returned in the body field of the response. If
available, the representation will be available under a response field of the
same name under the body field.
Note: If the custom content body type is storage, the storage and
atlas_doc_format body formats are able to be returned. If the custom content
body type is raw, only the raw body format is able to be returned.
Optionalcursor?: stringUsed for pagination, this opaque cursor will be returned in the next URL in
the Link response header. Use the relative URL in the Link header to
retrieve the next set of results.
The ID of the blog post for which custom content should be returned.
Optionallimit?: numberMaximum number of pages per result to return. If more results exist, use the
Link header to retrieve a relative URL that will return the next set of
results.
Optionalsort?: CustomContentSortOrderUsed to sort the result by a particular field.
The type of custom content being requested. See: https://developer.atlassian.com/cloud/confluence/custom-content/ for additional details on custom content.
Returned if the requested custom content is returned.
Returns all custom content for a given type within a given page. The number of
results is limited by the limit parameter and additional results (if
available)
will be available through the next URL present in the Link response header.
Permissions required: Permission to view the custom content, the container of the custom content (page), and the corresponding space.
OptionalbodyThe content format types to be returned in the body field of the response. If
available, the representation will be available under a response field of the
same name under the body field.
Note: If the custom content body type is storage, the storage and
atlas_doc_format body formats are able to be returned. If the custom content
body type is raw, only the raw body format is able to be returned.
Optionalcursor?: stringUsed for pagination, this opaque cursor will be returned in the next URL in
the Link response header. Use the relative URL in the Link header to
retrieve the next set of results.
The ID of the page for which custom content should be returned.
Optionallimit?: numberMaximum number of pages per result to return. If more results exist, use the
Link header to retrieve a relative URL that will return the next set of
results.
Optionalsort?: CustomContentSortOrderUsed to sort the result by a particular field.
The type of custom content being requested. See: https://developer.atlassian.com/cloud/confluence/custom-content/ for additional details on custom content.
Returned if the requested custom content is returned.
Returns all custom content for a given type within a given space. The number of
results is limited by the limit parameter and additional results (if
available)
will be available through the next URL present in the Link response header.
Permissions required: Permission to view the custom content and the corresponding space.
OptionalbodyThe content format types to be returned in the body field of the response. If
available, the representation will be available under a response field of the
same name under the body field.
Note: If the custom content body type is storage, the storage and
atlas_doc_format body formats are able to be returned. If the custom content
body type is raw, only the raw body format is able to be returned.
Optionalcursor?: stringUsed for pagination, this opaque cursor will be returned in the next URL in
the Link response header. Use the relative URL in the Link header to
retrieve the next set of results.
The ID of the space for which custom content should be returned.
Optionallimit?: numberMaximum number of pages per result to return. If more results exist, use the
Link header to retrieve a relative URL that will return the next set of
results.
The type of custom content being requested. See: https://developer.atlassian.com/cloud/confluence/custom-content/ for additional details on custom content.
Returned if the requested custom content is returned.
Update a custom content by id.
At most one of spaceId, pageId, blogPostId, or customContentId is
allowed in the request body.
Note that if spaceId is specified, it must be the same as the spaceId used
for creating the custom content
as moving custom content to a different space is not supported.
Permissions required: Permission to view the content of the page or blogpost and its corresponding space. Permission to update custom content in the space.
The ID of the custom content to be updated. If you don't know the custom content ID, use Get Custom Content by Type and filter the results.
Returned if the requested custom content is updated successfully.
Protected Staticinitialize
See
https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-custom-content