Authorizations
Path Parameters
Body
multipart/form-data
curl --request POST \
--url https://www.useroulette.com/api/v1/companies/{id}/attachments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'title=<string>' \
--form 'description=<string>' \
--form account_id=3c90c3cc-0d44-4b50-8888-8dd25736052a \
--form file=@example-file{
"success": true,
"data": {
"attachment": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attachment_type": "file",
"title": "Financial Projections",
"description": "Q4 2024 financial projections spreadsheet",
"file_path": "company-uuid/attachment-uuid/document.pdf",
"link_url": "<string>",
"file_size_bytes": 123,
"file_mime_type": "application/pdf",
"original_filename": "Q4 Projections.xlsx",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
}Upload additional documents/attachments to a company (financials, legal docs, etc.).
curl --request POST \
--url https://www.useroulette.com/api/v1/companies/{id}/attachments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'title=<string>' \
--form 'description=<string>' \
--form account_id=3c90c3cc-0d44-4b50-8888-8dd25736052a \
--form file=@example-file{
"success": true,
"data": {
"attachment": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"attachment_type": "file",
"title": "Financial Projections",
"description": "Q4 2024 financial projections spreadsheet",
"file_path": "company-uuid/attachment-uuid/document.pdf",
"link_url": "<string>",
"file_size_bytes": 123,
"file_mime_type": "application/pdf",
"original_filename": "Q4 Projections.xlsx",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
}