Add an attachment
POST/agreements/:agreement_id/documents/attachments
Add an attachment for the agreement. Attachments are supplemental documents for the agreement. You can specify the order in which they are presented. If not specified they will be added at the end.
Request
Path Parameters
POST /agreements/:agreement_id/documents/attachments parameter
- application/json
Body
POST /agreements/:agreement_id/documents/attachments request body
Possible values: >= -9007199254740991
and <= 9007199254740991
Responses
- 200
- 400
POST /agreements/:agreement_id/documents/attachments Successful response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
Possible values: [1.0
]
The version of the response schema
Possible values: [single
]
A single object of the attachment resource.
Possible values: [attachment
]
Data contains the attachment resource.
data objectrequired
The resource data.
The unique identifier of the attachment
Possible values: [attachment
]
The unique identifier of the agreement which this attachment belongs to
Possible values: <= 9007199254740991
The order of this attachment relative to the other attachments
file object required
string
Possible values: [1.0
]
The version of the response schema
Possible values: [single
]
A single object of the file resource.
Possible values: [file
]
Data contains the file resource.
data objectrequired
The resource data.
The unique identifier of the file
Possible values: [file
]
Possible values: non-empty
The complete filename including the file extension
Possible values: non-empty
The mime type of the file
The signed read url of the file
metadata object
A provided lookup key provided by you to help you identify the file.
UTC datetime ISO string
UTC datetime ISO string
UTC datetime ISO string
UTC datetime ISO string
{
"version": "1.0",
"result_type": "single",
"resource_type": "attachment",
"data": {
"id": "cfoulxwwuequxq5cqfqexample",
"resource_type": "attachment",
"agreement": "c2rlklyygnbavwihptaexample",
"order": 1,
"file": "c8gjaw3df32bzqdsy2eexample",
"created_at": "2024-01-01T00:00:00.000Z",
"updated_at": "2024-01-01T00:00:00.000Z"
}
}
POST /agreements/:agreement_id/documents/attachments Error response
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [error
]
error objectrequired
Possible values: >= 400
and <= 599
{
"status": "error",
"error": {
"code": 0,
"message": "string",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}