Directory - 파일 엎어쓰기
SHIELDrive 의 fileId를 알고 있는 상황에서 해당 파일을 엎어쓰기 하기 위해 사용한다.
SHIELDrive 파일 자동 전송 기능 연동된 서비스의 경우 파일 처리 후 재업로드를 요청하면 무한 반복 발생 할 수 있으므로
fileTransfer값을 true로 설정해야한다.
Method
POST
{{url}}/api-directory/entity/file/overwrite
Request Headers
KEY VALUE AuthorizationSecurity365 JWT토큰
Request Parameter
KEY OBJECT DESC accountString 로그인한 사용자 아이디 (필수)fileIdString 파일 아이디 (필수)fileMultipartFile 파일 바이너리 (필수)fileTransferBoolean SHIELDrive 파일 자동 전송 기능 연동된 서비스 유무 (필수)
Exception Response Body (json)
KEY OBJECT DESC status int HTTP 리턴 코드 code int 오류 코드 message String 오류 메시지
Exception Code (HTTP - 500)
CODE MESSAGE DESC 2000 not found entity 개인함 존재하지 않음 6007 inactive user 활성화된 사용자 아님 6000 not found user 사용자 정보 없음 5003 not found company extra 회사 정보 없음 2006 invalid entity name 유효하지 않은 파일명 2001 no permission write 부모폴더에 접근 권한 없음 13003 no permission 업로드 권한 없음 2002 duplicate name 중복된 파일명
Sample
RESPONSE - Exception
{
"status": 500,
"code": 13003,
"message": "no permission"
}