Skip to main content

19) 문서 보안 등급 추가/수정/삭제

문서의 보안 등급 추가/수정/삭제

API

MethodURL
POST/api/save/customProperties/securityLevel

Request Body

NameRequiredTypeDescription
licenseKeyrequiredstringSHIELDRM 관리자 페이지의 연동 앱 관리 메뉴에서 발급 받은 라이선스 입력
srcFilePathrequiredstring추가/수정/삭제 할 문서 경로
labelIdrequiredstring레이블 아이디(보안 등급 목록 조회 API 결과 데이터 중에서 지정하고자 하는 레이블 아이디 입력)
- 빈값("") 입력 시 등급정보가 삭제됨

Response

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

Examples

Request

  • Body
{
"licenseKey": "EFBB-029BD-F155-7F13E",
"srcFilePath": "/opt/shieldrm/data/test.xlsx",
"labelId": "jPQOgOEa-Ge338ddW-3q4Wyy2S-Qy3w4mm5"
}

Response

  • 성공
{
"code": 0
}
  • 실패
  • Status code : 401 Unauthorized
[라이선스 검증 실패]
{
"code": 40101,
"message": "{\"code\":40107,\"message\":\"No matching license found\",\"detail\":\"License skms_connector_info information is empty.\"}"
}