19) Add/Modify/Delete Document Security Levels
Add/Modify/Delete Document Security Level
API
| Method | URL |
|---|---|
| POST | /api/internal/save/customProperties/securityLevel |
Request Header
| Name | Required | Description |
|---|---|---|
| Authorization | required | User authentication method, JWT value Authorization: Bearer {JWT}Note: The JWT value is issued through the authentication/authorization service. |
Request Body
| Name | Required | Type | Description |
|---|---|---|---|
| licenseKey | required | string | Enter the issued license in the integration app management menu of the SHIELDRM admin page. |
| srcFilePath | required | string | Document path for adding/modifying/deleting |
| scLabelId | required | string | Label ID (Enter the label ID you want to specify from the security grade list retrieval API result data) - When an empty value ("") is entered, the grade information is deleted. |
Response
| Name | Type | Description |
|---|---|---|
| code | int | 0 : Success Other values: Error |
| message | string | Error message on failure |
Examples
Request
- Body
{
"licenseKey": "EFBB-029BD-F155-7F13E",
"srcFilePath": "/opt/shieldrm/data/test.xlsx",
"scLabelId": "jPQOgOEa-Ge338ddW-3q4Wyy2S-Qy3w4mm5"
}
Response
- success
{
"code": 0
}
- failure
- Status code : 400 Bad Request
[조회된 보안 등급 리스트에 포함되어 있지 않은 scLabelId일 경우]
{
"code": 40005,
"message": "Invalid scLabelId"
}
- Status code : 500 INTERNAL_SERVER_ERROR
[토큰 검증 실패]
{
"code": 50001,
"message": "401 : \"{\"code\":40101,\"message\":\"Invalid token\",\"detail\":\"invalid_token\"}\""
}