configurations
Configurations
Bases: ListableApiResource
, FindableApiResource
, CreatableApiResource
, UpdatableApiResource
, DestroyableApiResource
Nylas Configuration API
The Nylas configuration API allows you to create new configurations or manage existing ones, as well as getting configurations details for a user.
Nylas Scheduler stores Configuration objects in the Scheduler database and loads them as Scheduling Pages in the Scheduler UI.
Source code in nylas/resources/configurations.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
|
create(identifier, request_body, overrides=None)
Create a new Configuration.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
identifier |
str
|
The identifier of the Grant to act upon. |
required |
data |
The data to create the Configuration with. |
required | |
overrides |
RequestOverrides
|
The request overrides to use for the request. |
None
|
Returns:
Type | Description |
---|---|
Response[Configuration]
|
The Configuration object. |
Source code in nylas/resources/configurations.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
|
destroy(identifier, config_id, overrides=None)
Delete a Configuration.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
identifier |
str
|
The identifier of the Grant to act upon. |
required |
config_id |
str
|
The identifier of the Configuration to delete. |
required |
overrides |
RequestOverrides
|
The request overrides to use for the request. |
None
|
Source code in nylas/resources/configurations.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
|
find(identifier, config_id, overrides=None)
Return a Configuration.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
identifier |
str
|
The identifier of the Grant to act upon. |
required |
config_id |
str
|
The identifier of the Configuration to get. |
required |
overrides |
RequestOverrides
|
The request overrides to use for the request. |
None
|
Returns:
Type | Description |
---|---|
Response[Configuration]
|
The Configuration object. |
Source code in nylas/resources/configurations.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
|
list(identifier, query_params=None, overrides=None)
Return all Configurations.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
identifier |
str
|
The identifier of the Grant to act upon. |
required |
overrides |
RequestOverrides
|
The request overrides to use for the request. |
None
|
Returns:
Type | Description |
---|---|
ListResponse[Any]
|
The list of Configurations. |
Source code in nylas/resources/configurations.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
update(identifier, config_id, request_body, overrides=None)
Update a Configuration.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
identifier |
str
|
The identifier of the Grant to act upon. |
required |
config_id |
str
|
The identifier of the Configuration to update. |
required |
data |
The data to update the Configuration with. |
required | |
overrides |
RequestOverrides
|
The request overrides to use for the request. |
None
|
Returns:
Type | Description |
---|---|
Response[Configuration]
|
The Configuration object. |
Source code in nylas/resources/configurations.py
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
|
ListConfigurationsParams
Bases: ListQueryParams
Interface of the query parameters for listing configurations.
Attributes:
Name | Type | Description |
---|---|---|
limit |
The maximum number of objects to return. This field defaults to 50. The maximum allowed value is 200. |
|
page_token |
An identifier that specifies which page of data to return. This value should be taken from a ListResponse object's next_cursor parameter. |
|
identifier |
The identifier of the Grant to act upon. |
Source code in nylas/resources/configurations.py
15 16 17 18 19 20 21 22 23 24 25 |
|