RenameResource

Updated at:

Renames a file resource in DataStudio.

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 parameters

Parameter

Type

Required

Description

Example

ProjectId

integer

Yes

The DataWorks workspace ID. You can obtain the ID on the Workspace page of the DataWorks console.

You must specify this parameter to identify the DataWorks workspace to which the API operation applies.

10000

Id

string

Yes

The unique identifier of the Data Studio file resource.

Note

This field is of the Long type in SDK versions earlier than 8.0.0 and the String type in 8.0.0 and later. This does not affect normal usage. Compilation failures may occur only when upgrading across version 8.0.0. If so, manually update the data type.

543217824470354****

Name

string

Yes

The unique identifier of the Data Studio file resource.

Note

This field is of the Long type in SDK versions earlier than 8.0.0 and the String type in 8.0.0 and later. This does not affect normal usage. Compilation failures may occur only when upgrading across version 8.0.0. If so, manually update the data type.

Rename

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

4CDF7B72-020B-542A-8465-21CFFA8XXXXX

Success

boolean

Whether the request was successful. Valid values:

  • true

  • false

true

Examples

Success response

JSON format

{
  "RequestId": "4CDF7B72-020B-542A-8465-21CFFA8XXXXX",
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.