---
title: "Make Device Profile Default (setDefaultDeviceProfile)"
method: POST
path: "/api/deviceProfile/{deviceProfileId}/default"
tags: ["device-profile-controller"]
---

# Make Device Profile Default (setDefaultDeviceProfile)

`POST /api/deviceProfile/{deviceProfileId}/default`

Marks device profile as default within a tenant scope.

Available for users with 'TENANT_ADMIN' authority.

## Path parameters

- `deviceProfileId` string, required

## Response `200`

OK

- DeviceProfile — A JSON value representing the device profile.
  - `id` DeviceProfileId
    - `id` string, uuid, required — ID of the entity, time-based UUID v1
    - `entityType` 'DEVICE_PROFILE', required — string
  - `createdTime` integer — Timestamp of the profile creation, in milliseconds
  - `tenantId` TenantId
    - `id` string, uuid, required — ID of the entity, time-based UUID v1
    - `entityType` 'TENANT', required — string
  - `name` string — Unique Device Profile Name in scope of Tenant.
  - `description` string — Device Profile description.
  - `image` string — Either URL or Base64 data of the icon. Used in the mobile application to visualize set of device profiles in the grid view.
  - `type` 'DEFAULT' — Type of the profile. Always 'DEFAULT' for now. Reserved for future use.
  - `transportType` 'DEFAULT' | 'MQTT' | 'COAP' | 'LWM2M' | 'SNMP' — Type of the transport used to connect the device. Default transport supports HTTP, CoAP and MQTT.
  - `provisionType` 'DISABLED' | 'ALLOW_CREATE_NEW_DEVICES' | 'CHECK_PRE_PROVISIONED_DEVICES' | 'X509_CERTIFICATE_CHAIN' — Provisioning strategy.
  - `defaultRuleChainId` RuleChainId
    - `id` string, uuid, required — ID of the entity, time-based UUID v1
    - `entityType` 'RULE_CHAIN', required — string
  - `defaultDashboardId` DashboardId
    - `id` string, uuid, required — ID of the entity, time-based UUID v1
    - `entityType` 'DASHBOARD', required — string
  - `defaultQueueName` string — Rule engine queue name. If present, the specified queue will be used to store all unprocessed messages related to device, including telemetry, attribute updates, etc. Otherwise, the 'Main' queue will be used to store those messages.
  - `provisionDeviceKey` string — Unique provisioning key used by 'Device Provisioning' feature.
  - `firmwareId` OtaPackageId
    - `id` string, uuid, required — ID of the entity, time-based UUID v1
    - `entityType` 'OTA_PACKAGE', required — string
  - `softwareId` OtaPackageId
    - `id` string, uuid, required — ID of the entity, time-based UUID v1
    - `entityType` 'OTA_PACKAGE', required — string
  - `defaultEdgeRuleChainId` RuleChainId
    - `id` string, uuid, required — ID of the entity, time-based UUID v1
    - `entityType` 'RULE_CHAIN', required — string
  - `version` integer
  - `default` boolean — Used to mark the default profile. Default profile is used when the device profile is not specified during device creation.
  - `profileData` DeviceProfileData
    - `configuration` DefaultDeviceProfileConfiguration
      - `type` string, required
    - `transportConfiguration` union — JSON object of device profile transport configuration
      - CoapDeviceProfileTransportConfiguration
        - `type` string, required
        - `coapDeviceTypeConfiguration` union
          - DefaultCoapDeviceTypeConfiguration
            - `coapDeviceType` string, required
            - `transportPayloadTypeConfiguration` union
              - …
          - EfentoCoapDeviceTypeConfiguration
            - `coapDeviceType` string, required
        - `clientSettings` PowerSavingConfiguration
          - `powerMode` 'PSM' | 'DRX' | 'E_DRX'
          - `psmActivityTimer` integer
          - `edrxCycle` integer
          - `pagingTransmissionWindow` integer
      - DefaultDeviceProfileTransportConfiguration
        - `type` string, required
      - Lwm2mDeviceProfileTransportConfiguration
        - `type` string, required
        - `observeAttr` TelemetryMappingConfiguration
          - `keyName` object
          - `observe` string[]
          - `attribute` string[]
          - `telemetry` string[]
          - `attributeLwm2m` object
          - `initAttrTelAsObsStrategy` boolean
          - `observeStrategy` 'SINGLE (0): One resource equals one single observe request' | 'COMPOSITE_ALL (1): All resources in one composite observe request' | 'COMPOSITE_BY_OBJECT (2): Grouped composite observe requests by object'
        - `bootstrapServerUpdateEnable` boolean
        - `bootstrap` union[]
          - union
            - NoSecLwM2MBootstrapServerCredential
              - …
            - PSKLwM2MBootstrapServerCredential
              - …
            - RPKLwM2MBootstrapServerCredential
              - …
            - X509LwM2MBootstrapServerCredential
              - …
        - `clientLwM2mSettings` OtherConfiguration
          - `useObject19ForOtaInfo` boolean
          - `fwUpdateStrategy` integer
          - `swUpdateStrategy` integer
          - `clientOnlyObserveAfterConnect` integer
          - `powerMode` 'PSM' | 'DRX' | 'E_DRX'
          - `psmActivityTimer` integer
          - `edrxCycle` integer
          - `pagingTransmissionWindow` integer
          - `fwUpdateResource` string
          - `swUpdateResource` string
          - `defaultObjectIDVer` string
      - MqttDeviceProfileTransportConfiguration
        - `type` string, required
        - `deviceTelemetryTopic` string
        - `deviceAttributesTopic` string
        - `deviceAttributesSubscribeTopic` string
        - `transportPayloadTypeConfiguration` union
          - JsonTransportPayloadConfiguration
            - `transportPayloadType` string, required
          - ProtoTransportPayloadConfiguration
            - `transportPayloadType` string, required
            - `deviceTelemetryProtoSchema` string
            - `deviceAttributesProtoSchema` string
            - `deviceRpcRequestProtoSchema` string
            - `deviceRpcResponseProtoSchema` string
            - `enableCompatibilityWithJsonPayloadFormat` boolean
            - `useJsonPayloadFormatForDefaultDownlinkTopics` boolean
        - `sparkplug` boolean
        - `sparkplugAttributesMetricNames` string[]
        - `sendAckOnValidationException` boolean
      - SnmpDeviceProfileTransportConfiguration
        - `type` string, required
        - `timeoutMs` integer
        - `retries` integer
        - `communicationConfigs` union[]
          - union
            - ClientAttributesQueryingSnmpCommunicationConfig
              - …
            - SharedAttributesSettingSnmpCommunicationConfig
              - …
            - TelemetryQueryingSnmpCommunicationConfig
              - …
            - ToDeviceRpcRequestSnmpCommunicationConfig
              - …
            - ToServerRpcRequestSnmpCommunicationConfig
              - …
    - `provisionConfiguration` union — JSON object of provisioning strategy type per device profile
      - AllowCreateNewDevicesDeviceProfileProvisionConfiguration
        - `provisionDeviceSecret` string
        - `type` string, required
      - CheckPreProvisionedDevicesDeviceProfileProvisionConfiguration
        - `provisionDeviceSecret` string
        - `type` string, required
      - DisabledDeviceProfileProvisionConfiguration
        - `provisionDeviceSecret` string
        - `type` string, required
      - X509CertificateChainProvisionConfiguration
        - `provisionDeviceSecret` string
        - `type` string, required
        - `certificateRegExPattern` string
        - `allowCreateNewDevicesByX509Certificate` boolean
    - `alarms` DeviceProfileAlarm[] — JSON array of alarm rules configuration per device profile
      - `id` string — String value representing the alarm rule id
      - `alarmType` string — String value representing type of the alarm
      - `createRules` object — Complex JSON object representing create alarm rules. The unique create alarm rule can be created for each alarm severity type. There can be 5 create alarm rules configured per a single alarm type. See method implementation notes and AlarmRule model for more details
      - `clearRule` AlarmRule
        - `condition` AlarmCondition
          - `condition` AlarmConditionFilter[] — JSON array of alarm condition filters
            - `key` AlarmConditionFilterKey
              - …
            - `valueType` 'STRING' | 'NUMERIC' | 'BOOLEAN' | 'DATE_TIME' — String representation of the type of the value
            - `value` unknown
            - `predicate` union — JSON object representing filter condition
              - …
          - `spec` union — JSON object representing alarm condition type
            - DurationAlarmConditionSpec
              - …
            - RepeatingAlarmConditionSpec
              - …
            - SimpleAlarmConditionSpec
              - …
        - `schedule` union — JSON object representing time interval during which the rule is active
          - AnyTimeSchedule
            - `type` 'ANY_TIME' | 'SPECIFIC_TIME' | 'CUSTOM'
            - `dynamicValue` DynamicValueString
              - …
          - CustomTimeSchedule
            - `type` 'ANY_TIME' | 'SPECIFIC_TIME' | 'CUSTOM'
            - `dynamicValue` DynamicValueString
              - …
            - `timezone` string
            - `items` CustomTimeScheduleItem[]
              - …
          - SpecificTimeSchedule
            - `type` 'ANY_TIME' | 'SPECIFIC_TIME' | 'CUSTOM'
            - `dynamicValue` DynamicValueString
              - …
            - `timezone` string
            - `daysOfWeek` integer[]
            - `startsOn` integer
            - `endsOn` integer
        - `alarmDetails` string — String value representing the additional details for an alarm rule
        - `dashboardId` DashboardId
          - `id` string, uuid, required — ID of the entity, time-based UUID v1
          - `entityType` 'DASHBOARD', required — string
      - `propagate` boolean — Propagation flag to specify if alarm should be propagated to parent entities of alarm originator
      - `propagateToOwner` boolean — Propagation flag to specify if alarm should be propagated to the owner (tenant or customer) of alarm originator
      - `propagateToTenant` boolean — Propagation flag to specify if alarm should be propagated to the tenant entity
      - `propagateRelationTypes` string[] — JSON array of relation types that should be used for propagation. By default, 'propagateRelationTypes' array is empty which means that the alarm will be propagated based on any relation type to parent entities. This parameter should be used only in case when 'propagate' parameter is set to true, otherwise, 'propagateRelationTypes' array will be ignored.

---

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