Skip to main content

Draft

An object with timestamp fields for when it was created and last updated.

interface Draft {
agent: Agent!
assignment: Assignment
contextId: ID
conversation: Conversation!
conversationId: ID!
createdAt: DateTime!
draftId: String
draftType: DraftType
id: ID!
lastSyncedAt: DateTime!
metadata: JSON!
payload: JSON
updatedAt: DateTime!
version: Int!
}

Fields

Draft.agent ● Agent! non-null object common

The agent who created the draft

Draft.assignment ● Assignment object common

The agents and/or teams that are assigned to the draft.

Draft.contextId ● ID scalar common

The ID of the context within the conversation.

Draft.conversation ● Conversation! non-null interface common

The conversation this draft belongs to

Draft.conversationId ● ID! non-null scalar common

The conversation ID this draft belongs to

Draft.createdAt ● DateTime! non-null scalar common

The date and time that the object was created.

Draft.draftId ● String scalar common

The UUID used to identify the draft.

Draft.draftType ● DraftType enum common

The type of the draft

Draft.id ● ID! non-null scalar common

Draft.lastSyncedAt ● DateTime! non-null scalar common

The datetime when the draft was last synced.

Draft.metadata ● JSON! non-null scalar common

Metadata related to the draft

Draft.payload ● JSON scalar common

The payload of the draft, which is a schemaless JSON object

Draft.updatedAt ● DateTime! non-null scalar common

The date and time that the object was last updated.

Draft.version ● Int! non-null scalar common

The draft version

Member of

DraftConnection object ● DraftEdge object

Implemented by

FacebookDraft object ● NoteDraft object ● ReplyDraft object ● TwitterDraft object