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

Mutation - 파일 복사

파일을 복사한다.


Schema

GraphQL Schema Documentation


Input Objects

KEYOBJECTDESC
sourceIdID원본 파일 아이디
targetIdID목적 파일 아이디
sourceFullPathString원본 파일 경로 (필수)
targetFullPathString목적 파일 경로 (필수)
overwriteBoolean덮어쓰기 여부 (필수)
nameChangeBoolean이름변경 여부
adminPageBoolean관리자 페이지 여부

Objects

OBJECTDESC
FsEntityDto폴더 / 파일 정보

Method

POST

{{url}}/graphql

Headers

KEYVALUE
AuthorizationSecurity365 JWT 토큰

Body

QUERY

mutation copyFile($sourceId: ID, $targetId: ID, $sourceFullPath: String!, $targetFullPath: > String!, $overwrite: Boolean!, $nameChange: Boolean, $adminPage: Boolean) {
copyFile(sourceId: $sourceId, targetId: $targetId, sourceFullPath: $sourceFullPath, targetFullPath: $targetFullPath, overwrite: $overwrite, 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/복사 이동 테스트/확장자테스트/20220419 미팅 내용 정리.txt",
"targetFullPath": "/folder/newSharePoint/복사 이동 테스트/확장자테스트/폴더",
"overwrite": false,
"nameChange": false,
"adminPage": false
}

RESPONSE

{
"data": {
"copyFile": {
"id": "4471e8c67b7111ed9c753628d70bf4a3",
"indexDate": 1677055932961,
"deleteKey": "",
"storageId": "CLD_000002",
"realPath": "/shieldrive_folder/ba/429846ba7b7111ed9c753628d70bf4a3",
"displayPath": "/folder/newSharePoint/복사 이동 테스트/확장자테스트",
"storageEntityId": null,
"type": 1,
"realName": "429846ba7b7111ed9c753628d70bf4a3.txt",
"displayName": "20220419 미팅 내용 정리.txt",
"description": "",
"tag": "",
"size": 5412,
"createdDate": 1670996192819,
"createdUserId": "8239b9b2ed1511ecbf494657c4f20301",
"createdUserName": "최고관리자",
"modifiedDate": 1670996192819,
"modifiedUserId": "8239b9b2ed1511ecbf494657c4f20301",
"modifiedUserName": "최고관리자",
"status": 1,
"statusReqDate": 1670996192819,
"statusResDate": 1670996195701,
"fileInfo": {
"type": "txt",
"hash": "0c07cefdad2daf2378bed6e4316bfd5bbc14cd45ded941f9f43113d2f1b4b63b",
"contents": "",
"revision": "1.0.0",
"revisionWeight": 100000000,
"encrypted": false,
"thumbs": [
"https://devwebdav.softcamp.co.kr/sd_thumb/3CJ55MSE-xLO7Sxt4-qUBKzbcs-XP2cgGEq/4471e8c67b7111ed9c753628d70bf4a3/1.0.0/1.jpg"
],
"extractionStatus": 1,
"extractionMsg": "extraction success",
"extractionReqDate": 1677055931310,
"extractionResDate": 1677055932939,
"__typename": "FsEntityFileInfoDto"
},
"acl": {
"id": "44e7b5077b7111ed9c753628d70bf4a3",
"targetType": 2,
"targetId": "jQF7z1Lo-34TwGFbJ-lfd7MYHD-8G5iKMHl",
"authFlag": 15,
"order": 2,
"refernceId": "a9e659962cbd11edb4ac6a7104c4c708",
"__typename": "FsEntityAclDto"
},
"__typename": "FsEntityDto"
}
}
}