---
title: "Assign asset to edge (assignAssetToEdge)"
method: POST
path: "/api/edge/{edgeId}/asset/{assetId}"
tags: ["asset-controller"]
---

# Assign asset to edge (assignAssetToEdge)

`POST /api/edge/{edgeId}/asset/{assetId}`

Creates assignment of an existing asset to an instance of The Edge. Assignment works in async way - first, notification event pushed to edge service queue on platform. Second, remote edge service will receive a copy of assignment asset (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once asset will be delivered to edge service, it's going to be available for usage on remote edge instance.

## Path parameters

- `edgeId` string, required
- `assetId` string, required

## Response `200`

OK

- Asset
  - `id` AssetId
    - `id` string, uuid, required — ID of the entity, time-based UUID v1
    - `entityType` 'ASSET', required — string
  - `createdTime` integer — Timestamp of the asset creation, in milliseconds
  - `tenantId` TenantId
    - `id` string, uuid, required — ID of the entity, time-based UUID v1
    - `entityType` 'TENANT', required — string
  - `customerId` CustomerId
    - `id` string, uuid, required — ID of the entity, time-based UUID v1
    - `entityType` 'CUSTOMER', required — string
  - `name` string, required — Unique Asset Name in scope of Tenant
  - `type` string — Asset type
  - `label` string — Label that may be used in widgets
  - `assetProfileId` AssetProfileId
    - `id` string, uuid, required — ID of the entity, time-based UUID v1
    - `entityType` 'ASSET_PROFILE', required — string
  - `version` integer
  - `additionalInfo` unknown

---

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