Skip to content

Upload data to an assignment

Request

Consumes a filled assignment template file (XLSX, or XLS) that contains the data for the assignment. A valid authorization token is required for the request.

Security
Bearer
Bodymultipart/form-data
FormFilestring, (binary)required

The file being uploaded, which should be a filled assignment template (XLSX, or XLS).

UploadIdinteger, (int32)required

The unique ID for tracking the file upload request.

curl -i -X POST \
  https://developer.sustainabilitymaster.ai/_mock/openapi/api/DataCollection/ComposedAssignmentDataUpload/Excel \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: multipart/form-data' \
  -F FormFile=@FormFile.bin \
  -F UploadId=0

Responses

Successfully uploaded the assignment data