19) 문서 보안 등급 추가/수정/삭제
문서의 보안 등급 추가/수정/삭제
API
Method | URL |
---|---|
POST | /api/save/customProperties/securityLevel |
Request Body
Name | Required | Type | Description |
---|---|---|---|
licenseKey | required | string | SHIELDRM 관리자 페이지의 연동 앱 관리 메뉴에서 발급 받은 라이선스 입력 |
srcFilePath | required | string | 추가/수정/삭제 할 문서 경로 |
labelId | required | string | 레이블 아이디(보안 등급 목록 조회 API 결과 데이터 중에서 지정하고자 하는 레이블 아이디 입력) - 빈값("") 입력 시 등급정보가 삭제됨 |
Response
Name | Type | Description |
---|---|---|
code | int | 0 : 성공 이외의 값 : 에러 |
message | string | 실패 시 에러 메시지 |
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.\"}"
}