---
title: "Get version of a resource"
method: GET
path: "/api/resources/{resourceId}/versions/{versionId}"
tags: ["Resources"]
---

# Get version of a resource

`GET /api/resources/{resourceId}/versions/{versionId}`

Returns a version of the resource with the specified id.

## Path parameters

- `resourceId` string, uuid, required
- `versionId` string, uuid, required

## Response `200`

OK

- ResourceVersion — Object representing a resource version.
  - `id` string, uuid — The identifier of the version.
  - `resourceId` string, uuid — The identifier of the resource.
  - `contentId` string, uuid — The identifier of the content.
  - `name` string, nullable — The name of the resource.
  - `description` string, nullable — The description of the version.
  - `type` string, nullable — The type of the resource. Available values are `File`, `CSharpScript`, `PythonScript`, `Modbus`, `OPC`, `SiemensS7`, `Rockwell`, `PiWebApi`, `DataTriggerDefinitions`, `AvevaHistorian`.
  - `sizeInBytes` integer, nullable — The size of the version in bytes.
  - `state` string, nullable — The state of the version. Available values are `Draft`, `Completed`, `Archived`.
  - `path` string, nullable — Optional. The path of the resource. Some type of resources have no path, such as `Modbus`.
  - `md5Sum` string, nullable — The MD5 sum of the version.
  - `url` string, nullable — The URL of the resource.
  - `contentType` string, nullable — The content type of the version.
  - `version` integer — The version of the resource.
  - `createdAt` string, date-time — The time the version was created.
  - `createdBy` string, uuid — The user that created the version.
  - `updatedAt` string, date-time — The time the version was last updated.
  - `updatedBy` string, uuid — The user that last updated the version.
  - `flowsCount` integer — The number of flows that uses the version.
  - `flowDraftsCount` integer — The number of flow drafts that uses the version.
  - `flowTemplatesCount` integer — The number of flow templates that uses the version.
  - `parameterValuesCount` integer — The number of parameter values that uses the version.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `503` — Service Unavailable

---

[API](https://skmtc.net/crosser/apis/edge-director-api.md) · [All operations](https://skmtc.net/crosser/apis/edge-director-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/crosser/edge-director-api/versions/746b3f44e69d/schema)
