POST
/
api
/
user
/
files
Upload files to user's document library
curl --request POST \
  --url https://pria.praxislxp.com/api/user/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'selectedCourse={
  "course_id": 123,
  "course_name": "<string>",
  "assistant": {
    "_id": "<string>",
    "name": "<string>"
  }
}' \
  --form files=@example-file
{
  "success": true,
  "message": "<string>",
  "fileId": "<string>"
}

Authorizations

Authorization
string
header
required

JWT token passed in x-access-token header

Body

multipart/form-data

Response

File uploaded successfully

The response is of type object.