Request
Basic information
| Field | Value |
|---|---|
| HTTP URL | https://api.dingtalk.io/v2.0/storage/spaces/dentries/{dentryUuid}/permissions/inheritances |
| HTTP Method | PUT |
| Supported app types | appType-Internal app |
| Permissions required | permission-Storage.Permission.Write-Write permission for organization storage authorization information |
Request header
| Name | Type | Required | Description |
|---|---|---|---|
| x-acs-dingtalk-access-token | String | Yes | The access credential for calling this API. Obtain it by calling the Get the access token of an internal app API. |
Path parameter
| Name | Type | Required | Description |
|---|---|---|---|
| dentryUuid | String | Yes | The file UUID. Obtain the value of the dentryUuid response parameter by calling the File Search or Get dentryUuid information API. |
Query parameter
| Name | Type | Required | Description |
|---|---|---|---|
| unionId | String | Yes | The unionId of the user. Obtain the value of the unionid parameter by calling the Query user details API. |
Request body
| Name | Type | Required | Description |
|---|---|---|---|
| inheritance | String | Yes | The permission inheritance mode. Enum values: - PASS_ON: Pass on. The current file or folder inherits the permissions of all parent nodes, which are then combined with the permissions on the current file or folder. For the same user, the highest permission is applied. - BREAK: Break. The permission inheritance is interrupted at the current node. - Break is not supported for OWNER and MANAGER. - This is the default permission inheritance mode. |
Request example
HTTPResponse
Response body
| Name | Type | Description |
|---|---|---|
| success | Boolean | Indicates whether this operation succeeded. |
Response body example
Error codes
If an error occurs when you call this API, find the solution in the Global error codes document based on the error message.| HttpCode | Error code | Error message | Description |
|---|---|---|---|
| 400 | paramError | %s | Parameter error |
| 400 | paramError.dentryUuid | %s | Parameter error - dentryUuid |
| 400 | paramError.permissionInheritance | %s | Parameter error - permissionInheritance |
| 400 | permissionInheritanceUnsupportedForRootDentry | %s | Permission inheritance is not supported for the root directory |
| 404 | spaceNotExist | %s | The space does not exist |
| 404 | dentryNotExist | %s | The file does not exist |
| 500 | systemError | %s | System error |
| 500 | unknownError | Unknown Error | Unknown error |
| 503 | operationTimeout | %s | Request timed out |