nylas
2.0.0-beta.2
jvm
nylas
/
com.nylas.resources
/
Drafts
Drafts
public
final
class
Drafts
extends
Resource
<
Draft
>
Members
Constructors
Drafts
Link copied to clipboard
public
Drafts
Drafts
(
NylasClient
client
)
Functions
create
Link copied to clipboard
public
final
Response
<
Draft
>
create
(
String
identifier
,
CreateDraftRequest
requestBody
)
Create a Draft
destroy
Link copied to clipboard
public
final
DeleteResponse
destroy
(
String
identifier
,
String
draftId
)
Delete a Draft
find
Link copied to clipboard
public
final
Response
<
Draft
>
find
(
String
identifier
,
String
draftId
)
Return a Draft
list
Link copied to clipboard
@
JvmOverloads
(
)
public
final
ListResponse
<
Draft
>
list
(
String
identifier
)
@
JvmOverloads
(
)
public
final
ListResponse
<
Draft
>
list
(
String
identifier
,
ListDraftsQueryParams
queryParams
)
Return all Drafts
update
Link copied to clipboard
public
final
Response
<
Draft
>
update
(
String
identifier
,
String
draftId
,
UpdateDraftRequest
requestBody
)
Update a Draft