---
title: "Download JS Resource (downloadJsResourceIfChanged)"
method: GET
path: "/api/resource/js/{resourceId}/download"
tags: ["tb-resource-controller"]
---

# Download JS Resource (downloadJsResourceIfChanged)

`GET /api/resource/js/{resourceId}/download`

Download Resource based on the provided Resource Id or return 304 status code if resource was not changed.

Available for any authorized user.

## Path parameters

- `resourceId` string, required

## Headers

- `If-None-Match` string

## Response `200`

OK

---

[API](https://skmtc.net/thingsboard/apis/thingsboard-rest-api.md) · [All operations](https://skmtc.net/thingsboard/apis/thingsboard-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thingsboard/thingsboard-rest-api/revisions/40169ccdec5c/schema)
