UpdateUdfFile
Updates the file information of a function.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FileFolderPath |
string |
No |
The path of the folder where the function file is located. |
Business_process/First_Business_Process/function/string_processing_function |
| ProjectId |
integer |
No |
The ID of the DataWorks workspace. You can view the ID on the Workspace Management page by clicking the Settings icon in the upper-right corner. |
10000 |
| FunctionType |
string |
Yes |
The category of the function, which corresponds to the function type in the create function form. Valid values: MATH (mathematical operation functions), AGGREGATE (aggregate functions), STRING (string processing functions), DATE (date processing functions), ANALYTIC (window functions), and OTHER (other functions). Valid values:
|
STRING |
| ClassName |
string |
Yes |
The name of the class where the function is defined, which corresponds to the class name in the create function form. |
com.alibaba.DataWorks.api.udf.StringConcat |
| Resources |
string |
Yes |
The list of resource names referenced by the function. Separate multiple resource names with commas (,). This corresponds to the resources in the create function form. |
string-concat-1.0.0.jar,commons-lang-2.6.jar |
| UdfDescription |
string |
No |
The description of the function purpose, which corresponds to the description in the create function form. |
Concatenate several strings to generate a new string |
| CmdDescription |
string |
No |
The command format used to call the function, which corresponds to the command format in the create function form. |
StringConcat(String... substrs) |
| ParameterDescription |
string |
No |
The description of the input parameters for the function, which corresponds to the parameter description in the create function form. Valid values:
|
List of strings to be connected |
| ReturnValue |
string |
No |
The description of the return value of the function, which corresponds to the return value in the create function form. |
New strings generated by concatenating all strings before and after the input order |
| Example |
string |
No |
The call example of the function, which corresponds to the example in the create function form. |
StringConcat('a', 'b', 'c') |
| ProjectIdentifier |
string |
No |
The unique identifier of the DataWorks workspace, which is the English identifier displayed when you switch workspaces at the top of the Data Studio page. You must specify either this parameter or the ProjectId parameter to determine the DataWorks workspace for the API call. |
dw_project |
| FileId |
string |
Yes |
The ID of the file. |
10000001 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| ErrorMessage |
string |
The error message. |
The connection does not exist. |
| RequestId |
string |
The unique ID of the request. You can use the ID to troubleshoot issues when an error occurs. |
0000-ABCD-EFG**** |
| ErrorCode |
string |
The error code. |
Invalid.Tenant.ConnectionNotExists |
| Success |
boolean |
Specifies whether the request is successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"ErrorMessage": "The connection does not exist.",
"RequestId": "0000-ABCD-EFG****",
"ErrorCode": "Invalid.Tenant.ConnectionNotExists",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError.System | An internal system error occurred. Try again later. | |
| 500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | |
| 403 | Forbidden.Access | Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. | No permission, please authorize |
| 429 | Throttling.Api | The request for this resource has exceeded your available limit. | |
| 429 | Throttling.System | The DataWorks system is busy. Try again later. | |
| 429 | Throttling.User | Your request is too frequent. Try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.