All Products
Search
Document Center

DataWorks:RenameFunction

Last Updated:Dec 05, 2024

Renames a user-defined function (UDF) in DataStudio.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ProjectIdstringYes

The DataWorks workspace ID. You can log on to the DataWorks console and go to the Workspace page to query the ID.

10002
IdstringYes

The ID of the UDF.

543217824470354XXXX
NamestringYes

The new name.

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

1ED4C97F-BA2A-57C5-BA7C-8853627EXXXX
Successstring

Indicates whether the request was successful. Valid values:

  • true
  • false
true

Examples

Sample success responses

JSONformat

{
  "RequestId": "1ED4C97F-BA2A-57C5-BA7C-8853627EXXXX",
  "Success": "true"
}

Error codes

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