Document attributes are customized data related to a document in a transaction, or to all data in a transaction. This data is not interpreted by Conga Sign. As such, the users of this data are free to store and interpret whatever data they want.

Customized data can also be applied at the transaction level. For more information, see Custom Document Data.

The following code shows you how to edit your DocumentPackage object to add package attributes.

HTTP Request

POST /api/cs-packages
JS

HTTP Headers

Accept: application/json 
Content-Type: multipart/form-data 
Authorization: Bearer access_token
JS

Request Payload

-- -- --WebKitFormBoundary1bNO60n7FqP5WO4t Content - Disposition: form - data;
name = "file";
filename = "testDocumentExtraction.pdf"
Content - Type: application / pdf % PDF - 1.5 % µµµµ 1 0 obj < >>> endobj....-- -- --WebKitFormBoundary1bNO60n7FqP5WO4t Content - Disposition: form - data;
name = "payload" {
	"documents": [{
		"approvals": [{
			"id": "ExampleSignatureId",
			"role": "Signer1",
			"fields": [{
				"page": 0,
				"top": 200,
				"subtype": "LABEL",
				"height": 50,
				"left": 100,
				"width": 200,
				"id": "myLabelField",
				"type": "INPUT",
				"value": "Example label field value"
			}, {
				"page": 0,
				"top": 100,
				"subtype": "FULLNAME",
				"height": 50,
				"left": 100,
				"width": 200,
				"type": "SIGNATURE",
				"name": "ExampleSignatureId"
			}],
			"name": ""
		}],
		"id": "sample-contract",
		"name": "Test Document"
	}],
	"status": "DRAFT",
	"type": "PACKAGE",
	"roles": [{
		"id": "Signer1",
		"type": "SIGNER",
		"signers": [{
			"email": "signer1@example.com",
			"firstName": "John",
			"lastName": "Smith",
			"id": "Signer1"
		}],
		"name": "Signer1"
	}],
	"name": "Example Package",
	"data": {
		"First Name": "Bill",
		"Last Name": "Drake",
		"Signing Order": "1"
	}
}-- -- --WebKitFormBoundary1bNO60n7FqP5WO4t--  
JS

For a complete description of each field, see the Request Payload Table below. 

Response Payload

{ "id": "9sKhW-h-qS9m6Ho3zRv3n2a-rkI=" }
JS

Attributes are set on a package level. You will need to get your package JSON in order to retrieve your package attributes. 

Request Payload Table

PropertyTypeEditableRequiredDefaultSample Values
statusstringYesNoDRAFTDRAFT / SENT / COMPLETED / ARCHIVED / DECLINED / OPTED_OUT / EXPIRED 
typestringYesNoPACKAGEPACKAGE / TEMPLATE / LAYOUT 
namestringYesYesn/aDocument Attributes Example 
documents
namestringYesNon/asample doc 
idstringYesNon/asample-contract 
approvals
fields
subtypestringYesNon/aFULLNAME / INITIALS / CAPTURE / MOBILE_CAPTURE / 
LABEL / TEXTFIELD / TEXTAREA / CHECKBOX / DATE / RADIO / 
LIST 
typestringYesNon/aSIGNATURE / INPUT 
extractbooleanYesNofalsetrue / false 
heightintegerYesNo5050 / 100 / 150 ...
leftintegerYesNo050 / 100 / 150 ...
pageintegerYesNo00 / 1 / 2 ...
topintegerYesNo050 / 100 / 150 ...
widthintegerYesNo20050 / 100 / 150 ...
rolestringYesNon/aSigner1 
idstringYesNon/aExampleSignatureId 
roles
idstringYesNon/aClient1 
namestringYesNon/aClient1 
typestringYesNoSIGNERSIGNER / SENDER 
signers
emailstringYesYesn/ajohn.smith@example.com 
firstNamestringYesYesn/aJohn 
lastNamestringYesYesn/aSmith 
phonestringYesNon/a514-555-8888 
idstringYesNon/aClient1 
companystringYesNon/aAcme Inc. 
titlestringYesNon/aManaging Director 
data
First NamestringYesNon/aBill 
Last NamestringYesNon/aJohnson 
Signing OrderstringYesNon/a1