oualidmaz

Updating package

0 votes
I am trying to update an exciting package that is already on draft mode. especially roles on that package. But it doesn't work here is what I did : PUT : https://sandbox.e-signlive.ca/api/packages/HfoT23yovyt66vdRL5Yt34sQWoQ= Payload :
{
  "roles": [
    {
      "locked": false,
      "emailMessage": {
        "content": "You are currently representing the Sender of the signing ceremony for the Loan 302."
      },
      "attachmentRequirements": [],
      "reassign": false,
      "specialTypes": [],
      "id": "SenderId1",
      "type": "SENDER",
      "index": 0,
      "signers": [
        {
          "auth": {
            "challenges": [],
            "scheme": "NONE"
          },
          "company": "LOS 23",
          "firstName": "Admin",
          "lastName": "CU",
          "phone": "",
          "email": "[email protected]",
          "language": "en",
          "title": "",
          "professionalIdentityFields": [],
          "userCustomFields": [],
          "delivery": {
            "email": false,
            "provider": false,
            "download": true
          },
          "name": "Admin CU",
          "id": "SenderId1"
        }
      ],
      "name": "Admin CU"
    },
    {
      "locked": false,
      "emailMessage": {
        "content": "Please review loan documents and sign at your earliest convenience."
      },
      "attachmentRequirements": [],
      "reassign": false,
      "specialTypes": [],
      "id": "ESL_Sig__Applicant__1",
      "type": "SIGNER",
      "index": 0,
      "signers": [
        {
          "auth": {
            "challenges": [
              {
                "question": "5140001111"
              }
            ],
            "scheme": "SMS"
          },
          "company": "",
          "firstName": "Jackie",
          "lastName": "Testsmith",
          "phone": "5140001111",
          "email": "[email protected]",
          "language": "en",
          "title": "",
          "professionalIdentityFields": [],
          "userCustomFields": [],
          "delivery": {
            "email": false,
            "provider": false,
            "download": true
          },
          "name": "Jackie Testsmith",
          "id": "ESL_Sig__Applicant__1"
        }
      ],
      "name": "Jackie Testsmith"
    }
  ]
}
I got 200 OK as response , but when i do get to this package , there is always the old information.

Reply to: Updating package

0 votes
Hi oualidmaz, PUT : https://sandbox.e-signlive.ca/api/packages/{packageId} This api call can't be used to update role or document information. You can use the following api to update a single role:
PUT : https://sandbox.e-signlive.ca/api/packages/{packageId}/roles/{roleId}
payload:
{
      "locked": false,
      "emailMessage": {
        "content": "You are currently representing the Sender of the signing ceremony for the Loan 302."
      },
      "attachmentRequirements": [],
      "reassign": false,
      "specialTypes": [],
      "id": "SenderId1",
      "type": "SENDER",
      "index": 0,
      "signers": [
        {
          "auth": {
            "challenges": [],
            "scheme": "NONE"
          },
          "company": "LOS 23",
          "firstName": "Admin",
          "lastName": "CU",
          "phone": "",
          "email": "[email protected]",
          "language": "en",
          "title": "",
          "professionalIdentityFields": [],
          "userCustomFields": [],
          "delivery": {
            "email": false,
            "provider": false,
            "download": true
          },
          "name": "Admin CU",
          "id": "SenderId1"
        }
      ],
      "name": "Admin CU"
    }
Or if you have specific reasons to update your role in a batch, you can tell me more about your use cases so that I can try to find a workaround for you. Hope this could help you! Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Updating package

0 votes
Hi Duo_Liang, thanks for your response. however , i would like to update many roles with 1 call (PUT) ... is it possible to overwrite the roles [] array directly ?

Reply to: Updating package

0 votes
Hi oualid, Before we going through this path, can you tell me more about your use case why you need to update multiple roles in a single call? Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Updating package

0 votes
Hi Duo , i don't really have a use case , but for performance ... it makes more sense for me to update all roles with one call rather than multiple calls. Thank's

Reply to: Updating package

0 votes
Hi oualidmaz, Unfortunately, we don't have that API call to update all roles in a single call. The reason behind this is maybe because it's not very commonly seen for users to change multiple roles vs to prepare roles information properly before creating the transaction and if some typo happens, just update one role. Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off