Update draft
Drafts can be updated before they are finalized and issued. Updating a draft is useful when new data becomes available or when changes need to be made based on feedback.
Example: Update a draft
To update claims values, labels, annotations and metadata (if available) of a draft, call the update
method that returns a promise. This promise resolves to another instance of the updated Draft
(the most up-to-date version of the draft with the latest revision):
- TypeScript
- Java
const updatedDraft = await createdDraft.update({
claims: {
field1: "Field 1 claim value",
},
});
ClaimsModelExample claimsModelData = new ClaimsModelExample();
claimsModelData.setField1(""Field 1 claim value"");
var updatedDraft = createdDraft.update(claimsModelData);
Further reading
After updating the draft, you can do the following: