Custom Transaction Data
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 <host domain>/api/sign/v1/cs-packagesHTTP Headers
Accept: application/json 
Content-Type: multipart/form-data 
Authorization: Bearer access_tokenRequest 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--For a complete description of each field, see the Request Payload Table below.
Response Payload
{ "id": "9sKhW-h-qS9m6Ho3zRv3n2a-rkI=" }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
| Property | Type | Editable | Required | Default | Sample Values | 
|---|---|---|---|---|---|
| status | string | Yes | No | DRAFT | 
                            | 
| type | string | Yes | No | PACKAGE | 
                            | 
| name | string | Yes | Yes | n/a | 
                            | 
| documents | |||||
| name | string | Yes | No | n/a | 
                            | 
| id | string | Yes | No | n/a | 
                            | 
| approvals | |||||
| fields | |||||
| subtype | string | Yes | No | n/a | 
                            
                            
                            | 
| type | string | Yes | No | n/a | 
                            | 
| extract | boolean | Yes | No | false | 
                            | 
| height | integer | Yes | No | 50 | 50 / 100 / 150 ... | 
| left | integer | Yes | No | 0 | 50 / 100 / 150 ... | 
| page | integer | Yes | No | 0 | 0 / 1 / 2 ... | 
| top | integer | Yes | No | 0 | 50 / 100 / 150 ... | 
| width | integer | Yes | No | 200 | 50 / 100 / 150 ... | 
| role | string | Yes | No | n/a | 
                            | 
| id | string | Yes | No | n/a | 
                            | 
| roles | |||||
| id | string | Yes | No | n/a | 
                            | 
| name | string | Yes | No | n/a | 
                            | 
| type | string | Yes | No | SIGNER | 
                            | 
| signers | |||||
|  | string | Yes | Yes | n/a | |
| firstName | string | Yes | Yes | n/a | 
                            | 
| lastName | string | Yes | Yes | n/a | 
                            | 
| phone | string | Yes | No | n/a | 
                            | 
| id | string | Yes | No | n/a | 
                            | 
| company | string | Yes | No | n/a | 
                            | 
| title | string | Yes | No | n/a | 
                            | 
| data | |||||
| First Name | string | Yes | No | n/a | 
                            | 
| Last Name | string | Yes | No | n/a | 
                            | 
| Signing Order | string | Yes | No | n/a | 1 | 

