User Management Service
Policy Rule Management
The Policy Rule Management service provides functionality to manage rules associated with policies, including creation, retrieval, updating, and deletion of policy rules.
Policy Rule Operations
Get Policy Rule by IDs GET /api/v1/policy-rule/
| Resource URL | /api/v1/policy-rule/ |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| policyId | integer | Yes | ID of the policy |
| attributeId | integer | Yes | ID of the attribute |
Example Request
Example Response
Update Policy Rule PUT /api/v1/policy-rule/
| Resource URL | /api/v1/policy-rule/ |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Request Body
Example Request
Example Response
Delete Policy Rule DELETE /api/v1/policy-rule/
| Resource URL | /api/v1/policy-rule/ |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| policyId | integer | Yes | ID of the policy |
| attributeId | integer | Yes | ID of the attribute to delete |
Example Request
Example Response
Get All Policy Rules GET /api/v1/policy-rule
| Resource URL | /api/v1/policy-rule |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Example Request
Example Response
Create Policy Rule POST /api/v1/policy-rule
| Resource URL | /api/v1/policy-rule |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Request Body
Example Request
Example Response
Supported Operators
| Operator | Description |
|---|---|
| EQUALS | Exact match comparison |
| NOT_EQUALS | Negative match comparison |
| CONTAINS | String contains comparison |
| STARTS_WITH | String starts with comparison |
| ENDS_WITH | String ends with comparison |
| GREATER_THAN | Numeric greater than comparison |
| LESS_THAN | Numeric less than comparison |
| GREATER_THAN_EQUALS | Numeric greater than or equals comparison |
| LESS_THAN_EQUALS | Numeric less than or equals comparison |
HTTP Response Codes
| HTTP Code | Message |
|---|---|
| 200 | Success |
| 204 | No Content |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Invalid Input |
| 404 | Invalid or not found type |
All endpoints require proper authentication through Bearer token in the Authorization header. The token should be included in all API requests in the headers: