Error 403 when updating a package
Wednesday, June 14, 2017 at 07:15amHi !
I'm trying to update a package and replace the pdf document in it, but I get this error :
Unable to update package settings. Exception: Le serveur distant a retourné une erreur : (403) Interdit. HTTP PUT on URI https://sandbox.esignlive.com/api/packages/-bANyCo4NvqdgiEPNbMG2tLdaRE=. Optional details: {"messageKey":"error.forbidden.cannotEditDeletePkg","technical":"package: -bANyCo4NvqdgiEPNbMG2tLdaRE= cannot be edited.","message":"Cannot edit or delete package.","code":403,"name":"Access Denied"}
I did not sign the document or click Accept on the first page, but I can't update it. Maybe I'm doing it the wrong way ? What I want is to be able to replace the document in the existing package if it's not signed, so I check the status and use the UpdatePackage method if the status is different than SIGNING_COMPLETE. I did not find any example of document update, so for now I tried this way :
Document doc = package.GetDocument("Declaration"); doc.Content = args.PdfBytes; int docIndex = package.Documents.IndexOf(doc); package.Documents[docIndex] = doc; EslClient.UpdatePackage(packageId, package);Is it ok ? Is there another way to update it that wouldnt cause this error ? Thanks :)
Reply to: Error 403 when updating a package
Wednesday, June 14, 2017 at 09:07amReply to: Error 403 when updating a package
Wednesday, June 14, 2017 at 07:45amReply to: Error 403 when updating a package
Wednesday, June 14, 2017 at 08:45amReply to: Error 403 when updating a package
Wednesday, June 14, 2017 at 10:08am