Sync Asset


Synchronize assets with the specified tag from Developer Console to Admin Console.

Prerequisites


  • The OU has obtained the application, or the application is a self-built application in the OU.

  • The asset have been tagged with the specified tags. If necessary, you can add tags to assets via the Update Asset API.

  • The application has been granted with the permission to access the user’s assets. Contact the OU administrator to get the permission if necessary.

Request Format


GET https://{apigw-address}/app-portal-service/v2.2/asset/sync

Request Parameters (URI)


Name

Location (Path/Query)

Required/Optional

Data Type

Description

orgId

Query

Required

String

The OU ID which the asset belongs to. How to get orgId >>

Error code


Code

Description

31400

OU ID cannot be empty

31403

Application is not authorized to access asset information

31404

No corresponding OU found

Samples

Request Sample


url: https://alpha-apim-cn4.eniot.io/app-portal-service/v2.2/asset/sync?orgId=yourOrgId

method: GET

Return Sample


{"code":0,"message":"","data":null}