Two ways to change status to DRAFT?
Tuesday, October 16, 2018 at 09:58amI was successfully able to change my package status to DRAFT by using the code supplied in your guide. See below:
EslClient eslClient = new EslClient(api_key, api_url); eslClient.changePackageStatusToDraft(packageId);However, I also noticed there is another way to update the package status:
PackageId packageId = new PackageId("MY_PACKAGE_ID"); DocumentPackage package1 = eslClient.getPackage(packageId); package1.setStatus(PackageStatus.DRAFT); eslClient.updatePackage(packageId, package1);Do these two methods have the same effect? Or is one preferred over the other?
Reply to: Two ways to change status to DRAFT?
Tuesday, October 16, 2018 at 05:10pm