---
title: "Parse Workload Definition Version"
method: POST
path: "/v1/workload-version/parseImport"
tags: ["WorkloadDefinitionVersions"]
---

# Parse Workload Definition Version

`POST /v1/workload-version/parseImport`

Parse and validate a raw json string to be used for importing a Workload Definition Version

## Request body

- RawImport
  - `contentsAsJSON` string

## Response `200`

Parsed

- WorkloadConfiguration
  - `tiers` WorkloadTierConfiguration[] — Tiers composing the workload
    - `name` string — Name of the workload tier
    - `description` string — Description of the tier
    - `owner` string — Owner of the tier
    - `cloud_account_id` string[]
    - `resource_filter` QueryOperator
      - `__type` string, required — Concrete type used for polymorphic deserialization (discriminator)
  - `tags` KeyValuePair[] — List of tag key/value pairs
    - `key` string — Key of the pair
    - `value` string — Value of the pair

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.dev/corestack/apis/corestack-external-api.md) · [All operations](https://skmtc.dev/corestack/apis/corestack-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corestack/corestack-external-api/revisions/bf2cdf20826d/schema)
