Trash
Move multiple items to Trash
Accepts a mixed list of {type, id} items (datasets + dataviews) and processes them serially in a single async task. Datasets are trashed first so their cascade handles child views; dataviews whose dataset was already trashed in the same batch are marked succeeded without re-running. Resolved future shape: {succeeded: [...], failed: [...]} per item.
post/workspaces/{workspace_id}/projects/{project_id}/trash
Request
- Base URL: https://app.mammoth.io/api/v2
- URL: https://app.mammoth.io/api/v2/workspaces/{workspace_id}/projects/{project_id}/trash
- Auth: one of:
- HTTP bearer
- API key in header X-API-KEY and API key in header X-API-SECRET and API key in header X-WORKSPACE-ID
Path parameters
workspace_idinteger required
Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.
Example:4
project_idinteger required
Request body
Response
Trash/restore accepted; returns the tracking job.
Example response
{
"job": {
"response": {
"value": {
"response": {
"object": "some object"
}
}
}
}
}Changes
No recorded changes to this operation across all 3 revisions of this API.