Skip to main content

Directory - 파일 엎어쓰기

SHIELDrive 의 fileId를 알고 있는 상황에서 해당 파일을 엎어쓰기 하기 위해 사용한다.

SHIELDrive 파일 자동 전송 기능 연동된 서비스의 경우 파일 처리 후 재업로드를 요청하면 무한 반복 발생 할 수 있으므로 fileTransfer 값을 true로 설정해야한다.


Method

POST

{{url}}/api-directory/entity/file/overwrite

Request Headers

KEYVALUE
AuthorizationSecurity365 JWT 토큰

Request Parameter

KEYOBJECTDESC
accountString로그인한 사용자 아이디 (필수)
fileIdString파일 아이디 (필수)
fileMultipartFile파일 바이너리 (필수)
fileTransferBooleanSHIELDrive 파일 자동 전송 기능 연동된 서비스 유무 (필수)

Exception Response Body (json)

KEYOBJECTDESC
statusintHTTP 리턴 코드
codeint오류 코드
messageString오류 메시지

Exception Code (HTTP - 500)

CODEMESSAGEDESC
2000not found entity개인함 존재하지 않음
6007inactive user활성화된 사용자 아님
6000not found user사용자 정보 없음
5003not found company extra회사 정보 없음
2006invalid entity name유효하지 않은 파일명
2001no permission write부모폴더에 접근 권한 없음
13003no permission업로드 권한 없음
2002duplicate name중복된 파일명

Sample

RESPONSE - Exception

{
"status": 500,
"code": 13003,
"message": "no permission"
}