Articles in this section

Recycle bin API endpoints

download.svg​​ Download Postman collection

/v1/recycleBinTTL— Get all deleted resources

Get all deleted resources from the recycle bin for the last 30 days.

Method

GET

Relative URI

/v1/recycleBinTTL

Response body structure

[
  {
    "model": "Connection",
    "doc": {
      "_id": "64e••••••••••••••••9d78",
      "createdAt": "2023-08-28T11:42:57.339Z",
      "lastModified": "2023-09-04T11:11:06.148Z",
      "type": "http",
      "name": "HTTP Ratelimit"
    }
  },
  {
    "model": "Connection",
    "doc": {
      "_id": "64e•••••••••••••••••5e2",
      "createdAt": "2023-08-23T11:02:31.941Z",
      "lastModified": "2023-09-04T11:11:04.594Z",
      "type": "http",
      "name": "HTTP RateLimit"
    }
  },
  {
    "model": "Flow",
    "doc": {
      "_id": "64d2•••••••••••••••23ca",
      "lastModified": "2023-08-08T09:44:02.690Z",
      "name": "New flow"
    }
  }
]

v1/recycleBinTTL/:_resourceType— Get all deleted resources by type

Get all deleted resources of a specific type (such as import, export, and connection) from the recycle bin for the last 30 days.

Method

GET

Relative URI

v1/recycleBinTTL/:_resourceType

Response body structure

[
  {
    "_id": "6b4••••••••••••••••016",
    "createdAt": "2023-09-06T05:09:26.965Z",
    "lastModified": "2023-09-06T05:09:32.854Z",
    "name": "delete_import",
    "_connectionId": "64b•••••••••••••••••a6b"
  }
] 

/recycleBinTTL/:_resourceType/:_id— Get deleted resource data by ID

Get deleted data for a specific resource (such as connection, import, and export) based on the Id from the recycle bin for the last 30 days.

Method

GET

Relative URI

v1/recycleBinTTL/:_resourceType/:_id

Response body structure

[
  {
    "_id": "6b4••••••••••••••••016",
    "createdAt": "2023-09-06T05:09:26.965Z",
    "lastModified": "2023-09-06T05:09:32.854Z",
    "name": "delete_import",
    "_connectionId": "64b•••••••••••••••••a6b"
  }
] 

/recycleBinTTL/:_resourceType/:_id— Restore a deleted resource

Restore a resource from the recycle bin.

Method

POST

Relative URI

v1/recycleBinTTL/:_resourceType/:_id

Response body structure

[
  {
    "_id": "6b4••••••••••••••••016",
    "createdAt": "2023-09-06T05:09:26.965Z",
    "lastModified": "2023-09-06T05:09:32.854Z",
    "name": "delete_import",
    "_connectionId": "64b•••••••••••••••••a6b"
  }
] 

/recycleBinTTL/:_resourceType/:_id— Permanently delete a resource

Permanently delete a resource from the recycle bin.

Method

DELETE

Relative URI

v1/recycleBinTTL/:_resourceType/:_id