DELETE /wiki/rest/api/content/{id}/pageTree
Moves a pagetree rooted at a page to the space's trash:
- If the content's type is
page
and its status iscurrent
, it will be trashed including all its descendants. - For every other combination of content type and status, this API is not supported.
This API accepts the pageTree delete request and returns a task ID. The delete process happens asynchronously.
Response example:
{
"id" : "1180606",
"links" : {
"status" : "/rest/api/longtask/1180606"
}
}
Use the /longtask/<taskId>
REST API to get the copy task status.
Permissions required: 'Delete' permission for the space that the content is in.
Servers
- https://your-domain.atlassian.net
Path parameters
Name | Type | Required | Description |
---|---|---|---|
id |
String | Yes |
The ID of the content which forms root of the page tree, to be deleted. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.