User Management Service
Policy Management
The Policy Management service provides functionality to manage access control policies, including creation, retrieval, updating, and deletion of policies.
Policy Operations
Get Policy by ID GET /api/v1/policy/{policyId}
| Resource URL | /api/v1/policy/{policyId} |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Parameters
| Parameter | Description | Required |
|---|---|---|
| policyId | ID of policy to retrieve | Yes |
Example Request
Example Response
Update Policy PUT /api/v1/policy/{policyId}
| Resource URL | /api/v1/policy/{policyId} |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Parameters
| Parameter | Description | Required |
|---|---|---|
| policyId | ID of policy to update | Yes |
Request Body
Example Request
Example Response
Delete Policy DELETE /api/v1/policy/{policyId}
| Resource URL | /api/v1/policy/{policyId} |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Parameters
| Parameter | Description | Required |
|---|---|---|
| policyId | ID of policy to delete | Yes |
Example Request
Example Response
Get All Policies GET /api/v1/policy
| Resource URL | /api/v1/policy |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Example Request
Example Response
Create Policy POST /api/v1/policy
| Resource URL | /api/v1/policy |
|---|---|
| Response Format | JSON |
| Requires Authentication | Yes |
| Rate Limited | Yes |
| HTTPS | Yes |
Request Body
Example Request
Example Response
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: