All Products
Search
Document Center

:CreateScene

Last Updated:Mar 01, 2024

Verifies the information that you specified for creating a scene.

Operation description

We recommend that you do not call an API operation to manage scenes. We recommend that you go to the Scenario Building page in the Artificial Intelligence Recommendation (AIRec) console to manage scenes.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

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

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

POST openapi/instances/{instanceId}/scenes?dryRun=false

airec-cn-o400whm78004
dryRunbooleanYes
false

Response parameters

ParameterTypeDescriptionExample
object
resultobject

The ID of the instance.

sceneIdstring

Specifies whether to perform a dry run. Valid values: true: performs a dry run. false: performs a dry run and sends the request. Default value: false

test
gmtModifiedstring

The returned results.

2020-04-23T06:08:48.000Z
statusstring

The ID of the scene.

DRAFT
gmtCreatestring

The time when the scene was last modified.

2020-04-23T06:08:48.000Z
codestring

The state of the scene. Valid values: DRAFT, PUBLISHING, and FROZEN

InternalServerError
requestIdstring

The time when the scene was created.

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

The error code.

An internal server error occurred

Examples

Sample success responses

JSONformat

{
  "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

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history