Edit a Notarization Session
This help page will guide you on how to edit a notarization session using the PUT /notarizations/{id}
endpoint.
Requirements
- You need to have Node.js installed on your system.
- You'll also need the axios library. You can install it using the following command:
Endpoint
Method: PUT
Path: /notarizations/{id}
Parameters
id
: The unique ID of the notarization session to be edited. (required)
Request Body
The request body should contain the updated notarization session details, such as signers or document information. The schema is the same as the one used for creating a notarization session.
Response
The response will contain the updated notarization session details.
Sample Code
Here's a code snippet to edit a notarization session:
const axios = require("axios");
const notarizationId = "<notarizationId>";
const accessToken = "<accessToken>";
const updatedData = {
notarizationType: "ron",
taggingOrganizationId: null,
primarySigner: {
id: "<signerID>",
email: "new_signer@example.com",
firstName: "New",
lastName: "Signer",
},
documents: [
{
docId: "<updatedFileUuid>",
title: "Updated Document Title",
description: "Updated Document Description",
gcsRefId: "<updatedFileUrl>",
tags: [],
},
],
};
const config = {
method: "put",
url: `https://public-api.enotarylog.com/notarizations/${notarizationId}`,
headers: {
Authorization: `Bearer ${accessToken}`,
"Content-Type": "application/json",
},
data: JSON.stringify(updatedData),
};
axios(config)
.then(function (response) {
console.log("Notarization session updated successfully:", response.data);
})
.catch(function (error) {
console.log(error);
});
Replace <notarizationId>
with the actual notarization ID, <accessToken>
with your API access token, and updatedData
with the new notarization session details.
Additional Resources
For more information about the Notarization API, visit the official documentation.
If you need further assistance or have questions, feel free to reach out to our support team.