Account


Earned badges

Achievement: Latest Unlocked

Topic Started

This user has not created any forum posts.

Replies Created

Reply to: Editing Field Values using /api/packages/{packageId}/clone right

0 votes
So this is my original payload when hitting the /api/packages/{packageId}/clone route...
    var payload = {
      "status": "DRAFT",
      "name": "Package created from template through REST API",
      "roles":
        [
          {
            "id": "5e4f1718-24f2-424f-94bc-9de4bc183680",
            "signers":
              [
                {
                  "id": "placeholderId2",
                  "firstName": "Nicole",
                  "lastName": "Weese",
                  "email": "[email protected]",
                }
              ]
          }
        ],
      "documents":
        [
          {
            "id": "default-consent"
          },
          {
            "id": "f13e975b4404f250fb68feefd3db66f3d225c2dfb0840838",
            "approvals": [
              {
                "fields": [
                  {
                    "type": "SIGNATURE",
                    "extract": true,
                    "subtype": "FULLNAME",
                    "name": "Signature1"
                  },
                  {
                    "name":"dateOfBirth",
                    "extract":true,
                    "type":"INPUT",
                    "value":null,
                    "subtype":"LABEL"
                  }
                ],
                "role": "Signer1"
              }
            ],
            "extract": true,
            "name": "Sample",
          },

        ]
    }
is this correct? Should role be placeholderId2? For your PUT route, you said /fields, but say there is no batch field value editing. Does this mean that my payload needs to have an id attached to it?
    let updatePayload = {
      "name": "dateOfBirth",
      "data": null,
      "id": "g2AWMEVZaY42",
      "top": 323.0,
      "left": 289.0,
      "width": 208.0,
      "height": 25.0,
      "page": 2,
      "type": "INPUT",
      "value": "June 2 1992",
      "binding": null,
      "subtype": "LABEL"
    }
or should I be hitting the /fields/{fieldId} with a simplifiied JSON object
    let updatePayload = {
      "name": "dateOfBirth",
      "value": "June 2 1992",
    }

Subscriptions

This user is not subscribed to any release notes.

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.