Neidio i’r prif gynnwys

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​

FieldTypeDescription
idID!Unique identifier
nameString!Draft name
sharedBooleanWhether the draft is shared with the group
templateCountIntNumber of templates in this draft
batchBooleanWhether this is a batch draft
multidocBooleanWhether this is a multi-document send
versionStringVersion number
createdAWSDateTimeWhen the draft was created
modifiedAWSDateTimeWhen the draft was last modified
linkStringLink to the JSON content
uploadLinkStringTemporary upload URL for attaching files to this draft

Relationships​

FieldTypeDescription
creatorUserThe 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
}
}
}
}
}
  • Group — the group this draft belongs to
  • Template — templates referenced in the draft

Export This Article

Save a copy of this page as PDF or plain text.