POST
/
api
/
v1
/
faculty_activities
/
{faculty_activity_id}
/
files
cURL
curl --request POST \
  --url https://api.scholarlysoftware.com/api/v1/faculty_activities/{faculty_activity_id}/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/pdf' \
  --header 'X-Filename: research_paper.pdf' \
  --data-binary '@/path/to/document.pdf'
{
  "message": "<string>",
  "file": {
    "id": "<string>",
    "filename": "<string>",
    "content_type": "<string>",
    "byte_size": 123
  }
}

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

Content-Type
string
required

Content type of the file

X-Filename
string

Original filename for the uploaded file

Content-Disposition
string

Alternative way to specify filename using Content-Disposition header (e.g., attachment; filename="document.pdf")

Path Parameters

faculty_activity_id
string
required

Faculty Activity UUID

Body

File content as binary data

The body is of type file.

Response

201
application/json

file uploaded without filename header

The response is of type object.