Drafts

public final class Drafts extends Resource<Draft>

Constructors

Link copied to clipboard
public Drafts Drafts(NylasClient client)

Functions

Link copied to clipboard
public final Response<Draft> create(String identifier, CreateDraftRequest requestBody)

Create a Draft

Link copied to clipboard
public final DeleteResponse destroy(String identifier, String draftId)

Delete a Draft

Link copied to clipboard
public final Response<Draft> find(String identifier, String draftId)

Return a Draft

Link copied to clipboard
public final ListResponse<Draft> list(String identifier)
public final ListResponse<Draft> list(String identifier, ListDraftsQueryParams queryParams)

Return all Drafts

Link copied to clipboard
public final Response<Draft> update(String identifier, String draftId, UpdateDraftRequest requestBody)

Update a Draft