---
title: "Package rights API"
method: POST
path: "/PackageExternal/PackageRights"
tags: ["PackageExternal"]
---

# Package rights API

`POST /PackageExternal/PackageRights`

Validate if the user has package(aka Virtual Trainer) license, Package Role permissions and assigned view permission to view the package.

## Headers

- `X-Version` string

## Request body

- RightsRequest
  - `token` string, nullable — Required: Token Type: GUID

## Response `200`

If user is Successfully validated

- RightsResponse
  - `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)
