|
55 | 55 | "start_access_on_date": "2000-01-01T01:00:00Z", |
56 | 56 | "skip_company": true, |
57 | 57 | "id": 1, |
| 58 | + "bypasses_site_expiration_rules": true, |
58 | 59 | "created_at": "2000-01-01T01:00:00Z", |
59 | 60 | "dont_separate_submissions_by_folder": true, |
60 | 61 | "max_uses": 1, |
|
112 | 113 | * `start_access_on_date` (date-time): Date when share will start to be accessible. If `nil` access granted right after create. |
113 | 114 | * `skip_company` (boolean): BundleRegistrations can be saved without providing company? |
114 | 115 | * `id` (int64): Bundle ID |
| 116 | +* `bypasses_site_expiration_rules` (boolean): If true, this Share Link bypasses site-wide expiration rules. Only site admins may set this. |
115 | 117 | * `created_at` (date-time): Bundle created at date/time |
116 | 118 | * `dont_separate_submissions_by_folder` (boolean): Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required. |
117 | 119 | * `max_uses` (int64): Maximum number of times bundle can be accessed |
@@ -156,7 +158,7 @@ await Bundle.list({ |
156 | 158 | * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination. |
157 | 159 | * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended). |
158 | 160 | * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`. |
159 | | -* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`. |
| 161 | +* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code`, `user_id` or `bypasses_site_expiration_rules`. Valid field combinations are `[ user_id, expires_at ]`. |
160 | 162 | * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`. |
161 | 163 | * `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`. |
162 | 164 | * `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`. |
@@ -185,6 +187,7 @@ await Bundle.create({ |
185 | 187 | 'user_id': 1, |
186 | 188 | 'paths': ["file.txt"], |
187 | 189 | 'password': "Password", |
| 190 | + 'bypasses_site_expiration_rules': true, |
188 | 191 | 'form_field_set_id': 1, |
189 | 192 | 'create_snapshot': false, |
190 | 193 | 'dont_separate_submissions_by_folder': true, |
@@ -218,6 +221,7 @@ await Bundle.create({ |
218 | 221 | * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user. |
219 | 222 | * `paths` (array(string)): Required - A list of paths to include in this bundle. |
220 | 223 | * `password` (string): Password for this bundle. |
| 224 | +* `bypasses_site_expiration_rules` (boolean): If true, this Share Link bypasses site-wide expiration rules. Only site admins may set this. |
221 | 225 | * `form_field_set_id` (int64): Id of Form Field Set to use with this bundle |
222 | 226 | * `create_snapshot` (boolean): If true, create a snapshot of this bundle's contents. |
223 | 227 | * `dont_separate_submissions_by_folder` (boolean): Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required. |
@@ -276,6 +280,7 @@ const bundle = await Bundle.find(id) |
276 | 280 | await bundle.update({ |
277 | 281 | 'paths': ["file.txt"], |
278 | 282 | 'password': "Password", |
| 283 | + 'bypasses_site_expiration_rules': true, |
279 | 284 | 'form_field_set_id': 1, |
280 | 285 | 'clickwrap_id': 1, |
281 | 286 | 'code': "abc123", |
@@ -309,6 +314,7 @@ await bundle.update({ |
309 | 314 | * `id` (int64): Required - Bundle ID. |
310 | 315 | * `paths` (array(string)): A list of paths to include in this bundle. |
311 | 316 | * `password` (string): Password for this bundle. |
| 317 | +* `bypasses_site_expiration_rules` (boolean): If true, this Share Link bypasses site-wide expiration rules. Only site admins may set this. |
312 | 318 | * `form_field_set_id` (int64): Id of Form Field Set to use with this bundle |
313 | 319 | * `clickwrap_id` (int64): ID of the clickwrap to use with this bundle. |
314 | 320 | * `code` (string): Bundle code. This code forms the end part of the Public URL. |
@@ -391,6 +397,7 @@ await bundle.update({ |
391 | 397 | "start_access_on_date": "2000-01-01T01:00:00Z", |
392 | 398 | "skip_company": true, |
393 | 399 | "id": 1, |
| 400 | + "bypasses_site_expiration_rules": true, |
394 | 401 | "created_at": "2000-01-01T01:00:00Z", |
395 | 402 | "dont_separate_submissions_by_folder": true, |
396 | 403 | "max_uses": 1, |
|
0 commit comments