Signatures

Signature Update

Markdown for LLMs
PUT
/signatures/signature/{signatureId}/update

Replaces one of the caller's saved signatures. Send its id as signatureId, and the new content in the body.

An update is a full replacement of both fields. signature.value is mandatory even when only the default is changing: an update without it is rejected with 400 SIGNATURE_VALUE_REQUIRED and changes nothing. The body is checked before signatureId, so an invalid body is rejected for its content even when the id matches no saved signature. signature.isDefault left out means false, so it makes the signature non-default.

isDefault true takes the default from whichever of the caller's other signatures held it, in the same call. false on the current default leaves the caller with no default; no other signature is promoted.

Send the image as raw Base64-encoded PNG or JPEG data, with no data: prefix — the form a signature field's value takes on signatures-envelope-sign, where signatures-envelope-open hands saved signatures back for reuse. Anything else, a data: URI included, is rejected with 400 SIGNATURE_IMAGE_INVALID. The value is stored and returned exactly as sent.

Authorization

AuthorizationBearer <token>

JWT token to authenticate the request.

In: header

X-Api-Key<token>

API key, sent as a request header.

In: header

Path Parameters

signatureId*string

Id of the saved signature to update, as returned by signatures-signature-create or signatures-signature-list in id. Only the caller's own saved signatures can be addressed. Must be a GUID: a value that is not one matches no route and returns a bodiless 404.

Formatuuid

Request Body

application/json

Mandatory, as SavedSignatureUpsertRequest, with both fields: whatever is left out is replaced, not kept. A request with no body fails with 500.

TypeScript Definitions

Use the request body type in TypeScript.

Request body for signatures-signature-create and signatures-signature-update: the signature image in signature.value and, optionally, whether it is the caller's default. An update replaces both: value must be sent again even when only isDefault changes.

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/signatures/signature/4f1c9a2e-6b3d-4e87-9a05-c2d81e7f3b64/update" \  -H "Content-Type: application/json" \  -d '{    "signature": {      "value": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==",      "isDefault": false    },    "externalContext": {      "id": "12345"    }  }'
{  "result": {    "statusCode": 200,    "message": "OK",    "data": {      "signature": {        "id": "4f1c9a2e-6b3d-4e87-9a05-c2d81e7f3b64",        "data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==",        "isDefault": false      }    }  },  "origin": "PUT https://api.doctavian.com/v1/signatures/signature/{signatureId}/update",  "dateTime": "2026-10-06T09:41:06.000Z",  "externalContext": {    "id": "12345"  },  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "ad3fb6e6689961a8949a063d909d52d8"}
{  "error": {    "statusCode": 400,    "message": "Bad Request",    "innerErrors": [      {        "code": "USER_SIGNATURE_ID_INVALID",        "message": "User signature with Id 4f1c9a2e-6b3d-4e87-9a05-c2d81e7f3b64 does not exist for the current user.",        "userMessage": "User signature with Id 4f1c9a2e-6b3d-4e87-9a05-c2d81e7f3b64 does not exist for the current user."      }    ],    "externalErrors": []  },  "externalContext": {    "id": "12345"  },  "origin": "PUT https://api.doctavian.com/v1/signatures/signature/{signatureId}/update",  "dateTime": "2026-10-16T07:12:30.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "e2a7c51f8b0d4936a4f1c3e9d76b08a5"}
Empty
{  "error": {    "statusCode": 500,    "message": "Internal Server Error",    "innerErrors": [      {        "code": "FUNCTION_EXECUTION_ERROR",        "message": "An error ocurred during function execution",        "userMessage": "An error ocurred during function execution",        "eventId": "955ca0fb-e8cb-41f4-8e6c-890be191720b"      }    ],    "externalErrors": []  },  "origin": "PUT https://api.doctavian.com/v1/signatures/signature/{signatureId}/update",  "dateTime": "2026-10-16T07:12:47.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "7f3b0d9c2e1a4c68b5d7a0f4e9c2163b",  "externalContext": {    "id": "12345"  }}