Skip to main content
Participant
May 2, 2023
Question

Replacing a document using PUT /agreements/{id}

  • May 2, 2023
  • 0 replies
  • 270 views

Hi,

 

I am trying to replace the document of a signing request (in AUTHORING state) using PUT /agreements/{id} with the following body:

 

{
"id": "CBJCHBCAABAA-X1XGAeMaXGdkPrZwUP6n39pRAVSmdlI",
"ccs": [],
"createdDate": "2023-01-12T14:08:47Z",
"deviceInfo": {},
"documentRetentionApplied": false,
"documentVisibilityEnabled": false,
"emailOption": {},
"expirationTime": null,
"externalId": {},
"fileInfos": [
{
"transientDocumentId": "redactedTransientDocumentId"
}
],
"firstReminderDelay": null,
"formFieldLayerTemplates": [],
"groupId": "",
"hasFormFieldData": false,
"hasSignerIdentityReport": false,
"isDocumentRetentionApplied": false,
"locale": "en_GB",
"mergeFieldInfo": [],
"message": "Please review and complete [DEMO USE ONLY] Any user in my organization - test template.",
"name": "[DEMO USE ONLY] [DEMO USE ONLY] Any user in my organization - test template",
"parentId": "",
"participantSetsInfo": [
{
"id": "CBJCHBCAABAA_f3OuUBCAPUhEWoKQoH8el7gUXyIQJsO",
"memberInfos": [
{
"email": "redactedemail@redact.com",
"name": "Redacted",
"securityOption": {
"authenticationMethod": "NONE",
"notaryAuthentication": ""
},
"id": "CBJCHBCAABAAEXdEjQn0Q9b4vC3GXwmK7vl_gI0wO37b"
}
],
"order": 1,
"role": "SIGNER",
"privateMessage": "",
"label": null,
"name": null,
"visiblePages": []
},
{
"id": "CBJCHBCAABAAbZXboOnGtgFvj3R9L_Mqi2pmt_FN6fsI",
"memberInfos": [
{
"email": "redactedemail@redact.com",
"name": "",
"securityOption": {
"authenticationMethod": "NONE",
"notaryAuthentication": ""
},
"id": "CBJCHBCAABAAiVxZMHZsM1SQBiYsF6N2s6g1rwh6iiXB"
}
],
"order": 2,
"role": "APPROVER",
"privateMessage": "",
"label": null,
"name": null,
"visiblePages": []
}
],
"postSignOption": {},
"reminderFrequency": "",
"securityOption": {},
"senderEmail": "redactedemail@redact.com",
"settings": {},
"signatureType": "ESIGN",
"state": "AUTHORING",
"status": "AUTHORING",
"type": "AGREEMENT",
"vaultingInfo": {},
"notaryInfo": {},
"workflowId": null,
"sendType": "REGULAR_SEND",
"senderSigns": "SEQUENTIAL",
"lastEventDate": "2023-01-12T14:08:49Z",
"agreementSettingsInfo": {
"canEditFiles": true,
"canEditElectronicSeals": true,
"canEditAgreementSettings": true,
"showAgreementReminderSentEvents": false,
"hipaaEnabled": false,
"showDocumentsViewedEvents": false
},
"authoringRequested": true,
"signatureFlow": "SEQUENTIAL"
}

 


I am using an API application with the agreement_write scope.

 

However:

- regardless of the transient document id, the document isn't replaced in the agreement, document is still the old one

- swapping the bearer token for the bearer token of Adobe Sign manage portal (Manage (echosign.com)) produces the result I want (replacing the document with a new one)

 

Is there a way to do it with my own API application?

    This topic has been closed for replies.