---
title: "Upload Resource via Multipart File (uploadResource)"
method: POST
path: "/api/resource/upload"
tags: ["tb-resource-controller"]
---

# Upload Resource via Multipart File (uploadResource)

`POST /api/resource/upload`

Create the Resource using multipart file upload. 

Resource combination of the title with the key is unique in the scope of tenant. 

Available for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.

## Response `200`

OK

- TbResourceInfo — A JSON value representing the Resource Info.
  - `id` TbResourceId
    - `id` string, uuid, required — ID of the entity, time-based UUID v1
    - `entityType` 'TB_RESOURCE', required — string
  - `createdTime` integer — Timestamp of the resource creation, in milliseconds
  - `tenantId` TenantId
    - `id` string, uuid, required — ID of the entity, time-based UUID v1
    - `entityType` 'TENANT', required — string
  - `title` string — Resource title.
  - `resourceType` 'LWM2M_MODEL' | 'JKS' | 'PKCS_12' | 'JS_MODULE' | 'IMAGE' | 'DASHBOARD' | 'GENERAL' — Resource type.
  - `resourceSubType` 'IMAGE' | 'SCADA_SYMBOL' | 'EXTENSION' | 'MODULE' — Resource sub type.
  - `resourceKey` string — Resource key.
  - `publicResourceKey` string
  - `etag` string — Resource etag.
  - `fileName` string — Resource file name.
  - `descriptor` unknown
  - `name` string
  - `public` boolean
  - `link` string
  - `publicLink` string

---

[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)
