Skip to main content
POST
/
v1
/
collaborators
/
{id}
/
documents
Upload document
curl --request POST \
  --url https://api.capitalcheckin.app/v1/collaborators/{id}/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form 'type=<string>' \
  --form 'description=<string>'
{
  "id": "<string>",
  "name": "<string>",
  "type": "<string>",
  "size": 123,
  "url": "<string>",
  "description": "<string>",
  "uploaded_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

OAuth2 access token for authentication

Path Parameters

id
string
required

Collaborator ID

Body

multipart/form-data
file
file

Document file

type
string

Document type

description
string

Document description

Response

201 - application/json

Document uploaded

id
string

Document ID

name
string

Document name

type
string

Document type

size
number

File size in bytes

url
string<uri>

Document download URL

description
string

Document description

uploaded_at
string<date-time>

Upload timestamp