---
title: "Save Or update Mobile app (saveMobileApp)"
method: POST
path: "/api/mobile/app"
tags: ["mobile-app-controller"]
---

# Save Or update Mobile app (saveMobileApp)

`POST /api/mobile/app`

Create or update the Mobile app. When creating mobile app, platform generates Mobile App Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Mobile App Id will be present in the response. Specify existing Mobile App Id to update the mobile app. Referencing non-existing Mobile App Id will cause 'Not Found' error.

The pair of mobile app package name and platform type is unique for entire platform setup.



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

## Request body

- MobileApp — A JSON value representing the Mobile Application.
  - `id` MobileAppId
    - `id` string, uuid, required — ID of the entity, time-based UUID v1
    - `entityType` 'TENANT' | 'CUSTOMER' | 'USER' | 'DASHBOARD' | 'ASSET' | 'DEVICE' | 'ALARM' | 'RULE_CHAIN' | 'RULE_NODE' | 'ENTITY_VIEW' | 'WIDGETS_BUNDLE' | 'WIDGET_TYPE' | 'TENANT_PROFILE' | 'DEVICE_PROFILE' | 'ASSET_PROFILE' | 'API_USAGE_STATE' | 'TB_RESOURCE' | 'OTA_PACKAGE' | 'EDGE' | 'RPC' | 'QUEUE' | 'NOTIFICATION_TARGET' | 'NOTIFICATION_TEMPLATE' | 'NOTIFICATION_REQUEST' | 'NOTIFICATION' | 'NOTIFICATION_RULE' | 'QUEUE_STATS' | 'OAUTH2_CLIENT' | 'DOMAIN' | 'MOBILE_APP' | 'MOBILE_APP_BUNDLE' | 'CALCULATED_FIELD' | 'JOB' | 'ADMIN_SETTINGS' | 'AI_MODEL' | 'API_KEY', required
  - `createdTime` integer — Entity creation timestamp in milliseconds since Unix epoch
  - `tenantId` TenantId
    - `id` string, uuid, required — ID of the entity, time-based UUID v1
    - `entityType` 'TENANT', required — string
  - `pkgName` string, required — Application package name. Cannot be empty
  - `title` string — Application title
  - `appSecret` string, required — Application secret. The length must be at least 16 characters
  - `platformType` 'WEB' | 'ANDROID' | 'IOS', required — Application platform type: ANDROID or IOS
  - `status` 'DRAFT' | 'PUBLISHED' | 'DEPRECATED' | 'SUSPENDED', required — Application status: PUBLISHED, DEPRECATED, SUSPENDED, DRAFT
  - `versionInfo` MobileAppVersionInfo
    - `minVersion` string — Minimum supported version
    - `minVersionReleaseNotes` string — Release notes of minimum supported version
    - `latestVersion` string — Latest supported version
    - `latestVersionReleaseNotes` string — Release notes of latest supported version
  - `storeInfo` StoreInfo
    - `appId` string
    - `sha256CertFingerprints` string
    - `storeLink` string
  - `name` string — Mobile app package name

## Response `200`

OK

- MobileApp — A JSON value representing the Mobile Application.
  - `id` MobileAppId
    - `id` string, uuid, required — ID of the entity, time-based UUID v1
    - `entityType` 'TENANT' | 'CUSTOMER' | 'USER' | 'DASHBOARD' | 'ASSET' | 'DEVICE' | 'ALARM' | 'RULE_CHAIN' | 'RULE_NODE' | 'ENTITY_VIEW' | 'WIDGETS_BUNDLE' | 'WIDGET_TYPE' | 'TENANT_PROFILE' | 'DEVICE_PROFILE' | 'ASSET_PROFILE' | 'API_USAGE_STATE' | 'TB_RESOURCE' | 'OTA_PACKAGE' | 'EDGE' | 'RPC' | 'QUEUE' | 'NOTIFICATION_TARGET' | 'NOTIFICATION_TEMPLATE' | 'NOTIFICATION_REQUEST' | 'NOTIFICATION' | 'NOTIFICATION_RULE' | 'QUEUE_STATS' | 'OAUTH2_CLIENT' | 'DOMAIN' | 'MOBILE_APP' | 'MOBILE_APP_BUNDLE' | 'CALCULATED_FIELD' | 'JOB' | 'ADMIN_SETTINGS' | 'AI_MODEL' | 'API_KEY', required
  - `createdTime` integer — Entity creation timestamp in milliseconds since Unix epoch
  - `tenantId` TenantId
    - `id` string, uuid, required — ID of the entity, time-based UUID v1
    - `entityType` 'TENANT', required — string
  - `pkgName` string, required — Application package name. Cannot be empty
  - `title` string — Application title
  - `appSecret` string, required — Application secret. The length must be at least 16 characters
  - `platformType` 'WEB' | 'ANDROID' | 'IOS', required — Application platform type: ANDROID or IOS
  - `status` 'DRAFT' | 'PUBLISHED' | 'DEPRECATED' | 'SUSPENDED', required — Application status: PUBLISHED, DEPRECATED, SUSPENDED, DRAFT
  - `versionInfo` MobileAppVersionInfo
    - `minVersion` string — Minimum supported version
    - `minVersionReleaseNotes` string — Release notes of minimum supported version
    - `latestVersion` string — Latest supported version
    - `latestVersionReleaseNotes` string — Release notes of latest supported version
  - `storeInfo` StoreInfo
    - `appId` string
    - `sha256CertFingerprints` string
    - `storeLink` string
  - `name` string — Mobile app package name

---

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