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
*`enabled` (boolean): Whether this Event Channel can dispatch events.
21
23
*`default_channel` (boolean): Whether this Event Channel is the default destination for newly published events.
@@ -35,8 +37,8 @@ await EventChannel.list
35
37
36
38
*`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.
37
39
*`per_page` (int64): Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
38
-
*`sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`, `enabled`or `default_channel`.
39
-
*`filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `enabled`and `default_channel`.
40
+
*`sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`, `enabled`, `default_channel`or `workspace_id`.
41
+
*`filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `enabled`, `default_channel` or `workspace_id`. Valid field combinations are `[ workspace_id, enabled ]`and `[ workspace_id, default_channel ]`.
40
42
41
43
---
42
44
@@ -58,6 +60,7 @@ await EventChannel.find(id)
58
60
```
59
61
await EventChannel.create({
60
62
'name': "example",
63
+
'workspace_id': 1,
61
64
'description': "example",
62
65
'enabled': true,
63
66
'default_channel': true,
@@ -68,6 +71,7 @@ await EventChannel.create({
68
71
### Parameters
69
72
70
73
*`name` (string): Required - Event Channel name.
74
+
*`workspace_id` (int64): Workspace ID. 0 means the default workspace.
*`guest_partner_name` (string): Guest Partner Name
23
-
*`host_site_id` (int64): Host Site ID
24
-
*`host_site_name` (string): Host Site Name
25
-
*`guest_site_id` (int64): Guest Site ID
26
-
*`guest_site_name` (string): Guest Site Name
27
-
*`workspace_id` (int64): Workspace ID for the Host Partner
28
1
29
2
---
30
3
31
-
## Get Partner Sites linked to the current Site
4
+
## Delete Partner Site
32
5
33
6
```
34
-
await PartnerSite.linkeds
35
-
```
36
-
37
-
38
-
---
39
-
40
-
## List Partner Sites
7
+
const partner_site = new PartnerSite()
8
+
partner_site.path = myFilePath
41
9
10
+
await partner_site.delete()
42
11
```
43
-
await PartnerSite.list
44
-
```
45
-
46
12
47
13
### Parameters
48
14
49
-
*`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.
50
-
*`per_page` (int64): Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
*`updated_at` (date-time): Request last updated date/time
26
-
*`site_url` (string): Site URL to link to
27
26
28
27
---
29
28
@@ -38,6 +37,8 @@ await PartnerSiteRequest.list
38
37
39
38
*`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.
40
39
*`per_page` (int64): Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
40
+
*`sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `host_partner_id`.
41
+
*`filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `host_partner_id`.
// 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.
243
257
// per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
244
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`, `enabled`or `default_channel`.
245
-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `enabled`and `default_channel`.
258
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`, `enabled`, `default_channel` or `workspace_id`.
259
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `enabled`, `default_channel` or `workspace_id`. Valid field combinations are `[ workspace_id, enabled ]` and `[ workspace_id, default_channel ]`.
0 commit comments