---
name: "openCreateScene"
mode: "api"
versionRequirements:
  - { name: "@ray-js/ray", version: "1.4.32" }
title: "openCreateScene"
---

## openCreateScene

> [VERSION] @ray-js/ray >= 1.4.32

### Description

Navigate to the Create Scene page

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `params` | `OpenSceneCreateParams` | No | Create scene parameters |

### Return Value

Type: `Promise<void>`

Promise for the navigation result; resolves on success, rejects on failure

### Referenced Types

##### `type` OpenSceneCreateParams

| Property | Type | Description |
| --- | --- | --- |
| `devId` | `string` | Device ID |

##### `type` ICommon

| Property | Type | Description |
| --- | --- | --- |
| `success` | `() => void` | Callback on successful API call |
| `fail` | `(err: ErrorMsg) => void` | Failure callback |
| `complete` | `() => void` | Completion callback (executed on both success and failure) |

##### `type` ErrorMsg

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

##### `type` ErrorMsg.innerError

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


### Examples

```typescript
import { openCreateScene } from '@ray-js/ray';

const createScene = async () => {
  try {
    await openCreateScene({ devId: 'device_001' });
    console.log('Navigated to the scene creation page');
  } catch (err) {
    console.error('Navigation failed:', err);
  }
};
```
