{ "opencollection": "1.0.0", "info": { "name": "API Reference subpackage_accounts subpackage_data-retention-policies API", "version": "1.0.0" }, "items": [ { "info": { "name": "subpackage_data-retention-policies", "type": "folder" }, "items": [ { "info": { "name": "List data retention policies", "type": "http" }, "http": { "method": "GET", "url": "https://api.x.flatfile.com/v1/data-retention-policies", "headers": [ { "name": "Authorization", "value": "" }, { "name": "X-Disable-Hooks", "value": "" } ], "params": [ { "name": "environmentId", "value": "", "type": "query", "description": "The associated Environment ID of the policy." } ] }, "docs": "Returns all data retention policies on an account matching a filter for environmentId" }, { "info": { "name": "Create a data retention policy", "type": "http" }, "http": { "method": "POST", "url": "https://api.x.flatfile.com/v1/data-retention-policies", "headers": [ { "name": "Authorization", "value": "" }, { "name": "X-Disable-Hooks", "value": "" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Add a new data retention policy to the space" }, { "info": { "name": "Get a data retention policy", "type": "http" }, "http": { "method": "GET", "url": "https://api.x.flatfile.com/v1/data-retention-policies/:id", "headers": [ { "name": "Authorization", "value": "" }, { "name": "X-Disable-Hooks", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path", "description": "ID of data retention policy to return" } ] }, "docs": "Returns a single data retention policy" }, { "info": { "name": "Update a data retention policy", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.x.flatfile.com/v1/data-retention-policies/:id", "headers": [ { "name": "Authorization", "value": "" }, { "name": "X-Disable-Hooks", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path", "description": "ID of data retention policy to update" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates a single data retention policy" }, { "info": { "name": "Delete a data retention policy", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.x.flatfile.com/v1/data-retention-policies/:id", "headers": [ { "name": "Authorization", "value": "" }, { "name": "X-Disable-Hooks", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path", "description": "ID of data retention policy to delete" } ] }, "docs": "Deletes a single data retention policy" } ] } ], "bundled": true }