Adds a user signature image and/or user initials image to the specified user.

The userId property specified in the endpoint must match the authenticated user's userId and the user must be a member of the account.

The rules and processes associated with this are:

  • If Content-Type is set to application/json, then the default behavior for creating a default signature image, based on the name and a DocuSign font, is used.
  • If Content-Type is set to multipart/form-data, then the request must contain a first part with the user signature information, followed by parts that contain the images.

For each Image part, the Content-Disposition header has a "filename" value that is used to map to the signatureName and/or signatureInitials properties in the JSON to the image.

For example: Content-Disposition: file; filename="Ron Test20121127083900"

If no matching image (by filename value) is found, then the image is not set. One, both, or neither of the signature and initials images can be set with this call.

The Content-Transfer-Encoding: base64 header, set in the header for the part containing the image, can be set to indicate that the images are formatted as base64 instead of as binary.

If successful, 200-OK is returned, and a JSON structure containing the signature information is provided, note that the signatureId can change with each API POST, PUT, or DELETE since the changes to the signature structure cause the current signature to be closed, and a new signature record to be created.

Request

HTTP request

POST /v2/accounts/{accountId}/users/{userId}/signatures

Parameters

Parameter name Value Description
Path parameters
accountId string

The external account number (int) or account ID Guid.

userId string

The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing.

Responses

Code Description Reference
201 Created Successful response.
400 Bad Request Error encountered.

SDK Method

Users::createSignatures

Definitions Expand All | Collapse All

UserSignatures

Users' signatures

adoptedDateTime string

The date and time the user adopted their signature.

createdDateTime string

Indicates the date and time the item was created.

dateStampProperties dateStampProperties
errorDetails errorDetails
externalID string
imageType string

One of signature_image or initials_image.

initials150ImageId string
initialsImageUri string

Contains the URI for an endpoint that you can use to retrieve the initials image.

isDefault string
phoneticName string
signature150ImageId string
signatureFont string

The font type for the signature, if the signature is not drawn. The supported font types are:

"7_DocuSign", "1_DocuSign", "6_DocuSign", "8_DocuSign", "3_DocuSign", "Mistral", "4_DocuSign", "2_DocuSign", "5_DocuSign", "Rage Italic"

signatureId string

Specifies the signature ID associated with the signature name. You can use the signature ID in the URI in place of the signature name, and the value stored in the signatureName property in the body is used. This allows the use of special characters (such as "&", "<", ">") in a the signature name. Note that with each update to signatures, the returned signature ID might change, so the caller will need to trigger off the signature name to get the new signature ID.

signatureImageUri string

Contains the URI for an endpoint that you can use to retrieve the signature image.

signatureInitials string

The initials associated with the signature.

signatureName string

Specifies the user signature name.

signatureType string
stampFormat string
stampImageUri string
stampSizeMM string
stampType string

dateStampProperties

dateAreaHeight string
dateAreaWidth string
dateAreaX string
dateAreaY string

errorDetails

This object describes errors that occur. It is only valid for responses, and ignored in requests.

errorCode string

An error code associated with the error.

message string

A short error message.

userSignaturesInformation

userSignatures
[UserSignatures]

Examples

Generic JSON Request/Response

Request

{
"userSignatures": [
{
"signatureId": "sample string 1",
"stampType": "sample string 2",
"phoneticName": "sample string 3",
"imageType": "sample string 4",
"externalID": "sample string 5",
"stampSizeMM": "sample string 6",
"stampFormat": "sample string 7",
"dateStampProperties": {
"dateAreaX": "sample string 1",
"dateAreaY": "sample string 2",
"dateAreaWidth": "sample string 3",
"dateAreaHeight": "sample string 4"
}
,
"stampImageUri": "sample string 8",
"signatureFont": "sample string 9",
"signatureType": "sample string 10",
"signatureName": "sample string 11",
"signatureImageUri": "sample string 12",
"signatureInitials": "sample string 13",
"initialsImageUri": "sample string 14",
"createdDateTime": "sample string 15",
"adoptedDateTime": "sample string 16",
"signature150ImageId": "sample string 17",
"initials150ImageId": "sample string 18"
}
]
}

Response

{
"userSignatures": [
{
"signatureId": "sample string 1",
"stampType": "sample string 2",
"phoneticName": "sample string 3",
"imageType": "sample string 4",
"externalID": "sample string 5",
"stampSizeMM": "sample string 6",
"stampFormat": "sample string 7",
"dateStampProperties": {
"dateAreaX": "sample string 1",
"dateAreaY": "sample string 2",
"dateAreaWidth": "sample string 3",
"dateAreaHeight": "sample string 4"
}
,
"stampImageUri": "sample string 8",
"signatureFont": "sample string 9",
"signatureType": "sample string 10",
"signatureName": "sample string 11",
"signatureImageUri": "sample string 12",
"signatureInitials": "sample string 13",
"initialsImageUri": "sample string 14",
"createdDateTime": "sample string 15",
"adoptedDateTime": "sample string 16",
"signature150ImageId": "sample string 17",
"initials150ImageId": "sample string 18",
"isDefault": "sample string 19",
"errorDetails": {
"errorCode": "sample string 1",
"message": "sample string 2"
}
}
]
}

Generic XML Request/Response

Request

<userSignaturesInformation 
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.docusign.com/restapi">

<userSignatures>
<userSignature>
<adoptedDateTime>sample string 16</adoptedDateTime>
<createdDateTime>sample string 15</createdDateTime>
<dateStampProperties>
<dateAreaHeight>sample string 4</dateAreaHeight>
<dateAreaWidth>sample string 3</dateAreaWidth>
<dateAreaX>sample string 1</dateAreaX>
<dateAreaY>sample string 2</dateAreaY>
</dateStampProperties>
<externalID>sample string 5</externalID>
<imageType>sample string 4</imageType>
<initials150ImageId>sample string 18</initials150ImageId>
<initialsImageUri>sample string 14</initialsImageUri>
<phoneticName>sample string 3</phoneticName>
<signature150ImageId>sample string 17</signature150ImageId>
<signatureFont>sample string 9</signatureFont>
<signatureId>sample string 1</signatureId>
<signatureImageUri>sample string 12</signatureImageUri>
<signatureInitials>sample string 13</signatureInitials>
<signatureName>sample string 11</signatureName>
<signatureType>sample string 10</signatureType>
<stampFormat>sample string 7</stampFormat>
<stampImageUri>sample string 8</stampImageUri>
<stampSizeMM>sample string 6</stampSizeMM>
<stampType>sample string 2</stampType>
</userSignature>
</userSignatures>
</userSignaturesInformation>

Response

<userSignaturesInformation 
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.docusign.com/restapi">

<userSignatures>
<userSignature>
<adoptedDateTime>sample string 16</adoptedDateTime>
<createdDateTime>sample string 15</createdDateTime>
<dateStampProperties>
<dateAreaHeight>sample string 4</dateAreaHeight>
<dateAreaWidth>sample string 3</dateAreaWidth>
<dateAreaX>sample string 1</dateAreaX>
<dateAreaY>sample string 2</dateAreaY>
</dateStampProperties>
<errorDetails>
<errorCode>sample string 1</errorCode>
<message>sample string 2</message>
</errorDetails>
<externalID>sample string 5</externalID>
<imageType>sample string 4</imageType>
<initials150ImageId>sample string 18</initials150ImageId>
<initialsImageUri>sample string 14</initialsImageUri>
<isDefault>sample string 19</isDefault>
<phoneticName>sample string 3</phoneticName>
<signature150ImageId>sample string 17</signature150ImageId>
<signatureFont>sample string 9</signatureFont>
<signatureId>sample string 1</signatureId>
<signatureImageUri>sample string 12</signatureImageUri>
<signatureInitials>sample string 13</signatureInitials>
<signatureName>sample string 11</signatureName>
<signatureType>sample string 10</signatureType>
<stampFormat>sample string 7</stampFormat>
<stampImageUri>sample string 8</stampImageUri>
<stampSizeMM>sample string 6</stampSizeMM>
<stampType>sample string 2</stampType>
</userSignature>
</userSignatures>
</userSignaturesInformation>