---
name: "updateRecordTransferResult"
mode: "kit"
versionRequirements:
  - { name: "WearKit", version: "1.0.0" }
  - { name: "@ray-js/ray", version: "1.7.14" }
platform:
  - "iOS"
  - "Android"
async: true
title: "wear.updateRecordTransferResult"
---

## updateRecordTransferResult

> [VERSION] WearKit >= 1.0.0 | @ray-js/ray >= 1.7.14

> [PLATFORM] iOS, Android

> ⚡ **Supports Promise** — Returns a Promise when success / fail / complete callbacks are omitted.

### Description

Update recording transcription result.

### Parameters

| Property | Type | Required | Default | Since | Description |
| --- | --- | --- | --- | --- | --- |
| `recordTransferId` | `number` | Yes | - | `1.0.0` | Recording transcription ID |
| `directoryId` | `string` | No | - | `1.0.0` | Folder ID; if omitted, no update |
| `name` | `string` | No | - | `1.0.0` | File name; omit to keep unchanged |
| `fileName` | `string` | No | - | `1.0.0` | Recording filename; if omitted, no update |
| `wavFileName` | `string` | No | - | `1.0.0` | Recording WAV filename; if omitted, no update |
| `amplitudes` | `string` | No | - | `1.0.0` | Amplitude string, separated by commas; if omitted, no update |
| `status` | `string` | No | - | `1.0.0` | File sync status: 0 not uploaded, 1 uploading, 2 uploaded, 3 upload failed; if omitted, no update |
| `visit` | `string` | No | - | `1.0.0` | Read status: 0 unread, 1 read, 2 revised-read, 3 revised-unread |
| `remove` | `string` | No | - | `1.0.0` | Whether removed (moved to trash); omit to keep unchanged |
| `storageKey` | `string` | No | - | `1.0.0` | Cloud storage key; if omitted, no update |
| `transfer` | `string` | No | - | `1.0.0` | Transcription status: 0 not transcribed, 1 transcribing, 2 transcribed, 3 transcription failed; if omitted, no update |
| `tags` | `string[]` | No | - | `2.1.0` | Tag list, e.g., ["Client visit","Class A client"] |
| `complete` | `() => void` | No | - | - | Completion callback (executed on both success and failure) |
| `success` | `() => void` | No | - | - | Callback on successful API call |
| `fail` | `(params: Object) => void` ↓see below | No | - | - | Failure callback |

#### fail callback parameters

| Property | Type | Description |
| --- | --- | --- |
| `errorMsg` | `string` | Error message |
| `errorCode` | `string \| number` | Error code |
| `innerError` | `Object` | Error extension |

##### fail(params).innerError properties

| Property | Type | Description |
| --- | --- | --- |
| `errorCode` | `string \| number` | Error extension code |
| `errorMsg` | `string` | Error extension message |


### Error Codes

| Error Code | Error Message |
| --- | --- |
| `10001` | Internal error |
| `10012` | Record not found |

### Examples

#### Basic usage

```tsx
import { wear } from '@ray-js/ray'

wear.updateRecordTransferResult({
  recordTransferId: 1001,
  name: 'new title',
  success: () => {
    console.log('updateRecordTransferResult success');
  },
  fail: error => {
    console.error(error);
  },
});
```

> See Also：[https://developer.tuya.com/](https://developer.tuya.com/)
