Attach a file to an estimate
Scope: sales:estimates.write https://api.alladdin.com/api/v2/estimates/{estimateId}/attachments
Attaches a file to an estimate. Send the file as multipart/form-data.
Maximum file size is 10 MB. Attached files are visible in the estimate detail view.
Parameters
Path parameters
estimateId string required
Estimate ID (24-char hex ObjectId)
Request body
object file string<binary>
The file to attach
Request
import requests
url = "https://api.alladdin.com/api/v2/estimates/{estimateId}/attachments"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
}
files = {"file": open("file.pdf", "rb")}
response = requests.post(url, headers=headers, files=files)
print(response.json())Responses
Response
{
"id": "507f1f77bcf86cd799439011"
}Success responses
201 File attached application/json object id string
Error responses
400 Bad request application/json 401 Invalid or missing API key application/json 403 Insufficient permissions application/json 404 Estimate not found application/json 429 Rate limit exceeded application/json
