Skip to main content
POST
/
companies
/
{id}
/
attachments
Upload company attachment
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"
    }
  }
}

Authorizations

Authorization
string
header
required

Path Parameters

id
string<uuid>
required

Body

multipart/form-data
file
file
required
title
string
required
account_id
string<uuid>
required
description
string

Response

success
boolean
data
object