InternalCreate a new instance of the service.
Delete an attachment by id.
Deleting an attachment moves the attachment to the trash, where it can be
restored later. To permanently delete an attachment (or "purge" it),
the endpoint must be called on a trashed attachment with the following
param purge=true.
Permissions required: Permission to view the container of the attachment. Permission to delete attachments in the space. Permission to administer the space (if attempting to purge).
The ID of the attachment to be deleted.
Optionalpurge?: booleanIf attempting to purge the attachment.
Returns a specific attachment.
Permissions required: Permission to view the attachment's container.
The ID of the attachment to be returned. If you don't know the attachment's ID, use Get attachments for page/blogpost/custom content.
OptionalincludeIncludes collaborators on the attachment.
OptionalincludeIncludes labels associated with this attachment 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 attachment 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 attachment 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 attachment in the response.
By default this is included and can be omitted by setting the value to false.
OptionalincludeIncludes versions associated with this attachment 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 attachment is returned.
Returns all attachments. 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 container of the attachment.
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.
Optionalfilename?: stringFilters on the file-name of attachments. Only one may be specified.
Optionallimit?: numberMaximum number of attachments 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.
OptionalmediaFilters on the mediaType of attachments. Only one may be specified.
Optionalsort?: AttachmentSortOrderUsed to sort the result by a particular field.
Optionalstatus?: ("current" | "archived" | "trashed")[]Filter the results to attachments based on their status. By default, current
and archived are used.
Returned if the requested attachments are returned.
Returns the attachments of specific blog post. 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 content of the blog post and its corresponding space.
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.
Optionalfilename?: stringFilters on the file-name of attachments. Only one may be specified.
The ID of the blog post for which attachments should be returned.
Optionallimit?: numberMaximum number of attachments 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.
OptionalmediaFilters on the mediaType of attachments. Only one may be specified.
Optionalsort?: AttachmentSortOrderUsed to sort the result by a particular field.
Optionalstatus?: ("current" | "archived" | "trashed")[]Filter the results to attachments based on their status. By default, current
and archived are used.
Returned if the requested attachments are returned.
Returns the attachments of specific custom content. 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 content of the custom content and its corresponding space.
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.
Optionalfilename?: stringFilters on the file-name of attachments. Only one may be specified.
The ID of the custom content for which attachments should be returned.
Optionallimit?: numberMaximum number of attachments 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.
OptionalmediaFilters on the mediaType of attachments. Only one may be specified.
Optionalsort?: AttachmentSortOrderUsed to sort the result by a particular field.
Optionalstatus?: ("current" | "archived" | "trashed")[]Filter the results to attachments based on their status. By default, current
and archived are used.
Returned if the requested attachments are returned.
Returns the attachments of specified label. 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 attachment and its corresponding space.
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 label for which attachments 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?: AttachmentSortOrderUsed to sort the result by a particular field.
Returned if the requested attachments for specified label were successfully fetched.
Returns the attachments of specific 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 content of the page and its corresponding space.
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.
Optionalfilename?: stringFilters on the file-name of attachments. Only one may be specified.
The ID of the page for which attachments should be returned.
Optionallimit?: numberMaximum number of attachments 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.
OptionalmediaFilters on the mediaType of attachments. Only one may be specified.
Optionalsort?: AttachmentSortOrderUsed to sort the result by a particular field.
Optionalstatus?: ("current" | "archived" | "trashed")[]Filter the results to attachments based on their status. By default, current
and archived are used.
Returned if the requested attachments are returned.
Protected Staticinitialize
See
https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment