{
	"info": {
		"_postman_id": "2b82ceac-0a28-4239-9b87-0ba206bc9b02",
		"name": "Egnyte API Examples",
		"description": "<img src=\"http://www.egnyte.com/assets/2015/images/logo.png\"></img>\n\n## Requests in this collection are live examples of using Egnyte API so they don't use all the possible features of methods. For best experience work with [developers.egnyte.com](https://developers.egnyte.com/docs/read/Home)\n\n----\n# Get collection\nTo start working with this collection you have few options:\n* \"Run in Postman\" button on top of this site\n* [Download collection](https://egnyte.egnyte.com/dl/JR2P8Ly1jj) and [Download environment](https://egnyte.egnyte.com/dl/PWTOhbLIVz)\n\n----\n# Setting up environment\n* To use <b>default set up</b> in your environment simply <b>choose 'Set Envrionment' request</b> and <b>click 'Send'.</b>\n* For <b>custom credentials</b>, you can change it in <b>'Pre-request Script' tab of 'Set Environment' request.</b>\n\n## IMPORTANT! \nAlmost every request uses environment variables so you must have <b>any environemt active!</b>\n\n----\n# Working with this collection\n* When you will be sending requests be aware of variables and to keep everything clean <b>use 'Reset Environment' request.</b> It will bring your <b>environment to beginning.</b>\n* <b>Basic Flow Folders</b> is prepared for <b>sending requests step by step</b> and includes resetting environment as a '0' step.\n\n----\n# Authentication\n\n## In Postman you can quickly go through authentication process. Just follow these steps:\n* Set your credentials in <b>'Set Environment' request</b> in <b>'Pre-request Script' tab</b> and send it\n* Click <b>\"Authorization\" tab</b>\n* Choose <b>\"OAuth 2.0\"</b> from the list\n* <b>Choose 'No Environment' on top of this site</b> and then <b>copy the following</b> to form in Postman\n\nName | Value |\n--- | ---|\nToken Name | {Choose name for your token} |\nAuth URL | https://{{domain_name}}/puboauth/token?client_id={{client_id}}&amp;redirect_uri=https://www.getpostman.com/oauth2/callback&amp;response_type=code |\nAccess Token URL | https://{{domain_name}}/puboauth/token |\nClient ID | {{client_id}} |\nClient Secret | {{client_secret}} |\nScope | Egnyte.filesystem Egnyte.user Egnyte.group Egnyte.link Egnyte.permission Egnyte.bookmark Egnyte.launchwebsession |\nGrant Type | Authorization |\n    \n* After getting <b>authorization token, copy it to variable called 'authorization'.</b> It will be used for sending requests.\n\n<b>More details: [developers.egnyte.com](https://developers.egnyte.com/docs/read/Public_API_Authentication)</b>",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "25789493",
		"_collection_link": "https://pintteam.postman.co/workspace/My-Workspace~895b8aa8-dd11-4cbb-8c2c-e410d72dce4e/collection/2102029-2b82ceac-0a28-4239-9b87-0ba206bc9b02?action=share&source=collection_link&creator=25789493"
	},
	"item": [
		{
			"name": "Bookmarks API",
			"item": [
				{
					"name": "(RUN THIS FIRST) Create Folder",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Create folder\"] = responseCode.code === 201;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 403){",
									"        tests[\"Folder exists\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"add_folder\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{folder_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{folder_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "(RUN THIS FIRST) List Folder 1 (PATH)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"List folder 1\"] = responseCode.code === 200;",
									"    ",
									"    if (tests[\"List folder 1\"]){",
									"        assignIds();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Folder not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function assignIds(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"folder_1_id\", jsonData.folder_id);",
									"    tests[\"Folder 1 ID copied to variable\"] = 1;",
									"        ",
									"    if(!responseBody.has('\"files\":')){",
									"        tests[\"Folder empty\"] = 1;",
									"    }",
									"    else{",
									"        postman.setEnvironmentVariable(\"file_copied_id\", jsonData.files[0].group_id);",
									"        postman.setEnvironmentVariable(\"file_copied_latest_version_id\", jsonData.files[0].entry_id);",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{folder_1_path}}?list_content=true&allowed_link_types=false&count=10&offset=0&sort_by=last_modified&key&sort_direction=descending&perms&include_perm&list_custom_metadata",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{folder_1_path}}"
							],
							"query": [
								{
									"key": "list_content",
									"value": "true"
								},
								{
									"key": "allowed_link_types",
									"value": "false"
								},
								{
									"key": "count",
									"value": "10"
								},
								{
									"key": "offset",
									"value": "0"
								},
								{
									"key": "sort_by",
									"value": "last_modified"
								},
								{
									"key": "key",
									"value": ""
								},
								{
									"key": "sort_direction",
									"value": "descending"
								},
								{
									"key": "perms",
									"value": ""
								},
								{
									"key": "include_perm",
									"value": ""
								},
								{
									"key": "list_custom_metadata",
									"value": ""
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Create Bookmark",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Create bookmark\"] = responseCode.code === 201;",
									"    ",
									"    if (tests[\"Create bookmark\"]){",
									"        getId();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Bookmark already exist\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function getId(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"bookmark_id\", jsonData.id);",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"folder_id\": \"{{folder_1_id}}\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/bookmarks",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"bookmarks"
							]
						}
					},
					"response": []
				},
				{
					"name": "List Bookmarks",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"List bookmarks\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/bookmarks?offset=0&count=5",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"bookmarks"
							],
							"query": [
								{
									"key": "offset",
									"value": "0"
								},
								{
									"key": "count",
									"value": "5"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Bookmark",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Get bookmark\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/bookmarks/{{bookmark_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"bookmarks",
								"{{bookmark_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Bookmark",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Delete bookmark\"] = responseCode.code === 204;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/bookmarks/{{bookmark_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"bookmarks",
								"{{bookmark_id}}"
							]
						}
					},
					"response": []
				}
			],
			"description": "The Bookmarks API allows you to create a bookmark on a folder, list all bookmarks, list the details for a specific bookmark, and delete a bookmark. Bookmarks are used to mark folders so you can quickly locate them in the Web UI.\n\n<b>More details: [developers.egnyte.com](https://developers.egnyte.com/docs/read/Bookmarks_API)</b>"
		},
		{
			"name": "Comments API",
			"item": [
				{
					"name": "(RUN THIS FIRST) Upload File",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Upload file\"] = responseCode.code === 200;",
									"    ",
									"    if(tests[\"Upload file\"]){",
									"        assignId();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function assignId(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"file_uploaded_id\", jsonData.group_id);",
									"        ",
									"    tests['File ID copied to variable \"file_uploaded_id\"'] = 1;",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Disposition",
								"value": "form-data; name=\"file\"; filename=\"~/Desktop/test.txt"
							},
							{
								"key": "Content-Type",
								"value": "text/plain"
							},
							{
								"key": "X-Sha512-Checksum",
								"value": ""
							},
							{
								"key": "Last-Modified",
								"value": ""
							}
						],
						"body": {
							"mode": "raw",
							"raw": "testing file system api"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs-content/{{file_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs-content",
								"{{file_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Add Comment",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Add comment\"] = responseCode.code === 201;",
									"    ",
									"    if (tests[\"Add comment\"]){",
									"        getId();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 403){",
									"        tests[\"Forbidden\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function getId(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"comment_id\", jsonData.id);",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"path\": \"/{{file_1_path}}\",\n  \"body\": \"Test comment\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/notes",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"notes"
							]
						}
					},
					"response": []
				},
				{
					"name": "List Comments",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"List comments\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 403){",
									"        tests[\"Forbidden\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/notes?file=/{{file_1_path}}&start_time=2012-05-27&count=",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"notes"
							],
							"query": [
								{
									"key": "file",
									"value": "/{{file_1_path}}"
								},
								{
									"key": "start_time",
									"value": "2012-05-27"
								},
								{
									"key": "count",
									"value": ""
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Show Comment",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Show comment\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 403){",
									"        tests[\"Forbidden\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/notes/{{comment_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"notes",
								"{{comment_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Comment",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Delete comment\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 403){",
									"        tests[\"Forbidden\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Not Found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal Server Error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/notes/{{comment_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"notes",
								"{{comment_id}}"
							]
						}
					},
					"response": []
				}
			],
			"description": "The Comments API allows you to create a comment, list all comments for a file, and list the details for a specific comment. Comments can also be referred to as notes. \n\n<b>More details: [developers.egnyte.com](https://developers.egnyte.com/docs/read/Comments_API)</b>"
		},
		{
			"name": "Events API",
			"item": [
				{
					"name": "(RUN THIS FIRST) Create Folder",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Create folder\"] = responseCode.code === 201;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 403){",
									"        tests[\"Folder exists\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"add_folder\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{folder_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{folder_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Cursor",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Get cursor\"] = responseCode.code === 200;",
									"    ",
									"    if (tests[\"Get cursor\"]){",
									"        getCursor();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function getCursor(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"latest_event_id\", jsonData.latest_event_id);",
									"    postman.setEnvironmentVariable(\"oldest_event_id\", jsonData.oldest_event_id);",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/events/cursor",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"events",
								"cursor"
							]
						}
					},
					"response": []
				},
				{
					"name": "Listing Subsequent Events",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"type": "text/javascript",
								"exec": [
									"var last = postman.getEnvironmentVariable('latest_event_id');",
									"",
									"postman.setEnvironmentVariable(\"event_id\", last-1);"
								]
							}
						},
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    if (responseCode.code === 200){",
									"        tests[\"Get cursor\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 204){",
									"        tests[\"No events to return\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/events?id={{event_id}}&type=file_system|note&count=100",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"events"
							],
							"query": [
								{
									"key": "id",
									"value": "{{event_id}}"
								},
								{
									"key": "type",
									"value": "file_system|note"
								},
								{
									"key": "count",
									"value": "100"
								}
							]
						}
					},
					"response": []
				}
			],
			"description": "The Events API lets your application learn about activity in Egnyte. This means you can find out what has happened since a given moment in time, letting your application respond or react to activity.\n\n<b>More details: [developers.egnyte.com](https://developers.egnyte.com/docs/read/Events_API)</b>"
		},
		{
			"name": "Events API - Basic Flow",
			"item": [
				{
					"name": "0. Reset Environment",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"type": "text/javascript",
								"exec": [
									"client_id = postman.getEnvironmentVariable(\"client_id\", \"m8mebwztxvv42nr5wkzuvy4w\");",
									"client_secret = postman.getEnvironmentVariable(\"client_secret\", \"3sqk569pHW8MC5jVW4f4tBU65EMtX4nwM4mDYMgXHxVerMCRXQ\");",
									"authorization = postman.getEnvironmentVariable(\"authorization\", \"Bearer wcb2hvmwfd96rgcchjphkpn6\");",
									"domain = postman.getEnvironmentVariable(\"domain_name\", \"apidemo.egnyte.com\");",
									"",
									"postman.clearEnvironmentVariables();",
									"",
									"postman.setEnvironmentVariable(\"client_id\", client_id);",
									"postman.setEnvironmentVariable(\"client_secret\", client_secret);",
									"postman.setEnvironmentVariable(\"authorization\", authorization);",
									"postman.setEnvironmentVariable(\"domain_name\", domain);"
								]
							}
						},
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Got strings\"] = responseCode.code === 200;",
									"    ",
									"    if(tests[\"Got strings\"]){",
									"        var fileNumber = 1;",
									"        var folderString = \"\";",
									"        var fileString = \"\";",
									"        var string = \"\";",
									"        ",
									"        for(i = 0; i < 4; i++){",
									"            for(j = (9 * i); j < (9 * i) + 8; j++){",
									"                string += responseBody[j];",
									"            }",
									"            ",
									"            if(i % 2 === 0){",
									"                folderString = \"Shared/\" + string;",
									"                postman.setEnvironmentVariable(\"folder_\" + fileNumber + \"_path\", folderString);",
									"            }",
									"            else{",
									"                fileString = folderString + \"/\" + string + \".txt\";",
									"                postman.setEnvironmentVariable(\"file_\" + fileNumber + \"_path\",  fileString);",
									"                ",
									"                fileNumber++;",
									"            }",
									"            ",
									"            string = \"\";",
									"        }",
									"        ",
									"        for(j = (9 * 4); j < (9 * 4) + 8; j++){",
									"            string += responseBody[j];",
									"        }",
									"        ",
									"        postman.setEnvironmentVariable(\"user_name\",  string);",
									"        string = \"\";",
									"        ",
									"        for(j = (9 * 5); j < (9 * 5) + 8; j++){",
									"            string += responseBody[j];",
									"        }",
									"        ",
									"        postman.setEnvironmentVariable(\"namespace_name\",  string);",
									"    }",
									"    ",
									"    ",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://www.random.org/strings/?num=6&len=8&digits=on&upperalpha=on&loweralpha=on&unique=on&format=plain&rnd=new",
							"protocol": "https",
							"host": [
								"www",
								"random",
								"org"
							],
							"path": [
								"strings",
								""
							],
							"query": [
								{
									"key": "num",
									"value": "6"
								},
								{
									"key": "len",
									"value": "8"
								},
								{
									"key": "digits",
									"value": "on"
								},
								{
									"key": "upperalpha",
									"value": "on"
								},
								{
									"key": "loweralpha",
									"value": "on"
								},
								{
									"key": "unique",
									"value": "on"
								},
								{
									"key": "format",
									"value": "plain"
								},
								{
									"key": "rnd",
									"value": "new"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "1. Upload File",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Upload file\"] = responseCode.code === 200;",
									"    ",
									"    if(tests[\"Upload file\"]){",
									"        assignId();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function assignId(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"file_uploaded_id\", jsonData.group_id);",
									"        ",
									"    tests['File ID copied to variable \"file_uploaded_id\"'] = 1;",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Disposition",
								"value": "form-data; name=\"file\"; filename=\"~/Desktop/test.txt"
							},
							{
								"key": "Content-Type",
								"value": "text/plain"
							},
							{
								"key": "X-Sha512-Checksum",
								"value": ""
							},
							{
								"key": "Last-Modified",
								"value": ""
							}
						],
						"body": {
							"mode": "raw",
							"raw": "testing file system api"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs-content/{{file_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs-content",
								"{{file_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "2. Move File (ID)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Move file\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"move\",\n  \"destination\": \"/{{file_2_path}}\",\n  \"permissions\": \"keep_original\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/file/{{file_uploaded_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"file",
								"{{file_uploaded_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "3. Copy File (ID)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Copy file\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 413){",
									"        tests[\"File size exceeds limit\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"copy\",\n  \"destination\": \"/{{file_1_path}}\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/file/{{file_uploaded_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"file",
								"{{file_uploaded_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "4. Get Cursor",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Get cursor\"] = responseCode.code === 200;",
									"    ",
									"    if (tests[\"Get cursor\"]){",
									"        getCursor();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function getCursor(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"latest_event_id\", jsonData.latest_event_id);",
									"    postman.setEnvironmentVariable(\"oldest_event_id\", jsonData.oldest_event_id);",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/events/cursor",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"events",
								"cursor"
							]
						}
					},
					"response": []
				},
				{
					"name": "5. Listing Subsequent Events",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"type": "text/javascript",
								"exec": [
									"var last = postman.getEnvironmentVariable('latest_event_id');",
									"",
									"postman.setEnvironmentVariable(\"event_id\", last-4);"
								]
							}
						},
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    if (responseCode.code === 200){",
									"        tests[\"Get cursor\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 204){",
									"        tests[\"No events to return\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/events?id={{event_id}}&folder=/{{folder_1_path}}&type=file_system|note&count=100",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"events"
							],
							"query": [
								{
									"key": "id",
									"value": "{{event_id}}"
								},
								{
									"key": "folder",
									"value": "/{{folder_1_path}}"
								},
								{
									"key": "type",
									"value": "file_system|note"
								},
								{
									"key": "count",
									"value": "100"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "FileSystem API",
			"item": [
				{
					"name": "Create Folder",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Create folder\"] = responseCode.code === 201;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 403){",
									"        tests[\"Folder exists\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"add_folder\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{folder_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{folder_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Upload File",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Upload file\"] = responseCode.code === 200;",
									"    ",
									"    if(tests[\"Upload file\"]){",
									"        assignId();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function assignId(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"file_uploaded_id\", jsonData.group_id);",
									"    postman.setEnvironmentVariable(\"file_uploaded_version_id\", jsonData.entry_id);",
									"        ",
									"    tests['File ID copied to variable \"file_uploaded_id\"'] = 1;",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Disposition",
								"value": "form-data; name=\"file\"; filename=\"~/Desktop/test.txt"
							},
							{
								"key": "Content-Type",
								"value": "text/plain"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "testing file system api"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs-content/{{file_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs-content",
								"{{file_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Upload File (UPDATE ONLY BY PATH)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Upload file\"] = responseCode.code === 200;",
									"    ",
									"    if(tests[\"Upload file\"]){",
									"        assignId();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function assignId(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"file_uploaded_id\", jsonData.group_id);",
									"        ",
									"    tests['File ID copied to variable \"file_uploaded_id\"'] = 1;",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Disposition",
								"value": "form-data; name=\"file\";"
							},
							{
								"key": "Content-Type",
								"value": "text/plain"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "testing file system api - update"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs-content/{{file_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs-content",
								"{{file_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Upload File (ERROR)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Upload file\"] = responseCode.code === 200;",
									"    ",
									"    if(tests[\"Upload file\"]){",
									"        assignId();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function assignId(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"file_uploaded_id\", jsonData.group_id);",
									"        ",
									"    tests['File ID copied to variable \"file_uploaded_id\"'] = 1;",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Disposition",
								"value": "form-data; name=\"file\"; filename=\"~/Desktop/test.txt"
							},
							{
								"key": "Content-Type",
								"value": "text/plain"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "testing file system api"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs-content/Shared",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs-content",
								"Shared"
							]
						}
					},
					"response": []
				},
				{
					"name": "Modify Folder Options",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Modify folder\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "PATCH",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"folder_description\": \"Test folder\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{folder_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{folder_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Move File (PATH)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Move file\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"move\",\n  \"destination\": \"/{{file_2_path}}\",\n  \"permissions\": \"keep_original\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{file_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{file_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Move File (ID)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Move file\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"move\",\n  \"destination\": \"/{{file_2_path}}\",\n  \"permissions\": \"keep_original\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/file/{{file_uploaded_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"file",
								"{{file_uploaded_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Copy File (PATH)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Copy file\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 413){",
									"        tests[\"File size exceeds limit\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"copy\",\n  \"destination\": \"/{{file_1_path}}\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{file_2_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{file_2_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Copy File (ID)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Copy file\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 413){",
									"        tests[\"File size exceeds limit\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"copy\",\n  \"destination\": \"/{{file_1_path}}\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/file/{{file_uploaded_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"file",
								"{{file_uploaded_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "List Folder 1 (PATH)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"List folder 1\"] = responseCode.code === 200;",
									"    ",
									"    if (tests[\"List folder 1\"]){",
									"        assignIds();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Folder not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function assignIds(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"folder_1_id\", jsonData.folder_id);",
									"    tests[\"Folder 1 ID copied to variable\"] = 1;",
									"        ",
									"    if(!responseBody.has('\"files\":')){",
									"        tests[\"Folder empty\"] = 1;",
									"    }",
									"    else{",
									"        postman.setEnvironmentVariable(\"file_copied_id\", jsonData.files[0].group_id);",
									"        postman.setEnvironmentVariable(\"file_copied_latest_version_id\", jsonData.files[0].entry_id);",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{folder_1_path}}?list_content=true&allowed_link_types=false&count=10&offset=0&sort_by=last_modified&sort_direction=descending",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{folder_1_path}}"
							],
							"query": [
								{
									"key": "list_content",
									"value": "true"
								},
								{
									"key": "allowed_link_types",
									"value": "false"
								},
								{
									"key": "count",
									"value": "10"
								},
								{
									"key": "offset",
									"value": "0"
								},
								{
									"key": "sort_by",
									"value": "last_modified"
								},
								{
									"key": "sort_direction",
									"value": "descending"
								}
							]
						}
					},
					"response": [
						{
							"name": "Folder not found",
							"originalRequest": {
								"method": "GET",
								"header": [
									{
										"key": "Authorization",
										"value": "{{authorization}}"
									}
								],
								"url": {
									"raw": "https://{{domain_name}}/pubapi/v1/fs/{{folder_1_path}}?list_content=true&allowed_link_types=false&count=10&offset=0&sort_by=last_modified&key&sort_direction=descending&perms&include_perm&list_custom_metadata",
									"protocol": "https",
									"host": [
										"{{domain_name}}"
									],
									"path": [
										"pubapi",
										"v1",
										"fs",
										"{{folder_1_path}}"
									],
									"query": [
										{
											"key": "list_content",
											"value": "true"
										},
										{
											"key": "allowed_link_types",
											"value": "false"
										},
										{
											"key": "count",
											"value": "10"
										},
										{
											"key": "offset",
											"value": "0"
										},
										{
											"key": "sort_by",
											"value": "last_modified"
										},
										{
											"key": "key",
											"value": null
										},
										{
											"key": "sort_direction",
											"value": "descending"
										},
										{
											"key": "perms",
											"value": null
										},
										{
											"key": "include_perm",
											"value": null
										},
										{
											"key": "list_custom_metadata",
											"value": null
										}
									]
								}
							},
							"status": "Not Found",
							"code": 404,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Cache-Control",
									"value": "no-cache, no-store, max-age=0, must-revalidate",
									"name": "Cache-Control",
									"description": ""
								},
								{
									"key": "Connection",
									"value": "close",
									"name": "Connection",
									"description": ""
								},
								{
									"key": "Content-Type",
									"value": "application/json;charset=UTF-8",
									"name": "Content-Type",
									"description": ""
								},
								{
									"key": "Date",
									"value": "Wed, 17 May 2017 17:58:37 GMT",
									"name": "Date",
									"description": ""
								},
								{
									"key": "Egnyte-Node",
									"value": "tomcat.UI.sjc-vm1697_6280",
									"name": "Egnyte-Node",
									"description": ""
								},
								{
									"key": "Egnyte-Pod",
									"value": "103",
									"name": "Egnyte-Pod",
									"description": ""
								},
								{
									"key": "Expires",
									"value": "-1",
									"name": "Expires",
									"description": ""
								},
								{
									"key": "P3P",
									"value": "CP=\"NOI DSP COR NID CUR TAIa OUR NOR\" policyref=\"/w3c/p3p.xml\"",
									"name": "P3P",
									"description": ""
								},
								{
									"key": "Pragma",
									"value": "no-cache",
									"name": "Pragma",
									"description": ""
								},
								{
									"key": "Server",
									"value": "Mashery Proxy",
									"name": "Server",
									"description": ""
								},
								{
									"key": "Set-Cookie",
									"value": "recentWg=apidemo;Version=1;Comment=;Domain=egnyte.com;Path=/; Secure",
									"name": "Set-Cookie",
									"description": ""
								},
								{
									"key": "Set-Cookie",
									"value": "recentWg=apidemo;Version=1;Comment=;Domain=egnyte.com;Path=/; Secure",
									"name": "Set-Cookie",
									"description": ""
								},
								{
									"key": "Strict-Transport-Security",
									"value": "max-age=31536000",
									"name": "Strict-Transport-Security",
									"description": ""
								},
								{
									"key": "X-Content-Type-Options",
									"value": "nosniff",
									"name": "X-Content-Type-Options",
									"description": ""
								},
								{
									"key": "X-Egnyte-Request-Id",
									"value": "6DAD9603:96DA_0A19800C:01BB_--_467BF5|sjc-www04.dc.egnyte.lan+https_l1_webui",
									"name": "X-Egnyte-Request-Id",
									"description": ""
								},
								{
									"key": "X-Egnyte-Update",
									"value": "b5a4854c3c92d5f5140321d01d8bc2d1d4a6c32a",
									"name": "X-Egnyte-Update",
									"description": ""
								},
								{
									"key": "X-Mashery-Responder",
									"value": "sjc-mashery-master-01",
									"name": "X-Mashery-Responder",
									"description": ""
								},
								{
									"key": "X-Robots-Tag",
									"value": "none",
									"name": "X-Robots-Tag",
									"description": ""
								},
								{
									"key": "X-XSS-Protection",
									"value": "1; mode=block",
									"name": "X-XSS-Protection",
									"description": ""
								}
							],
							"cookie": [
								{
									"expires": "Invalid Date",
									"httpOnly": false,
									"domain": "egnyte.com",
									"path": "/",
									"secure": false,
									"value": "1",
									"key": "EGNYTE-MARKETING-SESSION-COOKIE"
								},
								{
									"expires": "Invalid Date",
									"httpOnly": false,
									"domain": "egnyte.com",
									"path": "/",
									"secure": true,
									"value": "apidemo",
									"key": "recentWg"
								},
								{
									"expires": "Invalid Date",
									"httpOnly": false,
									"domain": "egnyte.com",
									"path": "/",
									"secure": true,
									"value": "apidemo",
									"key": "X-Egnyte-Subdomain"
								}
							],
							"body": "{\"errorMessage\":\"Not found\"}"
						}
					]
				},
				{
					"name": "List Folder 1 (ID)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"List folder 1\"] = responseCode.code === 200;",
									"    ",
									"    if (tests[\"List folder 1\"]){",
									"        assignIds();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Folder not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function assignIds(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"folder_1_id\", jsonData.folder_id);",
									"    tests[\"Folder 1 ID copied to variable\"] = 1;",
									"        ",
									"    if(!responseBody.has('\"files\":')){",
									"        tests[\"Folder empty\"] = 1;",
									"    }",
									"    else{",
									"        postman.setEnvironmentVariable(\"file_copied_id\", jsonData.files[0].group_id);",
									"        postman.setEnvironmentVariable(\"file_copied_latest_version_id\", jsonData.files[0].entry_id);",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/folder/{{folder_1_id}}?list_content=true&allowed_link_types=false&count=0&offset=0&sort_by=last_modified&sort_direction=descending",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"folder",
								"{{folder_1_id}}"
							],
							"query": [
								{
									"key": "list_content",
									"value": "true"
								},
								{
									"key": "allowed_link_types",
									"value": "false"
								},
								{
									"key": "count",
									"value": "0"
								},
								{
									"key": "offset",
									"value": "0"
								},
								{
									"key": "sort_by",
									"value": "last_modified"
								},
								{
									"key": "sort_direction",
									"value": "descending"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "List Folder 2 (PATH)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"List folder 2\"] = responseCode.code === 200;",
									"    ",
									"    if(tests[\"List folder 2\"]){",
									"        assignIds();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Folder not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function assignIds(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"folder_2_id\", jsonData.folder_id);",
									"    tests[\"Folder 2 ID copied to variable\"] = 1;",
									"        ",
									"    if(!responseBody.has('\"files\":')){",
									"        tests[\"Folder empty\"] = 1;",
									"    }",
									"    else{",
									"        postman.setEnvironmentVariable(\"file_uploaded_id\", jsonData.files[0].group_id);",
									"        postman.setEnvironmentVariable(\"file_uploaded_latest_version_id\", jsonData.files[0].entry_id);",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{folder_2_path}}?list_content=true&allowed_link_types=false&count=10&offset=0&sort_by=last_modified&sort_direction=descending",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{folder_2_path}}"
							],
							"query": [
								{
									"key": "list_content",
									"value": "true"
								},
								{
									"key": "allowed_link_types",
									"value": "false"
								},
								{
									"key": "count",
									"value": "10"
								},
								{
									"key": "offset",
									"value": "0"
								},
								{
									"key": "sort_by",
									"value": "last_modified"
								},
								{
									"key": "sort_direction",
									"value": "descending"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "List Folder 2 (ID)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"List folder 2\"] = responseCode.code === 200;",
									"    ",
									"    if(tests[\"List folder 2\"]){",
									"        assignIds();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Folder not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function assignIds(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"folder_2_id\", jsonData.folder_id);",
									"    tests[\"Folder 2 ID copied to variable\"] = 1;",
									"        ",
									"    if(!responseBody.has('\"files\":')){",
									"        tests[\"Folder empty\"] = 1;",
									"    }",
									"    else{",
									"        postman.setEnvironmentVariable(\"file_uploaded_id\", jsonData.files[0].group_id);",
									"        postman.setEnvironmentVariable(\"file_uploaded_latest_version_id\", jsonData.files[0].entry_id);",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/folder/{{folder_2_id}}?list_content=true&allowed_link_types=false&count=0&offset=0&sort_by=last_modified&sort_direction=descending",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"folder",
								"{{folder_2_id}}"
							],
							"query": [
								{
									"key": "list_content",
									"value": "true"
								},
								{
									"key": "allowed_link_types",
									"value": "false"
								},
								{
									"key": "count",
									"value": "0"
								},
								{
									"key": "offset",
									"value": "0"
								},
								{
									"key": "sort_by",
									"value": "last_modified"
								},
								{
									"key": "sort_direction",
									"value": "descending"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "List File (PATH)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"List file\"] = responseCode.code === 200;",
									"    ",
									"    if(tests[\"List file\"]){",
									"        assignIds();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Folder not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function assignIds(){",
									"    var jsonData = JSON.parse(responseBody);",
									"        ",
									"    postman.setEnvironmentVariable(\"file_copied_id\", jsonData.group_id);",
									"    postman.setEnvironmentVariable(\"file_copied_latest_version_id\", jsonData.entry_id);",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{file_1_path}}?list_content=true&allowed_link_types=false&count=0&offset=0&sort_by=last_modified&sort_direction=descending",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{file_1_path}}"
							],
							"query": [
								{
									"key": "list_content",
									"value": "true"
								},
								{
									"key": "allowed_link_types",
									"value": "false"
								},
								{
									"key": "count",
									"value": "0"
								},
								{
									"key": "offset",
									"value": "0"
								},
								{
									"key": "sort_by",
									"value": "last_modified"
								},
								{
									"key": "sort_direction",
									"value": "descending"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "List File (ID)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"List file\"] = responseCode.code === 200;",
									"    ",
									"    if(tests[\"List file\"]){",
									"        assignIds();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Folder not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function assignIds(){",
									"    var jsonData = JSON.parse(responseBody);",
									"        ",
									"    postman.setEnvironmentVariable(\"file_copied_id\", jsonData.group_id);",
									"    postman.setEnvironmentVariable(\"file_copied_latest_version_id\", jsonData.entry_id);",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/file/{{file_copied_id}}?list_content=true&allowed_link_types=false&count=0&offset=0&sort_by=last_modified&sort_direction=descending",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"file",
								"{{file_copied_id}}"
							],
							"query": [
								{
									"key": "list_content",
									"value": "true"
								},
								{
									"key": "allowed_link_types",
									"value": "false"
								},
								{
									"key": "count",
									"value": "0"
								},
								{
									"key": "offset",
									"value": "0"
								},
								{
									"key": "sort_by",
									"value": "last_modified"
								},
								{
									"key": "sort_direction",
									"value": "descending"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Download File (PATH)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Download file\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Range",
								"value": ""
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs-content/{{file_2_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs-content",
								"{{file_2_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Download File (ID)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Download file\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Range",
								"value": ""
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs-content/ids/file/{{file_uploaded_id}}?entry_id={{file_uploaded_version_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs-content",
								"ids",
								"file",
								"{{file_uploaded_id}}"
							],
							"query": [
								{
									"key": "entry_id",
									"value": "{{file_uploaded_version_id}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Lock File (PATH)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Lock file\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 423){",
									"        tests[\"File locked with another token\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"lock\",\n  \"lock_token\": \"my lock token\",\n  \"lock_timeout\": 2592000\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{file_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{file_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Unlock File (PATH)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Unlock file\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found / Bad token / File is not locked\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"unlock\",\n  \"lock_token\": \"my lock token\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{file_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{file_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Lock File (ID)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Lock file\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 423){",
									"        tests[\"File locked with another token\"] = 1;",
									"    }",
									"",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"lock\",\n  \"lock_token\": \"my lock token\",\n  \"lock_timeout\": 2592000\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/file/{{file_copied_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"file",
								"{{file_copied_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Unlock File (ID | WITHOUT LOCK))",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Unlock file\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found / Bad token / File is not locked\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"unlock\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/file/{{file_copied_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"file",
								"{{file_copied_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Lock File (ID | GENERATE TOKEN)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Lock file\"] = responseCode.code === 200;",
									"    ",
									"    if (tests[\"Lock file\"]){",
									"        getToken();",
									"    } ",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 423){",
									"        tests[\"File locked with another token\"] = 1;",
									"    }",
									"",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function getToken(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"lock_token\", jsonData.lock_token);",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"lock\",\n  \"lock_timeout\": 2592000\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/file/{{file_uploaded_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"file",
								"{{file_uploaded_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Unlock File (ID | GENERATED TOKEN)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Unlock file\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found / Bad token / File is not locked\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"unlock\",\n  \"lock_token\": \"{{lock_token}}\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/file/{{file_uploaded_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"file",
								"{{file_uploaded_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Folder 1 (PATH)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Delete folder\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Folder not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{folder_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{folder_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Folder 2 (PATH)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Delete Folder\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Folder not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{folder_2_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{folder_2_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Folder (ID)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Delete folder\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Folder not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/folder/{{folder_1_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"folder",
								"{{folder_1_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete FIle (PATH)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Delete file\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Folder not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{file_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{file_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete File (ID)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Delete file\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Folder not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/file/{{file_copied_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"file",
								"{{file_copied_id}}"
							]
						}
					},
					"response": []
				}
			],
			"description": "The File System API allows you to perform the normal file system actions: create, update, move, copy, delete, download, and list information about files and folders. Since most use cases involve some basic file system operation, this is one of our core APIs.\n\n<b>More details: [developers.egnyte.com](https://developers.egnyte.com/docs/read/File_System_Management_API_Documentation)</b>"
		},
		{
			"name": "FileSystem API - Basic Flow by ID",
			"item": [
				{
					"name": "0. Reset Environment",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"type": "text/javascript",
								"exec": [
									"client_id = postman.getEnvironmentVariable(\"client_id\", \"m8mebwztxvv42nr5wkzuvy4w\");",
									"client_secret = postman.getEnvironmentVariable(\"client_secret\", \"3sqk569pHW8MC5jVW4f4tBU65EMtX4nwM4mDYMgXHxVerMCRXQ\");",
									"authorization = postman.getEnvironmentVariable(\"authorization\", \"Bearer wcb2hvmwfd96rgcchjphkpn6\");",
									"domain = postman.getEnvironmentVariable(\"domain_name\", \"apidemo.egnyte.com\");",
									"",
									"postman.clearEnvironmentVariables();",
									"",
									"postman.setEnvironmentVariable(\"client_id\", client_id);",
									"postman.setEnvironmentVariable(\"client_secret\", client_secret);",
									"postman.setEnvironmentVariable(\"authorization\", authorization);",
									"postman.setEnvironmentVariable(\"domain_name\", domain);"
								]
							}
						},
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Got strings\"] = responseCode.code === 200;",
									"    ",
									"    if(tests[\"Got strings\"]){",
									"        var fileNumber = 1;",
									"        var folderString = \"\";",
									"        var fileString = \"\";",
									"        var string = \"\";",
									"        ",
									"        for(i = 0; i < 4; i++){",
									"            for(j = (9 * i); j < (9 * i) + 8; j++){",
									"                string += responseBody[j];",
									"            }",
									"            ",
									"            if(i % 2 === 0){",
									"                folderString = \"Shared/\" + string;",
									"                postman.setEnvironmentVariable(\"folder_\" + fileNumber + \"_path\", folderString);",
									"            }",
									"            else{",
									"                fileString = folderString + \"/\" + string + \".txt\";",
									"                postman.setEnvironmentVariable(\"file_\" + fileNumber + \"_path\",  fileString);",
									"                ",
									"                fileNumber++;",
									"            }",
									"            ",
									"            string = \"\";",
									"        }",
									"        ",
									"        for(j = (9 * 4); j < (9 * 4) + 8; j++){",
									"            string += responseBody[j];",
									"        }",
									"        ",
									"        postman.setEnvironmentVariable(\"user_name\",  string);",
									"        string = \"\";",
									"        ",
									"        for(j = (9 * 5); j < (9 * 5) + 8; j++){",
									"            string += responseBody[j];",
									"        }",
									"        ",
									"        postman.setEnvironmentVariable(\"namespace_name\",  string);",
									"    }",
									"    ",
									"    ",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://www.random.org/strings/?num=6&len=8&digits=on&upperalpha=on&loweralpha=on&unique=on&format=plain&rnd=new",
							"protocol": "https",
							"host": [
								"www",
								"random",
								"org"
							],
							"path": [
								"strings",
								""
							],
							"query": [
								{
									"key": "num",
									"value": "6"
								},
								{
									"key": "len",
									"value": "8"
								},
								{
									"key": "digits",
									"value": "on"
								},
								{
									"key": "upperalpha",
									"value": "on"
								},
								{
									"key": "loweralpha",
									"value": "on"
								},
								{
									"key": "unique",
									"value": "on"
								},
								{
									"key": "format",
									"value": "plain"
								},
								{
									"key": "rnd",
									"value": "new"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "1. Upload File",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Upload file\"] = responseCode.code === 200;",
									"    ",
									"    if(tests[\"Upload file\"]){",
									"        assignId();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function assignId(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"file_uploaded_id\", jsonData.group_id);",
									"        ",
									"    tests['Set variable \"file_uploaded_id\"'] = 1;",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Disposition",
								"value": "form-data; name=\"file\"; filename=\"~/Desktop/test.txt"
							},
							{
								"key": "Content-Type",
								"value": "text/plain"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "testing file system api"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs-content/{{file_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs-content",
								"{{file_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "2. Move File (BY ID)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Move file (file_uploaded to file_2)\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"move\",\n  \"destination\": \"/{{file_2_path}}\",\n  \"permissions\": \"keep_original\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/file/{{file_uploaded_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"file",
								"{{file_uploaded_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "3. List Folder (BY PATH)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"List folder (folder_1)\"] = responseCode.code === 200;",
									"    ",
									"    if(tests[\"List folder (folder_1)\"]){",
									"        assignIds();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Folder not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function assignIds(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"folder_1_id\", jsonData.folder_id);",
									"    tests['Set variable \"folder_1_id'] = 1;",
									"        ",
									"    if(!responseBody.has('\"files\":')){",
									"        tests[\"Folder empty\"] = 1;",
									"    }",
									"    else{",
									"        postman.setEnvironmentVariable(\"file_copied_id\", jsonData.files[0].group_id);",
									"        postman.setEnvironmentVariable(\"file_copied_version_id\", jsonData.files[0].entry_id);",
									"        ",
									"        tests['Set variable \"file_copied_id'] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{folder_1_path}}?list_content=true&allowed_link_types=false&count=0&offset=0&sort_by=last_modified&key&sort_direction=descending&perms&include_perm&list_custom_metadata",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{folder_1_path}}"
							],
							"query": [
								{
									"key": "list_content",
									"value": "true"
								},
								{
									"key": "allowed_link_types",
									"value": "false"
								},
								{
									"key": "count",
									"value": "0"
								},
								{
									"key": "offset",
									"value": "0"
								},
								{
									"key": "sort_by",
									"value": "last_modified"
								},
								{
									"key": "key",
									"value": ""
								},
								{
									"key": "sort_direction",
									"value": "descending"
								},
								{
									"key": "perms",
									"value": ""
								},
								{
									"key": "include_perm",
									"value": ""
								},
								{
									"key": "list_custom_metadata",
									"value": ""
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "4. Copy File (BY ID)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Copy file (file_uploaded to file_1)\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 413){",
									"        tests[\"File size exceeds limit\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"copy\",\n  \"destination\": \"/{{file_1_path}}\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/file/{{file_uploaded_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"file",
								"{{file_uploaded_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "5. List Folder (BY ID)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"List folder (folder_1)\"] = responseCode.code === 200;",
									"    ",
									"    if(tests[\"List folder (folder_1)\"]){",
									"        assignIds();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Folder not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function assignIds(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"folder_1_id\", jsonData.folder_id);",
									"    tests['Set \"folder_1_id'] = 1;",
									"        ",
									"    if(!responseBody.has('\"files\":')){",
									"        tests[\"Folder empty\"] = 1;",
									"    }",
									"    else{",
									"        postman.setEnvironmentVariable(\"file_copied_id\", jsonData.files[0].group_id);",
									"        postman.setEnvironmentVariable(\"file_copied_version_id\", jsonData.files[0].entry_id);",
									"        ",
									"        tests['Set \"file_copied_id'] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/folder/{{folder_1_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"folder",
								"{{folder_1_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "6. Download File (BY ID)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Download file (file_copied)\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Range",
								"value": ""
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs-content/ids/file/{{file_copied_id}}?entry_id",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs-content",
								"ids",
								"file",
								"{{file_copied_id}}"
							],
							"query": [
								{
									"key": "entry_id",
									"value": ""
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "7. Lock File (BY ID)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Lock file (file_copied)\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"lock\",\n  \"lock_token\": \"my lock token\",\n  \"lock_timeout\": 2592000\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/file/{{file_copied_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"file",
								"{{file_copied_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "8. Unlock File (BY ID)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Unlock file (file_copied)\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"unlock\",\n  \"lock_token\": \"my lock token\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/file/{{file_copied_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"file",
								"{{file_copied_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "9. Delete Folder (BY ID)",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Delete folder (folder_1)\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Folder not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/folder/{{folder_1_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"folder",
								"{{folder_1_id}}"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "FileSystem API - Basic Flow by Path",
			"item": [
				{
					"name": "0. Reset Environment",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"type": "text/javascript",
								"exec": [
									"client_id = postman.getEnvironmentVariable(\"client_id\", \"m8mebwztxvv42nr5wkzuvy4w\");",
									"client_secret = postman.getEnvironmentVariable(\"client_secret\", \"3sqk569pHW8MC5jVW4f4tBU65EMtX4nwM4mDYMgXHxVerMCRXQ\");",
									"authorization = postman.getEnvironmentVariable(\"authorization\", \"Bearer wcb2hvmwfd96rgcchjphkpn6\");",
									"domain = postman.getEnvironmentVariable(\"domain_name\", \"apidemo.egnyte.com\");",
									"",
									"postman.clearEnvironmentVariables();",
									"",
									"postman.setEnvironmentVariable(\"client_id\", client_id);",
									"postman.setEnvironmentVariable(\"client_secret\", client_secret);",
									"postman.setEnvironmentVariable(\"authorization\", authorization);",
									"postman.setEnvironmentVariable(\"domain_name\", domain);"
								]
							}
						},
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Got strings\"] = responseCode.code === 200;",
									"    ",
									"    if(tests[\"Got strings\"]){",
									"        var fileNumber = 1;",
									"        var folderString = \"\";",
									"        var fileString = \"\";",
									"        var string = \"\";",
									"        ",
									"        for(i = 0; i < 4; i++){",
									"            for(j = (9 * i); j < (9 * i) + 8; j++){",
									"                string += responseBody[j];",
									"            }",
									"            ",
									"            if(i % 2 === 0){",
									"                folderString = \"Shared/\" + string;",
									"                postman.setEnvironmentVariable(\"folder_\" + fileNumber + \"_path\", folderString);",
									"            }",
									"            else{",
									"                fileString = folderString + \"/\" + string + \".txt\";",
									"                postman.setEnvironmentVariable(\"file_\" + fileNumber + \"_path\",  fileString);",
									"                ",
									"                fileNumber++;",
									"            }",
									"            ",
									"            string = \"\";",
									"        }",
									"        ",
									"        for(j = (9 * 4); j < (9 * 4) + 8; j++){",
									"            string += responseBody[j];",
									"        }",
									"        ",
									"        postman.setEnvironmentVariable(\"user_name\",  string);",
									"        string = \"\";",
									"        ",
									"        for(j = (9 * 5); j < (9 * 5) + 8; j++){",
									"            string += responseBody[j];",
									"        }",
									"        ",
									"        postman.setEnvironmentVariable(\"namespace_name\",  string);",
									"    }",
									"    ",
									"    ",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://www.random.org/strings/?num=6&len=8&digits=on&upperalpha=on&loweralpha=on&unique=on&format=plain&rnd=new",
							"protocol": "https",
							"host": [
								"www",
								"random",
								"org"
							],
							"path": [
								"strings",
								""
							],
							"query": [
								{
									"key": "num",
									"value": "6"
								},
								{
									"key": "len",
									"value": "8"
								},
								{
									"key": "digits",
									"value": "on"
								},
								{
									"key": "upperalpha",
									"value": "on"
								},
								{
									"key": "loweralpha",
									"value": "on"
								},
								{
									"key": "unique",
									"value": "on"
								},
								{
									"key": "format",
									"value": "plain"
								},
								{
									"key": "rnd",
									"value": "new"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "1. Create Folder",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Create folder (folder_1)\"] = responseCode.code === 201;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 403){",
									"        tests[\"Folder exists\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"add_folder\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{folder_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{folder_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "2. Upload File",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Upload file (file_1)\"] = responseBody.has(\"group_id\");",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad Request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Disposition",
								"value": "form-data; name=\"file\"; filename=\"~/Desktop/test.txt"
							},
							{
								"key": "Content-Type",
								"value": "text/plain"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "testing file system api"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs-content/{{file_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs-content",
								"{{file_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "3. Move File",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Move file (file_1 to file_2)\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"move\",\n  \"destination\": \"/{{file_2_path}}\",\n  \"permissions\": \"keep_original\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{file_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{file_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "4. Copy File",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Copy file (file_2 to file_1)\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 413){",
									"        tests[\"File size exceeds limit\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"copy\",\n  \"destination\": \"/{{file_1_path}}\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{file_2_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{file_2_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "5. Delete Folder",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Delete folder (folder_1)\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Folder not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{folder_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{folder_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "6. Copy File",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Copy file (file_2 to file_1)\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 413){",
									"        tests[\"File size exceeds limit\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"copy\",\n  \"destination\": \"/{{file_1_path}}\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{file_2_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{file_2_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "7. Download File",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Download file (file_1)\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Range",
								"value": ""
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs-content/{{file_1_path}}?entry_id=",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs-content",
								"{{file_1_path}}"
							],
							"query": [
								{
									"key": "entry_id",
									"value": ""
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "8. List Folder",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"List folder (folder_1)\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Folder not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{folder_1_path}}?list_content=true&allowed_link_types=false&count=0&offset=0&sort_by=last_modified&key&sort_direction=descending&perms&include_perm&list_custom_metadata",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{folder_1_path}}"
							],
							"query": [
								{
									"key": "list_content",
									"value": "true"
								},
								{
									"key": "allowed_link_types",
									"value": "false"
								},
								{
									"key": "count",
									"value": "0"
								},
								{
									"key": "offset",
									"value": "0"
								},
								{
									"key": "sort_by",
									"value": "last_modified"
								},
								{
									"key": "key",
									"value": ""
								},
								{
									"key": "sort_direction",
									"value": "descending"
								},
								{
									"key": "perms",
									"value": ""
								},
								{
									"key": "include_perm",
									"value": ""
								},
								{
									"key": "list_custom_metadata",
									"value": ""
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "9. Lock File",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Lock file (file_1)\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"lock\",\n  \"lock_token\": \"my lock token\",\n  \"lock_timeout\": 2592000\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{file_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{file_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "10. Unlock File",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Unlock file (file_1)\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"File not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"unlock\",\n  \"lock_token\": \"my lock token\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{file_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{file_1_path}}"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Group Management API",
			"item": [
				{
					"name": "(RUN THIS FIRST) Create Single User",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Create user\"] = responseCode.code === 201;",
									"    ",
									"    if (tests[\"Create user\"]){",
									"        getId();",
									"    }",
									"    ",
									"    if(responseCode.code === 400){",
									"        tests[\"Bad request\"] == 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Duplicated user\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function getId(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"user_id\", jsonData.id);",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"userName\": \"{{user_name}}\",\n    \"externalId\": \"{{user_name}}{{user_name}}{{user_name}}\",\n    \"email\": \"{{user_name}}@example.com\",\n    \"name\": {\n        \"familyName\": \"{{user_name}}\",\n        \"givenName\": \"{{user_name}}\"\n    },\n    \"active\": \"true\",\n    \"sendInvite\": \"true\",\n    \"authType\": \"egnyte\",\n    \"userType\": \"power\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v2/users",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v2",
								"users"
							]
						}
					},
					"response": []
				},
				{
					"name": "Create Group",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Create group\"] = responseCode.code === 201;",
									"    ",
									"    if (tests[\"Create group\"]){",
									"        getId();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Duplicate Group\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function getId(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"group_id\", jsonData.id);",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"displayName\": \"{{user_name}}{{user_name}}\",\n  \"members\": [\n    {\"value\": {{user_id}} }\n  ]\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v2/groups",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v2",
								"groups"
							]
						}
					},
					"response": []
				},
				{
					"name": "List Groups",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"List groups\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v2/groups?startIndex=1&count=10&filter=displayName eq \"{{user_name}}{{user_name}}\"",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v2",
								"groups"
							],
							"query": [
								{
									"key": "startIndex",
									"value": "1"
								},
								{
									"key": "count",
									"value": "10"
								},
								{
									"key": "filter",
									"value": "displayName eq \"{{user_name}}{{user_name}}\""
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Show Single Group",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Show single group\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Group not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v2/groups/{{group_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v2",
								"groups",
								"{{group_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Full Update To A Group",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Full update\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"User does not exist\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Group not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 405){",
									"        tests[\"Method not allowed\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Group already exists\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"displayName\": \"{{user_name}}{{user_name}}\",\n  \"members\":[\n    {\"value\": {{user_id}} }\n  ]\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v2/groups/{{group_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v2",
								"groups",
								"{{group_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Partial Update To A Group",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Partial update\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"User does not exist\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Group not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Group already exists\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "PATCH",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"displayName\": \"{{user_name}}{{user_name}}\",\n  \"members\":[\n    {\n      \"operation\":\"delete\",\n      \"value\": {{user_id}}\n    }\n  ]\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v2/groups/{{group_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v2",
								"groups",
								"{{group_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Group",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Delete group\"] = responseCode.code === 200;",
									"",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"",
									"    if (responseCode.code === 404){",
									"        tests[\"Group not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v2/groups/{{group_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v2",
								"groups",
								"{{group_id}}"
							]
						}
					},
					"response": []
				}
			],
			"description": "The Group Management API allows you to list the groups in your domain, show the details of an individual group, manage group membership, create new groups, rename groups, and delete groups. This API is designed to comply with SCIM 1.1\n\n<b>More details: [developers.egnyte.com](https://developers.egnyte.com/docs/read/Group_Management)</b>"
		},
		{
			"name": "Links API",
			"item": [
				{
					"name": "(RUN THIS FIRST) Upload File",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Upload file\"] = responseCode.code === 200;",
									"    ",
									"    if(tests[\"Upload file\"]){",
									"        assignId();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function assignId(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"file_uploaded_id\", jsonData.group_id);",
									"        ",
									"    tests['File ID copied to variable \"file_uploaded_id\"'] = 1;",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Disposition",
								"value": "form-data; name=\"file\"; filename=\"~/Desktop/test.txt"
							},
							{
								"key": "Content-Type",
								"value": "text/plain"
							},
							{
								"key": "X-Sha512-Checksum",
								"value": ""
							},
							{
								"key": "Last-Modified",
								"value": ""
							}
						],
						"body": {
							"mode": "raw",
							"raw": "testing file system api"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs-content/{{file_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs-content",
								"{{file_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Deep Link",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/navigate/file/{{file_copied_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"navigate",
								"file",
								"{{file_copied_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "List Links v1",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"List links\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/links?path=&username=test&created_before=&created_after=2017-05-01&type&accessibility&offset=&count=",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"links"
							],
							"query": [
								{
									"key": "path",
									"value": ""
								},
								{
									"key": "username",
									"value": "test"
								},
								{
									"key": "created_before",
									"value": ""
								},
								{
									"key": "created_after",
									"value": "2017-05-01"
								},
								{
									"key": "type",
									"value": ""
								},
								{
									"key": "accessibility",
									"value": ""
								},
								{
									"key": "offset",
									"value": ""
								},
								{
									"key": "count",
									"value": ""
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "List Links v2",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"List links\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v2/links?path&username=test&type=all&offset=0&count=20",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v2",
								"links"
							],
							"query": [
								{
									"key": "path",
									"value": ""
								},
								{
									"key": "username",
									"value": "test"
								},
								{
									"key": "type",
									"value": "all"
								},
								{
									"key": "offset",
									"value": "0"
								},
								{
									"key": "count",
									"value": "20"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Create Link",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Create link\"] = responseCode.code === 200;",
									"    ",
									"    if (tests[\"Create link\"]){",
									"        getId();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function getId(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"link_id\", jsonData.links[0].id);",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"path\": \"/{{file_1_path}}\",\n  \"type\": \"file\",\n  \"accessibility\": \"anyone\",\n  \"send_email\": \"false\",\n  \"message\": \"Link to test file\",\n  \"copy_me\": \"false\",\n  \"notify\": \"false\",\n  \"link_to_current\": \"true\",\n  \"expiry_date\": \"2020-12-12\",\n  \"add_file_name\": \"true\",\n  \"protection\": \"NONE\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/links",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"links"
							]
						}
					},
					"response": []
				},
				{
					"name": "Link Details",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Link details\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Link does not exist\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/links/{{link_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"links",
								"{{link_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Link",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Delete link\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Link does not exist\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/links/{{link_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"links",
								"{{link_id}}"
							]
						}
					},
					"response": []
				}
			],
			"description": "The Public API Links endpoint allows you to list the file and folder links in your domain, show the details of an individual link, create new links, and delete links. If you want a link address that provides a reference to a file or folder, please use Deep Links.\n\n<b>More details: [developers.egnyte.com](https://developers.egnyte.com/docs/read/Egnyte_Link_API_Documentation)</b>"
		},
		{
			"name": "Metadata API",
			"item": [
				{
					"name": "(RUN THIS FIRST) Upload File",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Upload file\"] = responseCode.code === 200;",
									"    ",
									"    if(tests[\"Upload file\"]){",
									"        assignId();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function assignId(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"file_uploaded_id\", jsonData.group_id);",
									"    postman.setEnvironmentVariable(\"file_uploaded_version_id\", jsonData.entry_id);",
									"        ",
									"    tests['File ID copied to variable \"file_uploaded_id\"'] = 1;",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Disposition",
								"value": "form-data; name=\"file\"; filename=\"~/Desktop/test.txt"
							},
							{
								"key": "Content-Type",
								"value": "text/plain"
							},
							{
								"key": "X-Sha512-Checksum",
								"value": ""
							},
							{
								"key": "Last-Modified",
								"value": ""
							}
						],
						"body": {
							"mode": "raw",
							"raw": "testing file system api"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs-content/{{file_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs-content",
								"{{file_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get All Namespaces",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Get all namespaces\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/properties/namespace",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"properties",
								"namespace"
							]
						}
					},
					"response": []
				},
				{
					"name": "Create Namespace",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Create namespace\"] = responseCode.code === 204;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 403){",
									"        tests[\"Namespace already exists\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"name\": \"{{namespace_name}}\",\n  \"scope\": \"private\",\n  \"displayName\": \"namespace {{namespace_name}}\",\n  \"keys\": {\n    \"key1\": {\n      \"type\": \"integer\",\n      \"displayName\": \"key integer\"\n    },\n    \"key2\": {\n      \"type\": \"string\"\n    }\n  }\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/properties/namespace",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"properties",
								"namespace"
							]
						}
					},
					"response": []
				},
				{
					"name": "Update Namespace",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Update namespace\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Namespace not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "PATCH",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"scope\": \"private\",\n  \"displayName\": \"namespace {{namespace_name}}\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/properties/namespace/{{namespace_name}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"properties",
								"namespace",
								"{{namespace_name}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Update Namespace Keys",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Update namespace keys\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Key not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "PATCH",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"displayName\": \"key-decimal\",\n  \"type\": \"decimal\",\n  \"helpText\": \"This was integer key\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/properties/namespace/{{namespace_name}}/keys/key1",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"properties",
								"namespace",
								"{{namespace_name}}",
								"keys",
								"key1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Namespace",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Get namespace\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/properties/namespace/{{namespace_name}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"properties",
								"namespace",
								"{{namespace_name}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Namespace",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Delete namespace\"] = responseCode.code === 204;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/properties/namespace/{{namespace_name}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"properties",
								"namespace",
								"{{namespace_name}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Create Metadata Key",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Create metadata key\"] = responseCode.code === 204;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"key\": \"enum key\",\n  \"type\": \"enum\",\n  \"data\": [\"red\", \"green\", \"blue\"]\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/properties/namespace/{{namespace_name}}/keys",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"properties",
								"namespace",
								"{{namespace_name}}",
								"keys"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Metadata Key",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Delete namespace\"] = responseCode.code === 204;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/properties/namespace/{{namespace_name}}/keys/key2",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"properties",
								"namespace",
								"{{namespace_name}}",
								"keys",
								"key2"
							]
						}
					},
					"response": []
				},
				{
					"name": "Set Values For A Namespace",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Get all namespaces\"] = responseCode.code === 204;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"key1\": \"1255\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/file/{{file_uploaded_id}}/properties/{{namespace_name}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"file",
								"{{file_uploaded_id}}",
								"properties",
								"{{namespace_name}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Values For A Namespace",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Get all namespaces\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/file/{{file_uploaded_id}}/properties/{{namespace_name}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"file",
								"{{file_uploaded_id}}",
								"properties",
								"{{namespace_name}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Search Metadata",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Search complete\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"has_key\": [\n    {\n      \"namespace\": \"{{namespace_name}}\", \n      \"key\": \"key1\"\n    }\n  ]\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/search",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"search"
							]
						}
					},
					"response": []
				}
			],
			"description": "The Metadata API allows you to define custom metadata fields and then use those fields to set values on files, file versions, and folders. Metadata fields (keys) are grouped together in namespaces.\n\n<b>More details: [developers.egnyte.com](https://developers.egnyte.com/docs/read/Metadata_API)</b>"
		},
		{
			"name": "Metadata API - Basic Flow",
			"item": [
				{
					"name": "0. Reset Environment",
					"event": [
						{
							"listen": "prerequest",
							"script": {
								"type": "text/javascript",
								"exec": [
									"client_id = postman.getEnvironmentVariable(\"client_id\", \"m8mebwztxvv42nr5wkzuvy4w\");",
									"client_secret = postman.getEnvironmentVariable(\"client_secret\", \"3sqk569pHW8MC5jVW4f4tBU65EMtX4nwM4mDYMgXHxVerMCRXQ\");",
									"authorization = postman.getEnvironmentVariable(\"authorization\", \"Bearer wcb2hvmwfd96rgcchjphkpn6\");",
									"domain = postman.getEnvironmentVariable(\"domain_name\", \"apidemo.egnyte.com\");",
									"",
									"postman.clearEnvironmentVariables();",
									"",
									"postman.setEnvironmentVariable(\"client_id\", client_id);",
									"postman.setEnvironmentVariable(\"client_secret\", client_secret);",
									"postman.setEnvironmentVariable(\"authorization\", authorization);",
									"postman.setEnvironmentVariable(\"domain_name\", domain);"
								]
							}
						},
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Got strings\"] = responseCode.code === 200;",
									"    ",
									"    if(tests[\"Got strings\"]){",
									"        var fileNumber = 1;",
									"        var folderString = \"\";",
									"        var fileString = \"\";",
									"        var string = \"\";",
									"        ",
									"        for(i = 0; i < 4; i++){",
									"            for(j = (9 * i); j < (9 * i) + 8; j++){",
									"                string += responseBody[j];",
									"            }",
									"            ",
									"            if(i % 2 === 0){",
									"                folderString = \"Shared/\" + string;",
									"                postman.setEnvironmentVariable(\"folder_\" + fileNumber + \"_path\", folderString);",
									"            }",
									"            else{",
									"                fileString = folderString + \"/\" + string + \".txt\";",
									"                postman.setEnvironmentVariable(\"file_\" + fileNumber + \"_path\",  fileString);",
									"                ",
									"                fileNumber++;",
									"            }",
									"            ",
									"            string = \"\";",
									"        }",
									"        ",
									"        for(j = (9 * 4); j < (9 * 4) + 8; j++){",
									"            string += responseBody[j];",
									"        }",
									"        ",
									"        postman.setEnvironmentVariable(\"user_name\",  string);",
									"        string = \"\";",
									"        ",
									"        for(j = (9 * 5); j < (9 * 5) + 8; j++){",
									"            string += responseBody[j];",
									"        }",
									"        ",
									"        postman.setEnvironmentVariable(\"namespace_name\",  string);",
									"    }",
									"    ",
									"    ",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://www.random.org/strings/?num=6&len=8&digits=on&upperalpha=on&loweralpha=on&unique=on&format=plain&rnd=new",
							"protocol": "https",
							"host": [
								"www",
								"random",
								"org"
							],
							"path": [
								"strings",
								""
							],
							"query": [
								{
									"key": "num",
									"value": "6"
								},
								{
									"key": "len",
									"value": "8"
								},
								{
									"key": "digits",
									"value": "on"
								},
								{
									"key": "upperalpha",
									"value": "on"
								},
								{
									"key": "loweralpha",
									"value": "on"
								},
								{
									"key": "unique",
									"value": "on"
								},
								{
									"key": "format",
									"value": "plain"
								},
								{
									"key": "rnd",
									"value": "new"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "1. Create Namespace",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Create namespace\"] = responseCode.code === 204;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 403){",
									"        tests[\"Namespace already exists\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"name\": \"{{namespace_name}}\",\n  \"scope\": \"private\",\n  \"displayName\": \"namespace {{namespace_name}}\",\n  \"keys\": {\n    \"key1\": {\n      \"type\": \"integer\",\n      \"displayName\": \"key integer\"\n    },\n    \"key2\": {\n      \"type\": \"string\"\n    }\n  }\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/properties/namespace",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"properties",
								"namespace"
							]
						}
					},
					"response": []
				},
				{
					"name": "2. Get All Namespaces",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Get all namespaces\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/properties/namespace",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"properties",
								"namespace"
							]
						}
					},
					"response": []
				},
				{
					"name": "3. Update Namespace",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Update namespace\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Namespace not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "PATCH",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"scope\": \"private\",\n  \"displayName\": \"New Display Name\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/properties/namespace/{{namespace_name}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"properties",
								"namespace",
								"{{namespace_name}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "4. Update Namespace Keys",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Update namespace keys\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Key not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "PATCH",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"displayName\": \"key-decimal\",\n  \"type\": \"decimal\",\n  \"helpText\": \"This was integer key\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/properties/namespace/{{namespace_name}}/keys/key1",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"properties",
								"namespace",
								"{{namespace_name}}",
								"keys",
								"key1"
							]
						}
					},
					"response": []
				},
				{
					"name": "5. Get Namespace",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Get namespace\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/properties/namespace/{{namespace_name}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"properties",
								"namespace",
								"{{namespace_name}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "6. Create Metadata Key",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Create metadata key\"] = responseCode.code === 204;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 403){",
									"        tests[\"Namespace key already exists\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Not Found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"key\": \"enum_key\",\n  \"type\": \"enum\",\n  \"data\": [\"red\", \"green\", \"blue\"]\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/properties/namespace/{{namespace_name}}/keys",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"properties",
								"namespace",
								"{{namespace_name}}",
								"keys"
							]
						}
					},
					"response": []
				},
				{
					"name": "7. Get Namespace",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Get namespace\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/properties/namespace/{{namespace_name}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"properties",
								"namespace",
								"{{namespace_name}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "8. Delete Metadata Key",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Delete namespace\"] = responseCode.code === 204;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/properties/namespace/{{namespace_name}}/keys/key2",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"properties",
								"namespace",
								"{{namespace_name}}",
								"keys",
								"key2"
							]
						}
					},
					"response": []
				},
				{
					"name": "9. Get Namespace",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Get namespace\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/properties/namespace/{{namespace_name}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"properties",
								"namespace",
								"{{namespace_name}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "10. Upload File",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Upload file\"] = responseCode.code === 200;",
									"    ",
									"    if(tests[\"Upload file\"]){",
									"        assignId();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Forbidden location\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function assignId(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"file_uploaded_id\", jsonData.group_id);",
									"        ",
									"    tests['File ID copied to variable \"file_uploaded_id\"'] = 1;",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Disposition",
								"value": "form-data; name=\"file\"; filename=\"~/Desktop/test.txt"
							},
							{
								"key": "Content-Type",
								"value": "text/plain"
							},
							{
								"key": "X-Sha512-Checksum",
								"value": ""
							},
							{
								"key": "Last-Modified",
								"value": ""
							}
						],
						"body": {
							"mode": "raw",
							"raw": "testing file system api"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs-content/{{file_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs-content",
								"{{file_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "11. Set Values For A Namespace",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Get all namespaces\"] = responseCode.code === 204;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"key1\": 1410,\n  \"enum_key\": \"red\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/file/{{file_uploaded_id}}/properties/{{namespace_name}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"file",
								"{{file_uploaded_id}}",
								"properties",
								"{{namespace_name}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "12. Delete Namespace",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Delete namespace\"] = responseCode.code === 204;",
									" ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									" ",
									"    if (responseCode.code === 403){",
									"        tests[\"Namespace is in use\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/properties/namespace/{{namespace_name}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"properties",
								"namespace",
								"{{namespace_name}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "13. Get Values For A Namespace",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Get all namespaces\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/file/{{file_uploaded_id}}/properties/{{namespace_name}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"file",
								"{{file_uploaded_id}}",
								"properties",
								"{{namespace_name}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "14. Search Metadata",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Search complete\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"has_key\": [\n    {\n      \"namespace\": \"{{namespace_name}}\", \n      \"key\": \"key1\"\n    },\n    {\n      \"namespace\": \"{{namespace_name}}\", \n      \"key\": \"enum_key\"\n    }\n  ]\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/search",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"search"
							]
						}
					},
					"response": []
				},
				{
					"name": "15. Delete Values For A Namespace",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Get all namespaces\"] = responseCode.code === 204;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"key1\": null,\n  \"enum_key\": null\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/ids/file/{{file_uploaded_id}}/properties/{{namespace_name}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"ids",
								"file",
								"{{file_uploaded_id}}",
								"properties",
								"{{namespace_name}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "16. Delete Namespace",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Delete namespace\"] = responseCode.code === 204;",
									" ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									" ",
									"    if (responseCode.code === 403){",
									"        tests[\"Namespace is in use\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/properties/namespace/{{namespace_name}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"properties",
								"namespace",
								"{{namespace_name}}"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Permissions API",
			"item": [
				{
					"name": "(RUN THIS FIRST) Create Single User",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Create user\"] = responseCode.code === 201;",
									"    ",
									"    if (tests[\"Create user\"]){",
									"        getId();",
									"    }",
									"    ",
									"    if(responseCode.code === 400){",
									"        tests[\"Bad request\"] == 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Duplicated user\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function getId(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"user_id\", jsonData.id);",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"userName\": \"{{user_name}}\",\n    \"externalId\": \"{{user_name}}{{user_name}}{{user_name}}\",\n    \"email\": \"{{user_name}}@example.com\",\n    \"name\": {\n        \"familyName\": \"{{user_name}}\",\n        \"givenName\": \"{{user_name}}\"\n    },\n    \"active\": \"true\",\n    \"sendInvite\": \"true\",\n    \"authType\": \"egnyte\",\n    \"userType\": \"power\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v2/users",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v2",
								"users"
							]
						}
					},
					"response": []
				},
				{
					"name": "(RUN THIS FIRST) Create Folder",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Create folder\"] = responseCode.code === 201;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 403){",
									"        tests[\"Folder exists\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"add_folder\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/{{folder_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"{{folder_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Set Folder Permissions",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Set permissions\"] = responseCode.code === 204;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 403){",
									"        tests[\"Forbidden\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Folder not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"userPerms\": {\n    \"{{user_name}}\": \"Viewer\"\n  },\n  \"groupPerms\": {\n      \"All Administrators\": \"Owner\"\n  }\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v2/perms/{{folder_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v2",
								"perms",
								"{{folder_1_path}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Permissions For User",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Get permissions\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 403){",
									"        tests[\"Forbidden\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/perms/user/{{user_name}}?folder=/{{folder_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"perms",
								"user",
								"{{user_name}}"
							],
							"query": [
								{
									"key": "folder",
									"value": "/{{folder_1_path}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Folder Permissions",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Get permissions\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 403){",
									"        tests[\"Forbidden\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v2/perms/{{folder_1_path}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v2",
								"perms",
								"{{folder_1_path}}"
							]
						}
					},
					"response": []
				}
			],
			"description": "The Permissions API allows you to list, set, and remove folder permissions for users and groups. Please refer to the table below for details on our different permission levels.\n\n<b>More details: [developers.egnyte.com](https://developers.egnyte.com/docs/read/Egnyte_Permissions_API)</b>"
		},
		{
			"name": "Search API",
			"item": [
				{
					"name": "Search",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Search complete\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/search?query=test&offset&count=10&folder=&modified_before&modified_after=2017-05-01T22:19:29Z&type",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"search"
							],
							"query": [
								{
									"key": "query",
									"value": "test"
								},
								{
									"key": "offset",
									"value": ""
								},
								{
									"key": "count",
									"value": "10"
								},
								{
									"key": "folder",
									"value": ""
								},
								{
									"key": "modified_before",
									"value": ""
								},
								{
									"key": "modified_after",
									"value": "2017-05-01T22:19:29Z"
								},
								{
									"key": "type",
									"value": ""
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Search Metadata",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Search complete\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"has_key\": [\n    {\n      \"namespace\": \"{{namespace_name}}\", \n      \"key\": \"key1\"\n    }\n  ]\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/search",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"search"
							]
						}
					},
					"response": []
				}
			],
			"description": "The Search API allows you to find content stored in Egnyte based on filenames, metadata, and text content. Searches are performed in the context of the user token being passed. Accordingly, a user will only see results for contents they have permission to access. The search API has been extended to support searching for metadata fields in files, versions, or folders. When searching metadata, call the API with a POST request to /pubapi/v1/search with a JSON body.\n\n<b>More details: [developers.egnyte.com](https://developers.egnyte.com/docs/read/Search_API)</b>"
		},
		{
			"name": "Trash API",
			"item": [
				{
					"name": "Trash Contents",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Trash contents\"] = responseCode.code === 200;",
									"    ",
									"    if (tests[\"Trash contents\"]){",
									"        getId();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 403){",
									"        tests[\"Forbidden\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function getId(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    if (jsonData.total_count > 1){",
									"        postman.setEnvironmentVariable(\"trash_item_1_id\", jsonData.items[0].id);",
									"        postman.setEnvironmentVariable(\"trash_item_2_id\", jsonData.items[1].id);",
									"    }",
									"    else if (jsonData.total_count > 0){",
									"        postman.setEnvironmentVariable(\"trash_item_1_id\", jsonData.items[0].id);",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/trash?sort_by=deleted_by&sort_direction=asc&count=10&offset=0",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"trash"
							],
							"query": [
								{
									"key": "sort_by",
									"value": "deleted_by"
								},
								{
									"key": "sort_direction",
									"value": "asc"
								},
								{
									"key": "count",
									"value": "10"
								},
								{
									"key": "offset",
									"value": "0"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Restore Items From Trash",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Restore items\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 207){",
									"        tests[\"Some of the items were not restored\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Item not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"RESTORE\",\n  \"ids\": [\n  \"{{trash_item_1_id}}\"\n  ]\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/trash",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"trash"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Items From Trash",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Delete items\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 207){",
									"        tests[\"Some of the items were not purged\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"Item not found\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"action\": \"PURGE\",\n  \"ids\": [\n  \"{{trash_item_2_id}}\"\n  ]\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/fs/trash",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"fs",
								"trash"
							]
						}
					},
					"response": []
				}
			],
			"description": "The Trash API allows you to list, restore, and permanently remove deleted files and folders in your Egnyte account's trash. Note that only administrators or power users with trash management privileges can generate a list of items that are in the trash.\n\n<b>More details: [developers.egnyte.com](https://developers.egnyte.com/docs/read/Trash_API)</b>"
		},
		{
			"name": "User Management API",
			"item": [
				{
					"name": "Get User Info For OAuth Token",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v1/userinfo",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v1",
								"userinfo"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Single User",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Get user\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 403){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"User does not exist\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v2/users/{{user_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v2",
								"users",
								"{{user_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Users List",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Get users list\"] = responseCode.code === 200;",
									"    ",
									"    if (tests[\"Get users list\"]){",
									"        getId();",
									"    }",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 403){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function getId(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"user_id\", jsonData.resources[0].id);",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v2/users/?startIndex=1&count=10&filter=userName eq \"{{user_name}}\"",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v2",
								"users",
								""
							],
							"query": [
								{
									"key": "startIndex",
									"value": "1"
								},
								{
									"key": "count",
									"value": "10"
								},
								{
									"key": "filter",
									"value": "userName eq \"{{user_name}}\""
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Create Single User",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Create user\"] = responseCode.code === 201;",
									"    ",
									"    if (tests[\"Create user\"]){",
									"        getId();",
									"    }",
									"    ",
									"    if(responseCode.code === 400){",
									"        tests[\"Bad request\"] == 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 409){",
									"        tests[\"Duplicated user\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}",
									"",
									"function getId(){",
									"    var jsonData = JSON.parse(responseBody);",
									"    postman.setEnvironmentVariable(\"user_id\", jsonData.id);",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"userName\": \"{{user_name}}\",\n    \"externalId\": \"{{user_name}}{{user_name}}{{user_name}}\",\n    \"email\": \"{{user_name}}@example.com\",\n    \"name\": {\n        \"familyName\": \"{{user_name}}\",\n        \"givenName\": \"{{user_name}}\"\n    },\n    \"active\": \"true\",\n    \"sendInvite\": \"true\",\n    \"authType\": \"egnyte\",\n    \"userType\": \"power\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v2/users",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v2",
								"users"
							]
						}
					},
					"response": []
				},
				{
					"name": "Update Single User",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Update user\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"User does not exist\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "PATCH",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"email\": \"{{user_name}}@egnyte.com\",\n  \"name\": {\n        \"familyName\": \"{{user_name}}\",\n        \"givenName\": \"{{user_name}}\"\n    },\n  \"active\": true,\n  \"sendInvite\": true,\n  \"authType\": \"egnyte\",\n  \"userType\": \"standard\"\n}"
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v2/users/{{user_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v2",
								"users",
								"{{user_id}}"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Single User",
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"tests[\"Authentication\"] = responseCode.code !== 401;",
									"",
									"if(tests[\"Authentication\"]){",
									"    ",
									"    tests[\"Delete user\"] = responseCode.code === 200;",
									"    ",
									"    if (responseCode.code === 400){",
									"        tests[\"Bad request\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 404){",
									"        tests[\"User does not exist\"] = 1;",
									"    }",
									"    ",
									"    if (responseCode.code === 500){",
									"        tests[\"Internal server error\"] = 1;",
									"    }",
									"}"
								]
							}
						}
					],
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "{{authorization}}"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "https://{{domain_name}}/pubapi/v2/users/{{user_id}}",
							"protocol": "https",
							"host": [
								"{{domain_name}}"
							],
							"path": [
								"pubapi",
								"v2",
								"users",
								"{{user_id}}"
							]
						}
					},
					"response": []
				}
			],
			"description": "The User Management API allows you to create, update, get information about, and delete users. You can customize settings like user role or authentication type and even control whether a new user receives an invitation email.\n\n<b>More details: [developers.egnyte.com](https://developers.egnyte.com/docs/read/User_Management_API_Documentation)</b>"
		},
		{
			"name": "Set Environment",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"type": "text/javascript",
						"exec": [
							"client_id = \"m8mebwztxvv42nr5wkzuvy4w\"",
							"client_secret = \"3sqk569pHW8MC5jVW4f4tBU65EMtX4nwM4mDYMgXHxVerMCRXQ\"",
							"authorization = \"Bearer wcb2hvmwfd96rgcchjphkpn6\"",
							"domain = \"apidemo.egnyte.com\"",
							"",
							"postman.setEnvironmentVariable(\"client_id\", client_id);",
							"postman.setEnvironmentVariable(\"client_secret\", client_secret);",
							"postman.setEnvironmentVariable(\"authorization\", authorization);",
							"postman.setEnvironmentVariable(\"domain_name\", domain);"
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"type": "text/javascript",
						"exec": [
							"tests[\"Authentication\"] = responseCode.code !== 401;",
							"",
							"if(tests[\"Authentication\"]){",
							"    ",
							"    tests[\"Set random paths\"] = responseCode.code === 200;",
							"    ",
							"    if(tests[\"Set random paths\"]){",
							"        var fileNumber = 1;",
							"        var folderString = \"\";",
							"        var fileString = \"\";",
							"        var string = \"\";",
							"        ",
							"        for(i = 0; i < 4; i++){",
							"            for(j = (9 * i); j < (9 * i) + 8; j++){",
							"                string += responseBody[j];",
							"            }",
							"            ",
							"            if(i % 2 === 0){",
							"                folderString = \"Shared/\" + string;",
							"                postman.setEnvironmentVariable(\"folder_\" + fileNumber + \"_path\", folderString);",
							"            }",
							"            else{",
							"                fileString = folderString + \"/\" + string + \".txt\";",
							"                postman.setEnvironmentVariable(\"file_\" + fileNumber + \"_path\",  fileString);",
							"                ",
							"                fileNumber++;",
							"            }",
							"            ",
							"            string = \"\";",
							"        }",
							"        ",
							"        for(j = (9 * 4); j < (9 * 4) + 8; j++){",
							"            string += responseBody[j];",
							"        }",
							"        ",
							"        postman.setEnvironmentVariable(\"user_name\",  string);",
							"        string = \"\";",
							"        ",
							"        for(j = (9 * 5); j < (9 * 5) + 8; j++){",
							"            string += responseBody[j];",
							"        }",
							"        ",
							"        postman.setEnvironmentVariable(\"namespace_name\",  string);",
							"    }",
							"    ",
							"    ",
							"}"
						]
					}
				}
			],
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://www.random.org/strings/?num=6&len=8&digits=on&upperalpha=on&loweralpha=on&unique=on&format=plain&rnd=new",
					"protocol": "https",
					"host": [
						"www",
						"random",
						"org"
					],
					"path": [
						"strings",
						""
					],
					"query": [
						{
							"key": "num",
							"value": "6"
						},
						{
							"key": "len",
							"value": "8"
						},
						{
							"key": "digits",
							"value": "on"
						},
						{
							"key": "upperalpha",
							"value": "on"
						},
						{
							"key": "loweralpha",
							"value": "on"
						},
						{
							"key": "unique",
							"value": "on"
						},
						{
							"key": "format",
							"value": "plain"
						},
						{
							"key": "rnd",
							"value": "new"
						}
					]
				},
				"description": "This method uses credentials from 'Pre-request Script' to set your environment so firstly set them up."
			},
			"response": []
		},
		{
			"name": "Reset Environment",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"type": "text/javascript",
						"exec": [
							"client_id = postman.getEnvironmentVariable(\"client_id\", \"m8mebwztxvv42nr5wkzuvy4w\");",
							"client_secret = postman.getEnvironmentVariable(\"client_secret\", \"3sqk569pHW8MC5jVW4f4tBU65EMtX4nwM4mDYMgXHxVerMCRXQ\");",
							"authorization = postman.getEnvironmentVariable(\"authorization\", \"Bearer j45h939mrkt9x8d7xqjhddyp\");",
							"domain = postman.getEnvironmentVariable(\"domain_name\", \"apidemo.egnyte.com\");",
							"",
							"postman.clearEnvironmentVariables();",
							"",
							"postman.setEnvironmentVariable(\"client_id\", client_id);",
							"postman.setEnvironmentVariable(\"client_secret\", client_secret);",
							"postman.setEnvironmentVariable(\"authorization\", authorization);",
							"postman.setEnvironmentVariable(\"domain_name\", domain);"
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"type": "text/javascript",
						"exec": [
							"tests[\"Authentication\"] = responseCode.code !== 401;",
							"",
							"if(tests[\"Authentication\"]){",
							"    ",
							"    tests[\"Set random paths\"] = responseCode.code === 200;",
							"    ",
							"    if(tests[\"Set random paths\"]){",
							"        var fileNumber = 1;",
							"        var folderString = \"\";",
							"        var fileString = \"\";",
							"        var string = \"\";",
							"        ",
							"        for(i = 0; i < 4; i++){",
							"            for(j = (9 * i); j < (9 * i) + 8; j++){",
							"                string += responseBody[j];",
							"            }",
							"            ",
							"            if(i % 2 === 0){",
							"                folderString = \"Shared/\" + string;",
							"                postman.setEnvironmentVariable(\"folder_\" + fileNumber + \"_path\", folderString);",
							"            }",
							"            else{",
							"                fileString = folderString + \"/\" + string + \".txt\";",
							"                postman.setEnvironmentVariable(\"file_\" + fileNumber + \"_path\",  fileString);",
							"                ",
							"                fileNumber++;",
							"            }",
							"            ",
							"            string = \"\";",
							"        }",
							"        ",
							"        for(j = (9 * 4); j < (9 * 4) + 8; j++){",
							"            string += responseBody[j];",
							"        }",
							"        ",
							"        postman.setEnvironmentVariable(\"user_name\",  string);",
							"        string = \"\";",
							"        ",
							"        for(j = (9 * 5); j < (9 * 5) + 8; j++){",
							"            string += responseBody[j];",
							"        }",
							"        ",
							"        postman.setEnvironmentVariable(\"namespace_name\",  string);",
							"    }",
							"    ",
							"    ",
							"}"
						]
					}
				}
			],
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://www.random.org/strings/?num=6&len=8&digits=on&upperalpha=on&loweralpha=on&unique=on&format=plain&rnd=new",
					"protocol": "https",
					"host": [
						"www",
						"random",
						"org"
					],
					"path": [
						"strings",
						""
					],
					"query": [
						{
							"key": "num",
							"value": "6"
						},
						{
							"key": "len",
							"value": "8"
						},
						{
							"key": "digits",
							"value": "on"
						},
						{
							"key": "upperalpha",
							"value": "on"
						},
						{
							"key": "loweralpha",
							"value": "on"
						},
						{
							"key": "unique",
							"value": "on"
						},
						{
							"key": "format",
							"value": "plain"
						},
						{
							"key": "rnd",
							"value": "new"
						}
					]
				},
				"description": "This method clears all variables"
			},
			"response": []
		}
	],
	"variable": [
		{
			"key": "folder_1_path",
			"value": "",
			"type": "string"
		}
	]
}