Odeslání datové zprávy
mutation sendDZ ( $idSender: String!, $idRecipient: String!, $annotation: String!, $legalTitleLaw: Int, $legalTitleYear: Int, $legalTitleSect: String, $legalTitlePar: String, $legalTitlePoint: String, $senderRefNumber: String, $senderIdent: String, $recipientRefNumber: String, $recipientIdent: String, $toHands: String, $personalDelivery: Boolean, $publishOwnID: Boolean, $allowSubstDelivery: Boolean, $attachments: [File_Id!]! ) { dzs{ sendMessage( idSender: $idSender, idRecipient: $idRecipient, annotation:$annotation, legalTitleLaw:$legalTitleLaw, legalTitleYear:$legalTitleYear, legalTitleSect:$legalTitleSect, legalTitlePar:$legalTitlePar, legalTitlePoint:$legalTitlePoint, senderRefNumber:$senderRefNumber, senderIdent:$senderIdent, recipientRefNumber:$recipientRefNumber, recipientIdent:$recipientIdent, toHands:$toHands, personalDelivery:$personalDelivery, publishOwnID:$publishOwnID, allowSubstDelivery:$allowSubstDelivery, attachments:$attachments ) { attachmentIds dmId messageId } } }
Data jsou předávána v následujícím formátu:
{ "idSender": "gx7gyfg", "idRecipient": "rrggyfb", "annotation": "Test", "legalTitleSect": "", "legalTitlePoint": "", "senderRefNumber": "", "senderIdent": "", "recipientRefNumber": "", "recipientIdent": "", "toHands": "", "personalDelivery": "false", "publishOwnID": "true", "allowSubstDelivery": "true", "attachments": [ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzaWQiOiJhcmNoaXZlLWRvY3VtZW50cyIsImZpZCI6IjRhZmQ4NmU0LWRjMzktNDczNi1hNmE4LTg1MDQwMWUwMTA2MSIsInN0b3JlX3RlbmFudElkIjoiZjlmODc3ZDktNmFhOS00MmY4LWI2NmMtZDA3YmViNjc1MDNkIiwiaXNzIjoiaHR0cHM6Ly9wcmVzb2ZhLjYwMi5jei8ifQ.3iXWzCtQW2NATWihaewNYLaAYOfefLRwC0C8X5CnQDU" ] }