Skip to main content
POST
/
api
/
v1
/
folders
/
{folder_id}
/
file_upload_requests
Create a file upload request (initiate direct upload)
curl --request POST \
  --url https://api.scholarlysoftware.com/api/v1/folders/{folder_id}/file_upload_requests \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "type": "file",
    "attributes": {
      "name": "annual_report.pdf",
      "size": 1024000,
      "checksum": "rL0Y20zC+Fzt72VPzMSk2A==",
      "content_type": "application/pdf"
    }
  }
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "file_upload_request",
    "attributes": {
      "created_at": "<string>",
      "updated_at": "<string>",
      "name": "annual_report.pdf",
      "content_type": "application/pdf",
      "byte_size": 1024000,
      "checksum_md5": "<string>",
      "url": "<string>",
      "locked": true,
      "state": "<string>"
    },
    "relationships": {
      "folder": {
        "links": {
          "related": "<string>"
        },
        "meta": {}
      },
      "created_by": {
        "links": {
          "related": "<string>"
        },
        "meta": {}
      }
    }
  },
  "meta": {
    "direct_upload": {
      "url": "<string>",
      "headers": {},
      "blob_signed_id": "<string>"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://api-docs.scholarlysoftware.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string
required

Bearer token

Path Parameters

folder_id
string
required

Body

application/vnd.api+json
data
object
required

Response

Upload request created

data
object
required
meta
object
required