All Products
Search
Document Center

:ModifyScene

Last Updated:Mar 01, 2024

Modifies the information about 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

PUT /v2/openapi/instances/{instanceId}/scenes/{sceneId}

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

PUT openapi/instances/{instanceId}/scenes/{sceneId}

airec-cn-o400whm78004
sceneIdstringYes
test

Response parameters

ParameterTypeDescriptionExample
object
resultobject

The instance ID.

sceneIdstring

The scene ID.

test
gmtModifiedstring

The returned results.

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

The scene ID.

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: The scene is to be published. PUBLISHING: The scene is being published. FROZEN: The scene is 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