Attachment
An Attachment is a file that can be included with documents sent from a Group. Attachments are managed at the group level and can be set to auto-attach to all outgoing documents.
Fields
| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier |
filename | String! | Original filename |
extension | String | File extension |
description | String! | Description of the attachment |
autoAttach | Boolean | Automatically attach to all outgoing documents |
created | AWSDateTime! | When the attachment was uploaded |
createdBy | String! | User who uploaded the attachment |
retention | Float | Expiry time in unix epoch seconds |
link | String | Short-lease URL for downloading |
Query
query GetAttachment($id: ID!) {
attachment(id: $id) {
id
filename
description
extension
autoAttach
link
}
}
Attachments are also accessed via Group.attachmentConnection.
Example
Loading all attachments for a group (based on the Legalesign Console app):
query GetAttachments {
group(id: "Z3JwbGVnYWxlc2lnbxRldg==") {
attachmentConnection {
attachments {
id
filename
description
created
createdBy
extension
autoAttach
link
}
}
}
}
Related
- Group — the group this attachment belongs to
- How to Upload Files — uploading attachments