Skip to main content

14) 오피스 문서의 은닉정보 삭제

오피스 문서의 은닉정보 삭제

API

MethodURL
POST/api/remove/customProperties

Request Body

NameRequiredTypeDescription
licenseKeyrequiredstringSHIELDRM 관리자 페이지의 연동 앱 관리 메뉴에서 발급 받은 라이선스 입력
jsonObjrequiredjsonObject문서 정보
jsonObj
NameRequiredTypeDescription
filePathrequiredstring대상 문서 경로
inforequiredjsonArray삭제할 은닉 정보 목록
    propertiesKeyrequiredstring은닉정보 key
    propertyValuerequiredstring은닉정보 value

Response

NameTypeDescription
codeint0 : 성공
이외의 값 : 에러
messagestring실패 시 에러 메시지

Examples

Request

  • Body
{
"licenseKey": "EFBB-029BD-F155-7F13E",
"jsonObj": "{\"filePath\":\"/opt/shieldrm/data/test/none.xlsx\",\"info\":[{\"propertiesKey\":\"newKey\",\"propertyValue\":\"new\"}]}"
}

Response

  • 성공
{
"code": 0
}
  • 실패
  • Status code : 200 OK
[지원하지 않는 확장자]
{
"code": -1,
"message": "Unsupported file type: /opt/shieldrm/data/test/none.txt"
}

[AIP 문서일 경우]
{
"code": -1,
"message": "Permission is required to open this file."
}
{
"code": -1,
"message": "Unknown file format."
}

[DS 문서일 경우]
{
"code": -1,
"message": "zip END header not found"
}
{
"code": -1,
"message": "Unsupported file format: Unknown"
}

  • Status code : 401 UNAUTHORIZED
{
"code": 40101,
"message": "{\"code\":40107,\"message\":\"No matching license found\",\"detail\":\"License skms_connector_info information is empty.\"}"
}