{ "opencollection": "1.0.0", "info": { "name": "Vijil Console API (Combined) agent-configurations policies API", "version": "0.1.0" }, "items": [ { "info": { "name": "policies", "type": "folder" }, "items": [ { "info": { "name": "Get Policy", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/policies/:policy_id", "params": [ { "name": "policy_id", "value": "", "type": "path" } ] }, "docs": "Get a policy by ID." }, { "info": { "name": "Update Policy", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/v1/policies/:policy_id", "params": [ { "name": "policy_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update a policy." }, { "info": { "name": "Delete Policy", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/v1/policies/:policy_id", "params": [ { "name": "policy_id", "value": "", "type": "path" } ] }, "docs": "Delete a policy." }, { "info": { "name": "List Policies", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/policies/", "params": [ { "name": "category", "value": "", "type": "query" }, { "name": "status", "value": "", "type": "query" }, { "name": "search", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of results (default 10)" }, { "name": "offset", "value": "", "type": "query", "description": "Number of results to skip for paging" } ] }, "docs": "List policies with optional filters and paging." }, { "info": { "name": "Create Policy", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/policies/", "body": { "type": "json", "data": "{}" } }, "docs": "Create a new policy." }, { "info": { "name": "List Presets", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/policies/presets/", "params": [ { "name": "category", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query" }, { "name": "offset", "value": "", "type": "query" } ] }, "docs": "List system preset policies." }, { "info": { "name": "Copy Preset", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/policies/presets/:preset_id/copy", "params": [ { "name": "preset_id", "value": "", "type": "path" }, { "name": "name_override", "value": "", "type": "query" } ] }, "docs": "Create a copy of a preset policy for the team." }, { "info": { "name": "Upload File", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/policies/:policy_id/upload", "params": [ { "name": "policy_id", "value": "", "type": "path" } ], "body": { "type": "multipart-form", "data": [] } }, "docs": "Upload a policy document file (PDF, TXT, MD) using streaming.\n\nThe file will be streamed to S3 without loading entirely into memory.\nMaximum file size: 10 MB." }, { "info": { "name": "Activate Policy", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/policies/:policy_id/activate", "params": [ { "name": "policy_id", "value": "", "type": "path" } ] }, "docs": "Activate a policy (requires all rules to be approved)." }, { "info": { "name": "Download File", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/policies/:policy_id/file", "params": [ { "name": "policy_id", "value": "", "type": "path" } ] }, "docs": "Download the policy's attached file.\n\nReturns the file content with appropriate headers for download." }, { "info": { "name": "Delete File", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/v1/policies/:policy_id/file", "params": [ { "name": "policy_id", "value": "", "type": "path" } ] }, "docs": "Delete the attached file from a policy.\n\nThis removes the file from storage and clears file metadata,\nbut preserves any extracted source text." }, { "info": { "name": "Download Converted File", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/policies/:policy_id/converted", "params": [ { "name": "policy_id", "value": "", "type": "path" } ] }, "docs": "Download the converted markdown file for a policy.\n\nReturns the markdown file that was generated from the uploaded PDF.\nReturns 400 if no converted file exists." }, { "info": { "name": "List Policy Rules", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/policies/:policy_id/rules", "params": [ { "name": "policy_id", "value": "", "type": "path" }, { "name": "limit", "value": "", "type": "query" }, { "name": "offset", "value": "", "type": "query" } ] }, "docs": "List rules for a specific policy." }, { "info": { "name": "Create Policy Rule", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/policies/:policy_id/rules", "params": [ { "name": "policy_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Create a new manual rule for a policy." } ] } ], "bundled": true }