All Products
Search
Document Center

DataWorks:UmountDirectory

Last Updated:Oct 17, 2024

Removes a directory from the left-side navigation pane of DataAnalysis.

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
TargetTypestringNo

The type of the directory that you want to remove from the left-side navigation pane of DataAnalysis. Example: META_ALBUM, which indicates the metadata data album.

META_ALBUM
TargetIdstringNo

The ID of the directory that you want to remove from the left-side navigation pane of DataAnalysis. This parameter is used together with the TargetType parameter. For example, if you set the TargetType parameter to META_ALBUM, you must set the TargetId parameter to the ID of the metadata data album. You can call the ListMetaCollections operation to obtain the ID of the data album. The ID is indicated by the QualifiedName parameter.

album.339
TargetUserIdstringNo

The ID of the user in the tenant.

  • If you do not configure TargetUserId, the directory belongs to you.
  • If you configure TargetUserId, the directory belongs to the user specified by using TargetUserId.
1234567890

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID. You can use the ID to troubleshoot issues.

0bc5aa2716455247597991794e65bd
HttpStatusCodeinteger

The HTTP status code. The value 200 indicates that the request was successful.

200
Datainteger

The number of directories that are removed. Valid values:

  • 0: No directories are removed. The left-side navigation pane may not contain the specified directory.
  • 1: One directory is removed.
1
ErrorMessagestring

The error message.

You have no permission.
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
ErrorCodestring

The error code. The value 200 indicates that the task is successful.

200

Examples

Sample success responses

JSONformat

{
  "RequestId": "0bc5aa2716455247597991794e65bd",
  "HttpStatusCode": 200,
  "Data": 1,
  "ErrorMessage": "You have no permission.",
  "Success": true,
  "ErrorCode": "200"
}

Error codes

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

Change history

Change timeSummary of changesOperation
2023-03-02The request parameters of the API has changedView Change Details