Show/Hide Toolbars

Therefore Web API Programming Interface 1.0

REST URL (POST) https://tenant.thereforeonline.com/theservice/v0001/restun/AddStreamsToDocument

SOAP Action (POST) http://schemas.therefore.net/webservices/interop/v0001/messages/IThereforeService/AddStreamsToDocument

 

Adds file streams to an existing Thereforeâ„¢ document. Conversion options for the documents can be specified.

 

 

Input Message: http://schemas.therefore.net/webservices/interop/v0001/messages/IThereforeService/AddStreamsToDocument

 

Element Name

Element Type

Restrictions

Description

â–  parameters

 

 


â–¡ CheckInComments

xs:string

optional nillable

The Check-in comment.

â–¡ ConversionOptions

 

mandatory nillable

Specifies options to convert the files.

â–  AnnotationMode

 

optional

restriction enum (xs:string)

- Default (0)

- Merge (1)

- Hide (2)

Sets the annotation mode.

â–¡ CertificateName

xs:string

optional nillable

Sets the name of the certificate for signing the file.

â–  ConvertTo

 

optional

restriction enum (xs:string)

- Original (0)

- SingleTIFF (1)

- SinglePDF (2)

- MultipageTIFF (3)

- MultipagePDF (4)

- SearchablePDF (5)

- SearchablePDFA (6)

- Jpeg (50)

Sets the conversion file format. Notes for multipage conversion types: - In the CreateDocument, AddStreamToDocument, and SubmitCreateDocumentBatch methods, the conversion type will be applied to all the specified streams together. - In the UpdateDocument and SubmitUpdateDocumentBatch methods, the conversion type will be applied to all the new streams together. But for updated streams this will be done on a one by one basis.

â–  SignatureMode

 

optional

restriction enum (xs:string)

- NoSignature (0)

- SignatureOnly (1)

- SignatureAndTimestamp (2)

Sets the signature mode.

â–¡ TimeStampPwd

xs:string

optional nillable

Sets the password for the user for the timestamp server.

â–¡ TimeStampServer

xs:string

optional nillable

Sets the name of the timestamp server for signing the file.

â–¡ TimeStampUser

xs:string

optional nillable

Sets the user for the timestamp server.

â–¡ MultipageStreamName

xs:string

optional nillable

Sets the name of the multipage result stream. Specifies a stream name to be used instead of default one (given by conversion server). Use it with multipage conversion types (see the ConvertTo parameter). Value will be ignored for a single page TIFF/PDF, JPEG, and Original conversion types.

â–  DocNo

xs:int

mandatory

The number of the document to add streams to.

â–¡ StreamsToUpload

 

mandatory nillable

The streams to update/add for the document.

≡ WSStreamInfoWithData

 

optional unbounded nillable


â–¡ FileData

xs:base64Binary

mandatory nillable

Gets or sets binary data of the file. It uses base64 encoding.

â–¡ FileName

xs:string

mandatory nillable

Gets or sets the name of the stream file.

â–¡ StreamNo

xs:int

optional nillable

Gets or sets the number of the stream.

â–¡ FileUploadSessions

 

optional nillable

Represents list of file upload sessions to be used to store files within the document. See the UploadSessionStart and UploadSessionAppendChunk methods for more details.

≡ WSStreamInfoUploadSessionData

 

optional unbounded nillable


â–¡ FileName

xs:string

mandatory nillable

Gets or sets the name of the stream file.

â–¡ StreamNo

xs:int

optional nillable

Gets or sets the number of the stream.

â–  UploadSessionId

xs:string

mandatory

GUID string template:

[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}

Gets or sets id of the upload session for content of the given file.

 

 

Output Message: http://schemas.therefore.net/webservices/interop/v0001/messages/IThereforeService/AddStreamsToDocumentResponse

 

Element Name

Element Type

Restrictions

Description

â–  parameters

 

 


â–  StreamNo

xs:int

optional

The current StreamNo.

 

 

 

Legend:

 

â– 

Not nillable element.

â–¡

Nillable element.

≡

Unbounded element (List of elements).

Normal

Optional element.

Bold

Mandatory element.

 

 

© 2022 Therefore Corporation, all rights reserved.