You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/models/Site.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -700,6 +700,7 @@ await Site.update({
700
700
'bundle_watermark_attachment_delete': false,
701
701
'login_page_background_image_delete': false,
702
702
'disable_2fa_with_delay': false,
703
+
'redirect_old_subdomain': false,
703
704
})
704
705
```
705
706
@@ -881,4 +882,5 @@ await Site.update({
881
882
*`disable_2fa_with_delay` (boolean): If set to true, we will begin the process of disabling 2FA on this site.
882
883
*`ldap_password_change` (string): New LDAP password.
883
884
*`ldap_password_change_confirmation` (string): Confirm new LDAP password.
885
+
*`redirect_old_subdomain` (boolean): If true, and if changing the site subdomain, then create a redirect from the previous Files.com subdomain to the new Files.com subdomain.
884
886
*`smtp_password` (string): Password for SMTP server.
*`subdomain` (string): Files.com subdomain that continues to route to the current site subdomain.
16
+
*`created_at` (date-time): When this redirect was created.
17
+
*`updated_at` (date-time): When this redirect was last updated.
18
+
19
+
---
20
+
21
+
## List Site Subdomain Redirects
22
+
23
+
```
24
+
await SiteSubdomainRedirect.list
25
+
```
26
+
27
+
28
+
### Parameters
29
+
30
+
*`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.
31
+
*`per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
32
+
*`sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `id`.
33
+
34
+
---
35
+
36
+
## Show Site Subdomain Redirect
37
+
38
+
```
39
+
await SiteSubdomainRedirect.find(id)
40
+
```
41
+
42
+
43
+
### Parameters
44
+
45
+
*`id` (int64): Required - Site Subdomain Redirect ID.
Copy file name to clipboardExpand all lines: lib/models/Site.js
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -994,6 +994,7 @@ _Site = Site;
994
994
// disable_2fa_with_delay - boolean - If set to true, we will begin the process of disabling 2FA on this site.
995
995
// ldap_password_change - string - New LDAP password.
996
996
// ldap_password_change_confirmation - string - Confirm new LDAP password.
997
+
// redirect_old_subdomain - boolean - If true, and if changing the site subdomain, then create a redirect from the previous Files.com subdomain to the new Files.com subdomain.
997
998
// smtp_password - string - Password for SMTP server.
// 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.
119
+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
120
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `id`.
Copy file name to clipboardExpand all lines: src/models/Site.js
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -766,6 +766,7 @@ class Site {
766
766
// disable_2fa_with_delay - boolean - If set to true, we will begin the process of disabling 2FA on this site.
767
767
// ldap_password_change - string - New LDAP password.
768
768
// ldap_password_change_confirmation - string - Confirm new LDAP password.
769
+
// redirect_old_subdomain - boolean - If true, and if changing the site subdomain, then create a redirect from the previous Files.com subdomain to the new Files.com subdomain.
769
770
// smtp_password - string - Password for SMTP server.
0 commit comments