---
title: "Package set score API"
method: POST
path: "/PackageExternal/PackageReportSetScore"
tags: ["PackageExternal"]
---

# Package set score API

`POST /PackageExternal/PackageReportSetScore`

Replaces "AVRCMSService/Common/AdminMaintainVTReport:SETSCORE" service.

## Headers

- `X-Version` string

## Request body

- SetReportScoreRequest
  - `token` string, nullable — Required: Token Type: GUID
  - `duration` integer — Required: This is the time the Trainee was in the session. The duration value in seconds.
  - `score` number, double — Required: This is the Score awarded to the Trainee. The Score value and decimals is supported.
  - `failedLessonSteps` string, nullable — Optional: The details explaination on the Trainee failed lesson step.
  - `criticalErrors` string, nullable — Optional: The details explaination on the Trainee Critical Errors.
  - `lessonDeviations` string, nullable — Optional: The details explaination on the Lesson Deviations if any.

## Response `200`

Successful Set Score

- SetReportScoreResponse
  - `status` string, nullable — Returns the status for the request. "1" - Score is set successfully "0" - Failure to set score, see Message property for more information
  - `message` string, nullable — Returns the corresponding Description for each of the request status. Possible messages: "Success" - Describe record is successfully inserted into database and the corresponding status is "1". "Failed to Create record" - Describe unsuccessful insert record into database and the corresponding status is "0". "Invalid parameters" - Describe Request parameters are invalid or missing parameters. The corresponding status is "0". Check Request parameters and token parameters. "Exception error" - Describe an unhandled exception has occurred and the corresponding status is "0".

## Other responses

- `400` — If param invalid or empty

---

[API](https://skmtc.dev/eon-xr/apis/eonxr-api.md) · [All operations](https://skmtc.dev/eon-xr/apis/eonxr-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eon-xr/eonxr-api/revisions/538c75161c64/schema)
