How to save attachment to a batch

Question:

How to save the import file as an attachment to the batch?

Solution:

You can use the settings below in JSON format to save the attachment to the batch such as:

{
    "MethodName""SaveAttachment",
    "Params": {
        "sessionId"559482858,
        "type"11,
        "objectId"10623097,
        "batchId"10623097,     
        "projectId"195,  
        "file": {
            "Name""banattachment.pdf",
            "Bytes""based 64 string"
        }
    }
}

where

sessionId: is the open session

type: 9 for document, 10 for page, 11 for batch

objectId: enter the batchId if you want to save to batch

batchId: id of the batch

file: file in based64string

 

 

 

 

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.