cURL
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>" }
Uploads one or more files along with course context information
JWT token passed in x-access-token header
File uploaded successfully
The response is of type object.
object
Was this page helpful?