---
title: "Get Workload Versions"
method: POST
path: "/v1/workload-version/batch"
tags: ["WorkloadDefinitionVersions"]
---

# Get Workload Versions

`POST /v1/workload-version/batch`

Fetch a batch of Workload Versions

## Request body

- RecordIdentityBatchRequest
  - `ids` RecordIdentity[]
    - `sysId` string — Unique Identifier of the tracked item
    - `lastUpdate` string, date-time — Last update of the tracked item
    - `table` string — Context of the tracked item

## Response `200`

Fetched

- WorkloadDefinitionVersion[]
  - `sysId` string — Identifier of the version
  - `createdOn` string, date-time — Version created on
  - `updatedOn` string, date-time — Version updated on
  - `version` integer
  - `definition` RecordIdentity
    - `sysId` string — Unique Identifier of the tracked item
    - `lastUpdate` string, date-time — Last update of the tracked item
    - `table` string — Context of the tracked item
  - `predecessor` RecordIdentity
    - `sysId` string — Unique Identifier of the tracked item
    - `lastUpdate` string, date-time — Last update of the tracked item
    - `table` string — Context of the tracked item
  - `details` 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
- `404` — Not Found
- `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)
