resetPanelAgentCredits

Requires:
@tuya-miniapp/cloud-api≥1.7.5

Method signature
resetPanelAgentCredits(params: )

Description

Use one available reset to restore the device's Credits to the current plan limit.

Parameters

ParameterTypeRequiredDescription
YesdevId of the current device

Return Value

Type: Promise<boolean>
true indicates that one reset has been used and Credits have been restored. false indicates that the Credits feature is not enabled or there are insufficient available resets.

Examples

Request example

import { resetPanelAgentCredits } from '@tuya-miniapp/cloud-api';

export async function useResetAfterConfirmation(devId: string) {
  return resetPanelAgentCredits({ devId });
}

Response example

true