threads
Threads
Bases: ListableApiResource
, FindableApiResource
, UpdatableApiResource
, DestroyableApiResource
Nylas Threads API
The threads API allows you to find, update, and delete threads.
Source code in nylas/resources/threads.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 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 |
|
destroy(identifier, thread_id, overrides=None)
Delete a Thread.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
identifier |
str
|
The identifier of the grant to delete the thread for. |
required |
thread_id |
str
|
The identifier of the thread to delete. |
required |
overrides |
RequestOverrides
|
The request overrides to apply to the request. |
None
|
Returns:
Type | Description |
---|---|
DeleteResponse
|
The deletion response. |
Source code in nylas/resources/threads.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
|
find(identifier, thread_id, overrides=None)
Return a Thread.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
identifier |
str
|
The identifier of the grant to get the thread for. |
required |
thread_id |
str
|
The identifier of the thread to get. |
required |
overrides |
RequestOverrides
|
The request overrides to apply to the request. |
None
|
Returns:
Type | Description |
---|---|
Response[Thread]
|
The requested Thread. |
Source code in nylas/resources/threads.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
|
list(identifier, query_params=None, overrides=None)
Return all Threads.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
identifier |
str
|
The identifier of the grant to get threads for. |
required |
query_params |
ListThreadsQueryParams
|
The query parameters to filter threads by. |
None
|
overrides |
RequestOverrides
|
The request overrides to apply to the request. |
None
|
Returns:
Type | Description |
---|---|
ListResponse[Thread]
|
A list of Threads. |
Source code in nylas/resources/threads.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|
update(identifier, thread_id, request_body, overrides=None)
Update a Thread.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
identifier |
str
|
The identifier of the grant to update the thread for. |
required |
thread_id |
str
|
The identifier of the thread to update. |
required |
request_body |
UpdateThreadRequest
|
The request body to update the thread with. |
required |
overrides |
RequestOverrides
|
The request overrides to apply to the request. |
None
|
Returns:
Type | Description |
---|---|
Response[Thread]
|
The updated Thread. |
Source code in nylas/resources/threads.py
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 |
|