MessageDraft
Detalhes sobre o rascunho




POST at this target:

https://joy.classapp.co/graphql?access_token=YOUR_TOKEN_HERE


MessageDraft

ParamsDescription
idThe ID of an object
dbIdIdentifies the primary key from the database.
subjectSubject from message
contentContent from message
pinpin=1
publicpublic=1
momentmoment=1
forumpublic forum=1
noReplyno reply=1
fwMessageIdmessage being forwarded
isHtmlContent is in html
labelIdlabel used to filter message
dontNotifyNotifications of message
sendAtdate and time to send the message
typeMessage type
toEntityIdFirst recipient
helpersHelper JSON to re-render report and recipient fields
statusThe last operation of message draft
status_byUser that perform operation in message draft
entityIdEntity who sent the message
userIdUser who sent the message
inputMessage input content
summarySummary for the message
labelLabel used to filter the message
userAuthorHasEntitycheck if user author is linked to entity
recipientsCountCount entities who received the message, excluding the sender
imagesCountCount images attached to the message
videosCountCount videos attached to the message
audiosCountCount audios attached to the message
filesCountCount files attached to the message
commitmentsCountCount commitments attached to the message
surveysCountCount surveys attached to the message
chargesCount@TODO DESCRIBE ME
reportsCountCount reports attached to the message
formsCountCount forms attached to the message
entityEntity author
userUser author
toEntityFirst recipient entity
createdAn ISO-8601 encoded UTC date string of when record was created
modifiedAn ISO-8601 encoded UTC date string of when record was updated
deletedAn ISO-8601 encoded UTC date string of when record was deleted
keyRandom ID to differentiate from others
selectedHelper field for clients
highlightedHelper field for clients
expandedHelper field for clients
loadedHelper field for clients
loadingHelper field for clients

CreateMessageDraftInput

ArgumentsTypeDescription
entityId
Not Null
The entity that send the message
sendAt
String
SCALAR
date and time to send the message
type
MessageDraftType
ENUM
Message type
toEntityId
ID
SCALAR
First recipient
isHtml
Boolean
SCALAR
Content is in html
helpers
String
SCALAR
Helper JSON to re-render report and recipient fields
status
MessageDraftLogReason
ENUM
The last operation of message draft
status_by
MessageDraftLogReason
ENUM
User that perform operation in message draft
subject
String
SCALAR
Subject from message
content
String
SCALAR
Content from message
pin
Boolean
SCALAR
pin=1
public
Boolean
SCALAR
public=1
moment
Boolean
SCALAR
moment=1
forum
Boolean
SCALAR
public forum=1
noReply
Boolean
SCALAR
no reply=1
fwMessageId
Int
SCALAR
message being forwarded
labelId
Int
SCALAR
label used to filter message
dontNotify
Boolean
SCALAR
Notifications of message
surveys
LIST
MessageSurveysInput
commitments
LIST
MessageCommitmentsInput
charges
LIST
MessageChargesInput
reports
LIST
MessageReportsInput
medias
LIST
MessageMediasInput
forms
LIST
MessageFormInputFields
tags
LIST
MessageTagsInput
recipients
MessageRecipientsInput
INPUT_OBJECT
clientMutationId
String
SCALAR

UpdateMessageDraftInput

ArgumentsTypeDescription
entityId
Not Null
The entity that send the message
id
Not Null
The ID of an message draft object
sendAt
String
SCALAR
date and time to send the message
type
MessageDraftType
ENUM
Message type
toEntityId
ID
SCALAR
First recipient
isHtml
Boolean
SCALAR
Content is in html
helpers
String
SCALAR
Helper JSON to re-render report and recipient fields
status
MessageDraftLogReason
ENUM
The last operation of message draft
status_by
MessageDraftLogReason
ENUM
User that perform operation in message draft
subject
String
SCALAR
Subject from message
content
String
SCALAR
Content from message
pin
Boolean
SCALAR
pin=1
public
Boolean
SCALAR
public=1
moment
Boolean
SCALAR
moment=1
forum
Boolean
SCALAR
public forum=1
noReply
Boolean
SCALAR
no reply=1
fwMessageId
Int
SCALAR
message being forwarded
labelId
Int
SCALAR
label used to filter message
dontNotify
Boolean
SCALAR
Notifications of message
surveys
LIST
MessageSurveysInput
commitments
LIST
MessageCommitmentsInput
charges
LIST
MessageChargesInput
reports
LIST
MessageReportsInput
medias
LIST
MessageMediasInput
forms
LIST
MessageFormInputFields
tags
LIST
MessageTagsInput
recipients
MessageRecipientsInput
INPUT_OBJECT
clientMutationId
String
SCALAR

DeleteMessageDraftInput

ArgumentsTypeDescription
id
Not Null
The ID of an message draft object
status
MessageDraftLogReason
ENUM
Status of message draft log
clientMutationId
String
SCALAR