All Products
Search
Document Center

Artificial Intelligence Recommendation:CreateScene

Last Updated:Sep 28, 2025

Verify the information for scenario creation.

Operation description

You can use the Scenario Management feature in the console to manage scenarios. For more information, see .

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /v2/openapi/instances/{instanceId}/scenes HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

instanceId

string

Yes

The instance ID.

airec-cn-o400whm78004

dryRun

boolean

No

Specifies whether to perform a dry run. **true:** Checks whether the scenario ID exists. **false:** Creates the scenario. This is the default value.

false

Response elements

Element

Type

Description

Example

object

The details of the returned result.

result

object

The details of the returned result.

sceneId

string

The scenario ID.

test

gmtModified

string

The time when the scenario was last modified.

2020-04-23T06:08:48.000Z

status

string

The status of the scenario:

  • DRAFT: The scenario is in a draft state and can be republished.

  • PUBLISHING: The scenario is being published.

  • RUNNING: The scenario is running.

  • FAILED: The scenario failed to be published.

  • FROZEN: The scenario is frozen.

DRAFT

gmtCreate

string

The time when the scenario was created.

2020-04-23T06:08:48.000Z

code

string

The error code.

InternalServerError

requestId

string

The request ID.

8F81A922-6C81-46D6-B78C-CC35E16B1691

message

string

The error details.

An internal server error occurred

Examples

Success response

JSON format

{
  "result": {
    "sceneId": "test",
    "gmtModified": "2020-04-23T06:08:48.000Z",
    "status": "DRAFT",
    "gmtCreate": "2020-04-23T06:08:48.000Z"
  },
  "code": "InternalServerError",
  "requestId": "8F81A922-6C81-46D6-B78C-CC35E16B1691",
  "message": "An internal server error occurred"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.