• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Replacing a document using PUT /agreements/{id}

New Here ,
May 02, 2023 May 02, 2023

Copy link to clipboard

Copied

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?

Views

136

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation