You are currently viewing 'Upload Injury File ' page



Usage

POST /Athlete/UploadInjuryFile/:DistrictID/:InjuryID/:ProviderId

Optionally you may supply the file type, if not specified it will default
to General(1):
POST /Athlete/UploadInjuryFile/:DistrictID/:InjuryID/:ProviderId/:FileType

Content-Type

multipart/form-data

Description

Uploads a file or files to the Injury specified. You can optionally include an additional Key/Value pair in the form-data, with the key being "Message". This will populate the remark message for this file upload.

Note

Put the access token generated from the Get Access Token endpoint (Auth/ValidateUser) in the request header field "Authorization" as "bearer ACCESS_TOKEN_HERE". Sample post URL
/Athlete/UploadInjuryFile/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000

Example

Type Name Required Note
URL District ID YES District ID of user
URL Injury ID YES ID of injury
URL Provider ID YES ID of provider
Sample response:

[
{
"fileName": "Test.pdf",
"success": true
"message": "File uploaded successfully.",
"injuryFileGuid": "0cf55247-2d04-4e5f-9d90-a830a8dde757",
},
{
"fileName": "Test.zip",
"success": false
"message": "File Type not allowed. Text, Image, PDF, Word Doc, and Excel only.",
"injuryFileGuid": "00000000-0000-0000-0000-000000000000",
},
...
]

File Type

Value
Description
1
General
2
Return to Play
3
Legal Forms