Mutation - 폴더 복사
폴더를 복사한다.
Schema
Input Objects
KEY OBJECT DESC sourceId ID 원본 폴더 아이디 targetId ID 목적 폴더 아이디 sourceFullPathString 원본 폴더 경로 (필수) targetFullPathString 목적 폴더 경로 (필수) nameChange Boolean 이름변경 여부 adminPage Boolean 관리자 페이지 여부
Objects
OBJECT DESC FsEntityDto 폴더 / 파일 정보
Method
POST
{{url}}/graphql
Headers
KEY VALUE AuthorizationSecurity365 JWT 토큰
Body
QUERY
mutation copyFolder($sourceId: ID, $targetId: ID, $sourceFullPath: String!, $targetFullPath: String!, $nameChange: Boolean, $adminPage: Boolean) {
copyFolder(sourceId: $sourceId, targetId: $targetId, sourceFullPath: $sourceFullPath, targetFullPath: $targetFullPath, nameChange: $nameChange, adminPage: $adminPage) {
id
indexDate
deleteKey
storageId
interlockId
realPath
displayPath
storageEntityId
type
realName
displayName
description
tag
size
createdDate
createdUserId
createdUserName
modifiedDate
modifiedUserId
modifiedUserName
status
statusReqDate
statusResDate
folderInfo {
type
shareFolderInfo {
bgImage
labels {
id
name
color
__typename
}
members {
id
name
role
createdDate
__typename
}
teamId
type
__typename
}
shareChannelInfo {
channelId
__typename
}
shareListInfo {
pos
__typename
}
shareCardInfo {
labelId
pos
__typename
}
__typename
}
acl {
id
targetType
targetId
authFlag
order
refernceId
__typename
}
__typename
}
}
Sample
VARIABLES
{
"sourceFullPath": "/folder/newSharePoint/열람테스트",
"targetFullPath": "/folder/newSharePoint/복사 이동 테스트",
"nameChange": false,
"adminPage": false
}RESPONSE
{
"data": {
"copyFolder": {
"id": "f03235fbb1b611ed990016ea3c3de916",
"indexDate": 1676963479035,
"deleteKey": "",
"storageId": "CLD_000002",
"realPath": "/shieldrive_folder/fb",
"displayPath": "/folder/newSharePoint",
"storageEntityId": null,
"type": 0,
"realName": "f03235fbb1b611ed990016ea3c3de916",
"displayName": "열람테스트",
"description": "",
"tag": "",
"size": 0,
"createdDate": 1676963479035,
"createdUserId": "1342ce6d6aea11ed8a7ebea82d4a5658",
"createdUserName": "user1",
"modifiedDate": 1676963479035,
"modifiedUserId": "1342ce6d6aea11ed8a7ebea82d4a5658",
"modifiedUserName": "user1",
"status": 0,
"statusReqDate": 0,
"statusResDate": 0,
"folderInfo": {
"type": "FOLDER",
"shareFolderInfo": null,
"shareChannelInfo": null,
"shareListInfo": null,
"shareCardInfo": null,
"__typename": "FsEntityFolderInfoDto"
},
"acl": {
"id": "f08d9c6cb1b611ed990016ea3c3de916",
"targetType": 2,
"targetId": "jQF7z1Lo-34TwGFbJ-lfd7MYHD-8G5iKMHl",
"authFlag": 15,
"order": 2,
"refernceId": "a9e659962cbd11edb4ac6a7104c4c708",
"__typename": "FsEntityAclDto"
},
"__typename": "FsEntityDto"
}
}
}