Skip to main content

I am trying to use the Folder Archive Task API. But I am getting an error that “Documents and folders lists cannot be null.”

Following is the Error Response:

{
"Error": {
"HttpStatusCode": 422,
"UserMessage": "Validation Error",
"DeveloperMessage": "See the list of validation errors",
"ErrorCode": 101,
"ReferenceId": "60bb783e-c6ec-49f2-b991-22303cb7ff84"
},
"ValidationErrors": s
{
"PropertyName": "folderArchiveTaskFilesToZip",
"UserMessage": "Documents and folders lists cannot be null.",
"DeveloperMessage": "Documents and folders lists cannot be null.",
"ErrorCode": 1003
}
]
}

And Here is my request body:
 

{
"DocumentsToZip": i
{
"Href": "https://apiuatna11.springcm.com/v2/c517b2a4-c268-4e62-abd2-c11efbd14e55/documents/1f8941b5-13d1-4d2e-ad55-7d53047d1021"
}
],
"DestinationFolder": {
"Href": "https://apiuatna11.springcm.com/v2/c517b2a4-c268-4e62-abd2-c11efbd14e55/folders/420ad531-5a49-f011-bee0-9440c98d2d61"
},
"BaseFolder": {
"Href": "https://apiuatna11.springcm.com/v2/c517b2a4-c268-4e62-abd2-c11efbd14e55/folders/430ad531-5a49-f011-bee0-9440c98d2d61"
},
"DestinationDocumentName": "PJ-00019",
"FoldersToZip": i
{
"Href": "https://apiuatna11.springcm.com/v2/c517b2a4-c268-4e62-abd2-c11efbd14e55/folders/430ad531-5a49-f011-bee0-9440c98d2d61"
}
]
}

I am not sure if I am missing any parameter or something else.

Be the first to reply!

Reply