メインコンテンツまでスキップ

Mutation - 폴더 이동

폴더를 이동한다.


Schema

GraphQL Schema Documentation


Input Objects

KEYOBJECTDESC
sourceIdID원본 폴더 아이디
targetIdID목적 폴더 아이디
sourceFullPathString원본 폴더 경로 (필수)
targetFullPathString목적 폴더 경로 (필수)
nameChangeBoolean이름변경 여부
adminPageBoolean관리자 페이지 여부

Objects

OBJECTDESC
FsEntityDto폴더 / 파일 정보

Method

POST

{{url}}/graphql

Headers

KEYVALUE
AuthorizationSecurity365 JWT 토큰

Body

QUERY

mutation moveFolder($sourceId: ID, $targetId: ID, $sourceFullPath: String!, $targetFullPath: String!, $nameChange: Boolean, $adminPage: Boolean) {
moveFolder(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": {
"moveFolder": {
"id": "92ce1bb4b28c11ed990016ea3c3de916",
"indexDate": 1677055514973,
"deleteKey": "",
"storageId": "CLD_000002",
"realPath": "/shieldrive_folder/b4",
"displayPath": "/folder/newSharePoint/복사 이동 테스트/확장자테스트",
"storageEntityId": null,
"type": 0,
"realName": "92ce1bb4b28c11ed990016ea3c3de916",
"displayName": "열람테스트",
"description": "",
"tag": "",
"size": 0,
"createdDate": 1677055234650,
"createdUserId": "1342ce6d6aea11ed8a7ebea82d4a5658",
"createdUserName": "user1",
"modifiedDate": 1677055234650,
"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": "3a8ac8c2b28d11ed990016ea3c3de916",
"targetType": 2,
"targetId": "jQF7z1Lo-34TwGFbJ-lfd7MYHD-8G5iKMHl",
"authFlag": 15,
"order": 2,
"refernceId": "a9e659962cbd11edb4ac6a7104c4c708",
"__typename": "FsEntityAclDto"
},
"__typename": "FsEntityDto"
}
}
}