{
	"info": {
		"_postman_id": "f348026f-4a5a-43d2-92dc-cc614f895f4c",
		"name": "staging-insights V4",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"description": "Staging Insights API V4 endpoints collection"
	},
	"item": [
		{
			"name": "Directory",
			"item": [
				{
					"name": "Get Containers",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{accessToken}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{tenantUrl}}/relativity.rest/api/staging-insights/v4/Directory/containers",
							"host": [
								"{{tenantUrl}}"
							],
							"path": [
								"relativity.rest",
								"api",
								"staging-insights",
								"v4",
								"Directory",
								"containers"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Directories",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{accessToken}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"path\": \"\",\n    \"paging\": {\n        \"start\": 1,\n        \"limit\": 100\n    }\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{tenantUrl}}/relativity.rest/api/staging-insights/v4/Directory/directories",
							"host": [
								"{{tenantUrl}}"
							],
							"path": [
								"relativity.rest",
								"api",
								"staging-insights",
								"v4",
								"Directory",
								"directories"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Reports",
			"item": [
				{
					"name": "Create Report",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{accessToken}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"path\": \"t007\",\n    \"depth\": \"TwoLevelsDeep\",\n    \"includeFiles\": false,\n    \"useSnapshot\": true\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{tenantUrl}}/relativity.rest/api/staging-insights/v4/Reports",
							"host": [
								"{{tenantUrl}}"
							],
							"path": [
								"relativity.rest",
								"api",
								"staging-insights",
								"v4",
								"Reports"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Reports List",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{accessToken}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{tenantUrl}}/relativity.rest/api/staging-insights/v4/Reports?start=1&limit=100",
							"host": [
								"{{tenantUrl}}"
							],
							"path": [
								"relativity.rest",
								"api",
								"staging-insights",
								"v4",
								"Reports"
							],
							"query": [
								{
									"key": "start",
									"value": "1",
									"description": "Page start index"
								},
								{
									"key": "limit",
									"value": "100",
									"description": "Page size limit"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Report Details",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{accessToken}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{tenantUrl}}/relativity.rest/api/staging-insights/v4/Reports/{{reportId}}",
							"host": [
								"{{tenantUrl}}"
							],
							"path": [
								"relativity.rest",
								"api",
								"staging-insights",
								"v4",
								"Reports",
								"{{reportId}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Download Report File",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{accessToken}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{tenantUrl}}/relativity.rest/api/staging-insights/v4/Reports/{{reportId}}/file",
							"host": [
								"{{tenantUrl}}"
							],
							"path": [
								"relativity.rest",
								"api",
								"staging-insights",
								"v4",
								"Reports",
								"{{reportId}}",
								"file"
							]
						}
					},
					"response": []
				},
				{
					"name": "Cancel Report",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{accessToken}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{tenantUrl}}/relativity.rest/api/staging-insights/v4/Reports/{{reportId}}",
							"host": [
								"{{tenantUrl}}"
							],
							"path": [
								"relativity.rest",
								"api",
								"staging-insights",
								"v4",
								"Reports",
								"{{reportId}}"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Billable Summary Reports",
			"item": [
				{
					"name": "Get Billable Summary Reports List",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{accessToken}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{tenantUrl}}/relativity.rest/api/staging-insights/v4/billable-summary-reports?start=1&limit=100",
							"host": [
								"{{tenantUrl}}"
							],
							"path": [
								"relativity.rest",
								"api",
								"staging-insights",
								"v4",
								"billable-summary-reports"
							],
							"query": [
								{
									"key": "start",
									"value": "1",
									"description": "Page start index"
								},
								{
									"key": "limit",
									"value": "100",
									"description": "Page size limit"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Billable Summary Report File",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{accessToken}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{tenantUrl}}/relativity.rest/api/staging-insights/v4/billable-summary-reports/file?Container={{container}}&Date={{date}}",
							"host": [
								"{{tenantUrl}}"
							],
							"path": [
								"relativity.rest",
								"api",
								"staging-insights",
								"v4",
								"billable-summary-reports",
								"file"
							],
							"query": [
								{
									"key": "Container",
									"value": "{{container}}",
									"description": "Container name",
									"required": true
								},
								{
									"key": "Date",
									"value": "{{date}}",
									"description": "Report date (format: YYYYMMDD)",
									"required": true
								}
							]
						}
					},
					"response": []
				}
			]
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "tenantUrl",
			"value": "",
			"type": "string"
		},
		{
			"key": "accessToken",
			"value": "",
			"type": "string"
		},
		{
			"key": "reportId",
			"value": "",
			"type": "string"
		},
		{
			"key": "container",
			"value": "",
			"type": "string"
		},
		{
			"key": "date",
			"value": "",
			"type": "string"
		}
	]
}