{
	"info": {
		"_postman_id": "267fee80-878c-4f42-82c9-47decb7c7729",
		"name": "BotCity Maestro - API Collection",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "24069354"
	},
	"item": [
		{
			"name": "Tasks",
			"item": [
				{
					"name": "Task - List",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/task?size=50&page=0&sort=dateCreation&days=7",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"task"
							],
							"query": [
								{
									"key": "size",
									"value": "50",
									"description": "Results per page"
								},
								{
									"key": "page",
									"value": "0",
									"description": "Page to Fetch"
								},
								{
									"key": "sort",
									"value": "dateCreation",
									"description": "Field to use for sorting"
								},
								{
									"key": "days",
									"value": "7",
									"description": "Relative number of days to fetch data"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Task - Create",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "// You can pass parameters as a dictionary, using the parameter label as the key.\n{\n    \"activityLabel\": \"{{automationLabel}}\",\n    \"test\": true,\n    \"parameters\": {}\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{server}}/api/v2/task",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"task"
							]
						}
					},
					"response": []
				},
				{
					"name": "Task - Finish",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"state\": \"FINISHED\",\n    \"finishStatus\": \"SUCCESS\",\n    \"finishMessage\": \"Your custom finish message here!\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{server}}/api/v2/task/{{taskId}}",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"task",
								"{{taskId}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Task - Restart",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"state\": \"START\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{server}}/api/v2/task/{{taskId}}",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"task",
								"{{taskId}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Task - Get",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/task/{{taskId}}",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"task",
								"{{taskId}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Task - Delete",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/task/{{taskId}}",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"task",
								"{{taskId}}"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Bots",
			"item": [
				{
					"name": "Bot - List",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/bot",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"bot"
							]
						}
					},
					"response": []
				},
				{
					"name": "Bot - Get",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/bot/{{botId}}/version/{{botVersion}}",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"bot",
								"{{botId}}",
								"version",
								"{{botVersion}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Bot - Delete",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/bot/{{botId}}/version/{{botVersion}}",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"bot",
								"{{botId}}",
								"version",
								"{{botVersion}}"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Automations",
			"item": [
				{
					"name": "Automation - List",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/activity",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"activity"
							]
						}
					},
					"response": []
				},
				{
					"name": "Automation - Get",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/activity/{{automationLabel}}",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"activity",
								"{{automationLabel}}"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Logs",
			"item": [
				{
					"name": "Log - Create",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "// \"activityLabel\" will be the log identifier\n{\n    \"organizationLabel\": \"{{organization}}\",\n    \"activityLabel\": \"log-demo\",\n    \"columns\": [\n        {\"name\": \"Column 1\", \"label\": \"col1\", \"width\": 100},\n        {\"name\": \"Column 2\", \"label\": \"col2\", \"width\": 200},\n        {\"name\": \"Column 3\", \"label\": \"col3\", \"width\": 150}\n    ]\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{server}}/api/v2/log",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"log"
							]
						}
					},
					"response": []
				},
				{
					"name": "Log - Create Entry",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "// For each column, you need to use the same label used when creating the log structure\n{\n    \"col1\": \"Record 'XYZ' has been processed\",\n    \"col2\": \"SUCCESS\",\n    \"col3\": \"120\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{server}}/api/v2/log/{{logLabel}}/entry",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"log",
								"{{logLabel}}",
								"entry"
							]
						}
					},
					"response": []
				},
				{
					"name": "Log - Fetch Header",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/log/{{logLabel}}",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"log",
								"{{logLabel}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Log - Fetch Entries",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/log/{{logLabel}}/entry-list?days=999",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"log",
								"{{logLabel}}",
								"entry-list"
							],
							"query": [
								{
									"key": "days",
									"value": "999",
									"description": "Relative number of days past"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Log - Export",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/log/{{logLabel}}/export?days=7&format=csv",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"log",
								"{{logLabel}}",
								"export"
							],
							"query": [
								{
									"key": "days",
									"value": "7",
									"description": "Relative number of days past"
								},
								{
									"key": "format",
									"value": "csv",
									"description": "Relative to the format of the file to be exported"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Log - Delete",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/log/{{logLabel}}",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"log",
								"{{logLabel}}"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Result Files",
			"item": [
				{
					"name": "Result File - List",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"// Getting the first artifact returned to set the \"artifactId\" variable\r",
									"var jsonData = JSON.parse(responseBody);\r",
									"postman.setEnvironmentVariable(\"artifactId\", jsonData[\"content\"][0].id);"
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/artifact?size=50&page=0&sort=dateCreation,desc&days=7",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"artifact"
							],
							"query": [
								{
									"key": "size",
									"value": "50",
									"description": "Max Registers"
								},
								{
									"key": "page",
									"value": "0",
									"description": "Current result page"
								},
								{
									"key": "sort",
									"value": "dateCreation,desc",
									"description": "Sorting"
								},
								{
									"key": "days",
									"value": "7",
									"description": "Relative number of days past"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Result File - Get Register",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/artifact/{{artifactId}}",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"artifact",
								"{{artifactId}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Result File - Get File",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/artifact/{{artifactId}}/file",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"artifact",
								"{{artifactId}}",
								"file"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Alerts",
			"item": [
				{
					"name": "Alert - List",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/alerts?size=50&page=0&sort=dateCreation,desc&days=30",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"alerts"
							],
							"query": [
								{
									"key": "size",
									"value": "50",
									"description": "Max Registers"
								},
								{
									"key": "page",
									"value": "0",
									"description": "Current result page"
								},
								{
									"key": "sort",
									"value": "dateCreation,desc",
									"description": "Sorting"
								},
								{
									"key": "days",
									"value": "30",
									"description": "Relative number of days past"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Alert - Get Warnings",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/alerts?type=WARN&size=50&page=0&sort=dateCreation,desc&days=60",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"alerts"
							],
							"query": [
								{
									"key": "type",
									"value": "WARN",
									"description": "Alert type"
								},
								{
									"key": "size",
									"value": "50",
									"description": "Max Registers"
								},
								{
									"key": "page",
									"value": "0",
									"description": "Current result page"
								},
								{
									"key": "sort",
									"value": "dateCreation,desc",
									"description": "Sorting"
								},
								{
									"key": "days",
									"value": "60",
									"description": "Relative number of days past"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Runners",
			"item": [
				{
					"name": "Runner - Get Info",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/machine/{{runnerId}}",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"machine",
								"{{runnerId}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Runner - Get Log",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/machine/log/{{runnerId}}",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"machine",
								"log",
								"{{runnerId}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Runner - Get Tasks Summary",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/machine/{{runnerId}}/tasks-summary?days=30",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"machine",
								"{{runnerId}}",
								"tasks-summary"
							],
							"query": [
								{
									"key": "days",
									"value": "30",
									"description": "Relative number of days past"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Schedules",
			"item": [
				{
					"name": "Schedule - List",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/scheduling",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"scheduling"
							]
						}
					},
					"response": []
				},
				{
					"name": "Schedule - Create",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"activityLabel\": \"{{automationLabel}}\",\r\n  \"organizationLabel\": \"{{organization}}\",\r\n  \"repositoryLabel\": \"DEFAULT\",\r\n  \"active\": true,\r\n  \"priority\": 0,\r\n  \"cron\": \"0 0 */1 * * *\",\r\n  \"schedulingStrategy\": \"Every hour\",\r\n  \"parameters\": {}\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{server}}/api/v2/scheduling",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"scheduling"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Credentials",
			"item": [
				{
					"name": "Credential - List",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/credential",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"credential"
							]
						}
					},
					"response": []
				},
				{
					"name": "Credential - Get Vault",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/credential/{{credentialVault}}",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"credential",
								"{{credentialVault}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Credential - Get Key",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/credential/{{credentialVault}}/key/{{credentialKey}}",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"credential",
								"{{credentialVault}}",
								"key",
								"{{credentialKey}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Credential - Create",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"label\": \"MyCredential\",\r\n    \"organizationLabel\": \"{{organization}}\",\r\n    \"secrets\": [\r\n        {\r\n            \"key\": \"user\",\r\n            \"value\": \"user123\"\r\n        },\r\n        {\r\n            \"key\": \"password\",\r\n            \"value\": \"pass123\"\r\n        }\r\n    ],\r\n    \"repositoryLabel\": \"DEFAULT\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{server}}/api/v2/credential",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"credential"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Errors",
			"item": [
				{
					"name": "Error - List",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"// Getting the first error returned to set the \"errorId\" variable\r",
									"var jsonData = JSON.parse(responseBody);\r",
									"postman.setEnvironmentVariable(\"errorId\", jsonData[\"content\"][0].id);"
								],
								"type": "text/javascript"
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/error",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"error"
							]
						}
					},
					"response": []
				},
				{
					"name": "Error - Get",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/error/{{errorId}}",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"error",
								"{{errorId}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Error - Get Automation Errors",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/error?automationLabel={{automationLabel}}&days=30",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"error"
							],
							"query": [
								{
									"key": "automationLabel",
									"value": "{{automationLabel}}",
									"description": "Return errors from this automation only"
								},
								{
									"key": "days",
									"value": "30",
									"description": "Relative number of days past"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Datapool",
			"item": [
				{
					"name": "Datapool - List",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/datapool",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"datapool"
							]
						}
					},
					"response": []
				},
				{
					"name": "Datapool - Get",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/datapool/{{datapoolLabel}}",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"datapool",
								"{{datapoolLabel}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Datapool - View",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/datapool/{{datapoolLabel}}/view",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"datapool",
								"{{datapoolLabel}}",
								"view"
							]
						}
					},
					"response": []
				},
				{
					"name": "Datapool - Summary",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{server}}/api/v2/datapool/{{datapoolLabel}}/summary",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"datapool",
								"{{datapoolLabel}}",
								"summary"
							]
						}
					},
					"response": []
				},
				{
					"name": "Datapool - Create",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"label\" : \"demo-datapool\",\n    \"consumptionPolicy\": \"FIFO\",\n    \"autoRetry\": true,\n    \"maxAutoRetry\": 3,\n    \"itemMaxProcessingTime\": 10,\n    \"trigger\": \"NEVER\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{server}}/api/v2/datapool",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"datapool"
							]
						}
					},
					"response": []
				},
				{
					"name": "Datapool - Add Item",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "token",
								"value": "{{token}}",
								"description": "Login Token",
								"type": "text"
							},
							{
								"key": "organization",
								"value": "{{organization}}",
								"description": "Login Organization",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "// The item values can be passed as a dictionary, each key will represent the label used to create the schema\n{\n    \"priority\": 0,\n    \"values\": {\n        \"product_name\": \"Smartphone\", \n        \"product_category\": \"Electronic\", \n        \"product_value\": \"2000\"\n    }\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{server}}/api/v2/datapool/{{datapoolLabel}}/push",
							"host": [
								"{{server}}"
							],
							"path": [
								"api",
								"v2",
								"datapool",
								"{{datapoolLabel}}",
								"push"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Login - Workspace",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"var jsonData = JSON.parse(responseBody);",
							"postman.setEnvironmentVariable(\"token\", jsonData.accessToken);",
							"postman.setEnvironmentVariable(\"organization\", jsonData.organizationLabel);"
						],
						"type": "text/javascript"
					}
				}
			],
			"protocolProfileBehavior": {
				"followOriginalHttpMethod": false
			},
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"login\": \"{{login}}\",\n    \"key\": \"{{key}}\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{server}}/api/v2/workspace/login",
					"host": [
						"{{server}}"
					],
					"path": [
						"api",
						"v2",
						"workspace",
						"login"
					]
				}
			},
			"response": []
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	]
}