Skip to content

Upload data to an assignment

Request

Uploads assignment data in JSON format, including metrics and dimensions, for the specified assignment. A valid authorization token is required for the request.

Security
Bearer
Query
uploadIdinteger, (int32)required

The unique identifier for the upload session, used to track the specific data upload.

Bodyapplication/jsonrequired

The assignment payload

Array [
<property name>anyadditional property
]
curl -i -X POST \
  'https://developer.sustainabilitymaster.ai/_mock/openapi/api/DataCollection/ComposedAssignmentDataUpload/Json?uploadId=0' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "property1": null,
      "property2": null
    }
  ]'

Responses

Successfully uploaded the assignment data

Body
statusstring or null

HTTP status code or operation status, depending on the response schema.

validationResultArray of strings or null

Validation results returned for the uploaded data.

Response
{
  "status": "string",
  "validationResult": [
    "string"
  ]
}