Draft
A Draft is a saved set of document send settings that can be resumed later. Drafts belong to a Group and can optionally be shared with other group members.
Implements: Node
Fields
| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier |
name | String! | Draft name |
shared | Boolean | Whether the draft is shared with the group |
templateCount | Int | Number of templates in this draft |
batch | Boolean | Whether this is a batch draft |
multidoc | Boolean | Whether this is a multi-document send |
version | String | Version number |
created | AWSDateTime | When the draft was created |
modified | AWSDateTime | When the draft was last modified |
link | String | Link to the JSON content |
Relationships
| Field | Type | Description |
|---|---|---|
creator | User | The user who created the draft (only the creator can delete it) |
Query
query GetDraft($id: ID!) {
draft(id: $id) {
id
name
shared
templateCount
link
}
}
Drafts are also accessed via Group.draftConnection.
Example
Loading all drafts for a group (based on the Legalesign Console app):
query Drafts {
group(id: "Z3JwbGVnYWxlc2lnbxRldg==") {
draftConnection {
drafts {
id
modified
templateCount
name
version
created
shared
batch
multidoc
creator {
id
firstName
lastName
email
}
}
}
}
}