SOAP API method EmailingDocument_createAttachment

Back to API references

Description
Add an attachment to the document

Parameters
Parameter 'id' : int
Unique identifier (id) of the object EmailingDocument. The method only applies to the emailingdocument with this id.
Parameter 'personalize_profile' : int
Profile ID for which the object should be personalized
Parameter 'personalize_subprofile' : int
Subprofile ID for which the object should be personalized
Parameter 'personalize_timestamp' : string
The timestamp for the personalization
Parameter 'filedata' : Structure of type 'filedata'
Parameter 'pdfdocument' : Structure of type 'pdfdocument'
Parameter 'login' : Structure of type 'login'
Optional login data

Return values
Return value 'emailingdocumentattachment' : Structure of type 'emailingdocumentattachment'

Structure 'filedata'
This structure filedata was mentioned above. This structure has the following properties:
Property 'name' : string
The name of the data of the file.
Property 'mimetype' : string
The mimetype of the data of the file.
Property 'data' : binary
The data of the file. The data is base64 encoded.

Structure 'pdfdocument'
This structure pdfdocument was mentioned above. This structure has the following properties:
Property 'status' : string
Status of the document.
Property 'pagecount' : int
The number of pages in the document.
Property 'size' : int
The size of the document.
Property 'faxheader' : string
The headerline above the fax.
Property 'temporary' : boolean
Is this document set as a temporary document. The document will be removed when there are no
Property 'id' : int
The ID of the document.
Property 'templateID' : int
The template ID of the document
Property 'name' : string
The name of the document.
Property 'description' : string
The description of the document.
Property 'archived' : boolean
Is this an archived document?.
Property 'created' : timestamp
The date and time when the document was created.
Property 'modified' : timestamp
The date and time when the document was last modified.
Property 'language' : string
The language of the document.
Property 'timezone' : string
Get the time zone of the document. If the timezone is not set, it returns

Structure 'login'
This structure login was mentioned above. This structure has the following properties:
Property 'username' : string
The username of the login attempt
Property 'account' : string
The account name of the login attempt
Property 'password' : string
The password for the login attempt

Structure 'emailingdocumentattachment'
This structure emailingdocumentattachment was mentioned above. This structure has the following properties:
Property 'type' : string
The type of the attachment.
Property 'id' : int
The ID of the file.
Property 'mimetype' : string
The mimetype of the file.
Property 'hashcode' : string
Expose the file hashcode
Property 'data' : binary
The data of the file. The data is base64 encoded.
Property 'name' : string
The filename of the file.
Property 'size' : int
The size of the file.