Spaces:
Configuration error
Configuration error
File size: 669 Bytes
af1b492 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | # 📡 Mock API Reference
The `DataPrivacyEnv` simulates a RESTful API. Below are the available endpoints for the agent.
| Endpoint | Method | Payload | Description |
| :--- | :--- | :--- | :--- |
| `/users` | `GET` | N/A | Returns list of all user profiles. |
| `/users/{id}` | `PATCH` | `{"remove_fields": ["field"]}` | Removes specific sensitive metadata. |
| `/users/{id}` | `DELETE` | N/A | Completely removes a user record. |
| `/logs` | `GET` | N/A | Returns system logs containing potential PII. |
| `/logs/{id}` | `PATCH` | `{"text": "REDACTED"}` | Overwrites log text with a placeholder. |
| `/logs/{id}` | `DELETE` | N/A | Removes an orphaned log entry. |
|