{
	"info": {
		"_postman_id": "fff55031-5c90-4cc1-bc5f-4d6f77232ca1",
		"name": "Design Hub API",
		"description": "Tested with version 25.1.x\n\nSee [the complete documentation](https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md) for optional/required parameters and explanations.\n\nBefore using any API requests,\n\n- obtain a Design Hub REST API key ( [Authorize requests](https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md#src-17272767-designhubdeveloperguide-restapi-authorizerequests) ) and set it as the API key variable of Postman for the Authorization tab of the Collection.\n    \n- set Design Hub's server URL as the server address variable of Postman",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "28958356"
	},
	"item": [
		{
			"name": "user details",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{server address}}/api/user",
					"host": [
						"{{server address}}"
					],
					"path": [
						"api",
						"user"
					]
				},
				"description": "see [https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md](https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md)"
			},
			"response": []
		},
		{
			"name": "get projects",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{server address}}/api/projects",
					"host": [
						"{{server address}}"
					],
					"path": [
						"api",
						"projects"
					]
				},
				"description": "see [https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md](https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md)"
			},
			"response": []
		},
		{
			"name": "get hypotheses",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{server address}}/api/hypotheses?project_id={{project_id}}",
					"host": [
						"{{server address}}"
					],
					"path": [
						"api",
						"hypotheses"
					],
					"query": [
						{
							"key": "project_id",
							"value": "{{project_id}}",
							"description": "number\n"
						}
					]
				},
				"description": "see [https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md](https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md)"
			},
			"response": []
		},
		{
			"name": "get design sets",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{server address}}/api/designsets?project_id={{project_id}}",
					"host": [
						"{{server address}}"
					],
					"path": [
						"api",
						"designsets"
					],
					"query": [
						{
							"key": "project_id",
							"value": "{{project_id}}",
							"description": "command separated list of project_id (numbers)"
						}
					]
				},
				"description": "see [https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md](https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md)"
			},
			"response": []
		},
		{
			"name": "add tags",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"command\": \"Add\",\n    \"tags\": [\"tag\"]\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{server address}}/api/tags/:content_id",
					"host": [
						"{{server address}}"
					],
					"path": [
						"api",
						"tags",
						":content_id"
					],
					"variable": [
						{
							"key": "content_id",
							"value": "1be0b48a4be5c4a45786ac555644bc9a4be7372c",
							"description": "e.g. 1be0b48a4be5c4a45786ac555644bc9a4be7372c"
						}
					]
				},
				"description": "See [https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md](https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md)"
			},
			"response": []
		},
		{
			"name": "add additionalfield value",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"name\": \"Task\",\n    \"value\": \"\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{server address}}/api/compounds/:content_or_virtual_id/additionalfield",
					"host": [
						"{{server address}}"
					],
					"path": [
						"api",
						"compounds",
						":content_or_virtual_id",
						"additionalfield"
					],
					"variable": [
						{
							"key": "content_or_virtual_id",
							"value": "",
							"description": "the content ID, virtual ID or substance ID of the selected compound"
						}
					]
				},
				"description": "See [https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md](https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md)"
			},
			"response": []
		},
		{
			"name": "post data",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"column\": \"My column name\",\n    \"value\": \"my value\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{server address}}/api/compounds/:content_or_virtual_id/data",
					"host": [
						"{{server address}}"
					],
					"path": [
						"api",
						"compounds",
						":content_or_virtual_id",
						"data"
					],
					"variable": [
						{
							"key": "content_or_virtual_id",
							"value": "0727d39214101fc9e0861f257933dec298f10e81",
							"description": "e.g. 1be0b48a4be5c4a45786ac555644bc9a4be7372c"
						}
					]
				},
				"description": "see [https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md](https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md)"
			},
			"response": []
		},
		{
			"name": "attach comment or file to compound",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{server address}}/api/compounds/:compound_content_id/attach",
					"host": [
						"{{server address}}"
					],
					"path": [
						"api",
						"compounds",
						":compound_content_id",
						"attach"
					],
					"variable": [
						{
							"key": "compound_content_id",
							"value": "",
							"description": "content_id of the selected compound"
						}
					]
				},
				"description": "see [https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md](https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md)"
			},
			"response": [
				{
					"name": "attach file to compound",
					"originalRequest": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"files\": [{\n        \"fileName\": \"synthesis-plan.cdxml\",\n        \"content\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?><!DOCTYPE CDXML SYSTEM \\\"https://static.chemistry.revvitycloud.com/cdxml/CDXML.dtd\\\"><CDXML><page id=\\\"1\\\"><fragment id=\\\"2\\\"><n id=\\\"3\\\" p=\\\"10 11.57\\\"/></fragment><fragment id=\\\"4\\\"><n id=\\\"5\\\" p=\\\"125.29 10\\\" Element=\\\"79\\\"/></fragment><scheme id=\\\"6\\\"><step id=\\\"7\\\" ReactionStepReactants=\\\"2\\\" ReactionStepProducts=\\\"4\\\" ReactionStepArrows=\\\"8\\\"/></scheme><arrow id=\\\"8\\\" ArrowheadHead=\\\"Full\\\" HeadSize=\\\"1400.0\\\" ArrowheadCenterSize=\\\"1400.0\\\" HeadWidth=\\\"420.0\\\" Head3D=\\\"105.69 10.78 0\\\" Tail3D=\\\"60.20 10.78 0\\\"/></page></CDXML>\",\n        \"mimeType\": \"text/xml\"\n    }],\n    \"visibility\": \"internal\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{server address}}/api/compounds/:compound_content_id/attach",
							"host": [
								"{{server address}}"
							],
							"path": [
								"api",
								"compounds",
								":compound_content_id",
								"attach"
							],
							"variable": [
								{
									"key": "compound_content_id",
									"value": "",
									"description": "content_id of the selected compound"
								}
							]
						}
					},
					"_postman_previewlanguage": null,
					"header": null,
					"cookie": [],
					"body": null
				},
				{
					"name": "attach comment or file to compound",
					"originalRequest": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"comment\": \"Working on this compound\",\n    \"visibility\": \"internal\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{server address}}/api/compounds/:compound_content_id/attach",
							"host": [
								"{{server address}}"
							],
							"path": [
								"api",
								"compounds",
								":compound_content_id",
								"attach"
							],
							"variable": [
								{
									"key": "compound_content_id",
									"value": "",
									"description": "content_id of the selected compound"
								}
							]
						}
					},
					"_postman_previewlanguage": "",
					"header": [],
					"cookie": [
						{
							"expires": "Invalid Date"
						}
					],
					"body": ""
				}
			]
		},
		{
			"name": "compound export",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{server address}}/api/compounds/export?limit=1000&offset=0&format=smiles&project_id={{project_id}}",
					"host": [
						"{{server address}}"
					],
					"path": [
						"api",
						"compounds",
						"export"
					],
					"query": [
						{
							"key": "limit",
							"value": "1000"
						},
						{
							"key": "offset",
							"value": "0"
						},
						{
							"key": "format",
							"value": "smiles"
						},
						{
							"key": "project_id",
							"value": "{{project_id}}"
						}
					]
				},
				"description": "see [https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md](https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md)"
			},
			"response": []
		},
		{
			"name": "get assigned compounds matching SSS",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{server address}}/api/compounds/export?limit=1&format=cxsmiles&project_id={{project_id}}&structure=[%237]-1-[%236]=[%236]-[%236]=[%236]-1&assignee_username=id@company.com&searchType=sss",
					"host": [
						"{{server address}}"
					],
					"path": [
						"api",
						"compounds",
						"export"
					],
					"query": [
						{
							"key": "limit",
							"value": "1"
						},
						{
							"key": "offset",
							"value": "0",
							"disabled": true
						},
						{
							"key": "format",
							"value": "cxsmiles"
						},
						{
							"key": "project_id",
							"value": "{{project_id}}",
							"description": "e.g 1,2,3"
						},
						{
							"key": "structure",
							"value": "[%237]-1-[%236]=[%236]-[%236]=[%236]-1",
							"description": "e.g. [#7]-1-[#6]=[#6]-[#6]=[#6]-1"
						},
						{
							"key": "assignee_username",
							"value": "id@company.com",
							"description": "e.g. id@company.com"
						},
						{
							"key": "status",
							"value": "",
							"description": "e.g. Ready for review",
							"disabled": true
						},
						{
							"key": "registration_ids",
							"value": "",
							"description": "e.g. CXN00001,VXN0002",
							"disabled": true
						},
						{
							"key": "searchType",
							"value": "sss",
							"description": "e.g. sss or sim or dup"
						}
					]
				},
				"description": "see [https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md](https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md)"
			},
			"response": []
		},
		{
			"name": "find duplicates",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{server address}}/api/compounds/export?limit=10&format=cxsmiles&structure=CC(C)N1N%3DC(C2%3DC(N)N%3DCN%3DC12)C1%3DCC(F)%3DC(C%3DC1)C%23N&searchType=dup",
					"host": [
						"{{server address}}"
					],
					"path": [
						"api",
						"compounds",
						"export"
					],
					"query": [
						{
							"key": "limit",
							"value": "10"
						},
						{
							"key": "offset",
							"value": "0",
							"disabled": true
						},
						{
							"key": "format",
							"value": "cxsmiles"
						},
						{
							"key": "project_id",
							"value": "{{project_id}}",
							"description": "e.g 1,2,3",
							"disabled": true
						},
						{
							"key": "structure",
							"value": "CC(C)N1N%3DC(C2%3DC(N)N%3DCN%3DC12)C1%3DCC(F)%3DC(C%3DC1)C%23N",
							"description": "e.g. [#7]-1-[#6]=[#6]-[#6]=[#6]-1, but url encoded"
						},
						{
							"key": "assignee_username",
							"value": "id@company.com",
							"description": "e.g. id@company.com",
							"disabled": true
						},
						{
							"key": "status",
							"value": "",
							"description": "e.g. Ready for review",
							"disabled": true
						},
						{
							"key": "registration_ids",
							"value": "",
							"description": "e.g. CXN00001,VXN0002",
							"disabled": true
						},
						{
							"key": "searchType",
							"value": "dup",
							"description": "e.g. sss or sim or dup"
						}
					]
				},
				"description": "see [https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md](https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md)"
			},
			"response": []
		},
		{
			"name": "import compounds and data",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"exec": [
							""
						],
						"type": "text/javascript",
						"packages": {}
					}
				},
				{
					"listen": "test",
					"script": {
						"exec": [
							""
						],
						"type": "text/javascript",
						"packages": {}
					}
				}
			],
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "[]",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{server address}}/api/import/rawdata",
					"host": [
						"{{server address}}"
					],
					"path": [
						"api",
						"import",
						"rawdata"
					]
				},
				"description": "see [https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md](https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md)"
			},
			"response": [
				{
					"name": "import private ideas",
					"originalRequest": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\n    {\n        \"external_id\": \"DH-import-Project1-idea1\",\n        \"source\": \"aspirin\",\n        \"owner_username\": \"id@company.com\",\n        \"project_id\": 1,\n        \"hypothesis_title\": \"Generated ideas for NSB5\",\n        \"designset_title\": \"run #1\",\n        \"visibility\": 0\n    }\n]",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{server address}}/api/import/rawdata",
							"host": [
								"{{server address}}"
							],
							"path": [
								"api",
								"import",
								"rawdata"
							]
						}
					},
					"_postman_previewlanguage": null,
					"header": null,
					"cookie": [],
					"body": null
				},
				{
					"name": "import compounds and data",
					"originalRequest": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\n    {\n        \"external_id\": \"DH-import-Project1-idea2\",\n        \"source\": \"aspirin\",\n        \"owner_username\": \"id@company.com\",\n        \"project_id\": 1,\n        \"visibility\": 0\n    }\n]",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{server address}}/api/import/rawdata",
							"host": [
								"{{server address}}"
							],
							"path": [
								"api",
								"import",
								"rawdata"
							]
						}
					},
					"_postman_previewlanguage": "",
					"header": [],
					"cookie": [
						{
							"expires": "Invalid Date"
						}
					],
					"body": ""
				},
				{
					"name": "import unorganized design compounds",
					"originalRequest": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\n    {\n        \"external_id\": \"DH-import-Project1-idea3\",\n        \"source\": \"aspirin\",\n        \"virtual_id\": \"VXN002\",\n        \"owner_username\": \"id@company.com\",\n        \"project_id\": 1,\n        \"visibility\": 1,\n        \"status_label\": \"Ready for review\"\n    }\n]",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{server address}}/api/import/rawdata",
							"host": [
								"{{server address}}"
							],
							"path": [
								"api",
								"import",
								"rawdata"
							]
						}
					},
					"_postman_previewlanguage": null,
					"header": null,
					"cookie": [],
					"body": null
				},
				{
					"name": "import into a design design set",
					"originalRequest": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\n    {\n        \"external_id\": \"DH-import-Project1-idea3\",\n        \"source\": \"aspirin\",\n        \"virtual_id\": \"VXN002\",\n        \"owner_username\": \"id@company.com\",\n        \"project_id\": 1,\n        \"visibility\": 1,\n        \"status_label\": \"Ready for review\"\n    }\n]",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{server address}}/api/import/rawdata",
							"host": [
								"{{server address}}"
							],
							"path": [
								"api",
								"import",
								"rawdata"
							]
						}
					},
					"_postman_previewlanguage": null,
					"header": null,
					"cookie": [],
					"body": null
				},
				{
					"name": "synchronize experimental data",
					"originalRequest": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\n    {\n        \"external_id\": \"CXN00001\",\n        \"substance_id\": \"CXN00001\",\n        \"virtual_id\": \"VXN002\",\n        \"source\": \"aspirin\",\n        \"owner_username\": \"id@company.com\",\n        \"project_id\": 1,\n        \"visibility\": 1,\n        \"raw_data\": {\n            \"EGFR IC50 (nM)\": 3210\n        }\n    }\n]",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{server address}}/api/import/rawdata",
							"host": [
								"{{server address}}"
							],
							"path": [
								"api",
								"import",
								"rawdata"
							]
						}
					},
					"_postman_previewlanguage": null,
					"header": null,
					"cookie": [],
					"body": null
				}
			]
		},
		{
			"name": "check import session status",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{server address}}/api/import/rawdata/status/:import_session_id",
					"host": [
						"{{server address}}"
					],
					"path": [
						"api",
						"import",
						"rawdata",
						"status",
						":import_session_id"
					],
					"variable": [
						{
							"key": "import_session_id",
							"value": "1",
							"description": "import session id obtained from /api/import/rawdata submission"
						}
					]
				},
				"description": "see [https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md](https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md)"
			},
			"response": []
		},
		{
			"name": "get import session errors",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "{{server address}}/api/import/rawdata/errors/:import_session_id",
					"host": [
						"{{server address}}"
					],
					"path": [
						"api",
						"import",
						"rawdata",
						"errors",
						":import_session_id"
					],
					"query": [
						{
							"key": "offset",
							"value": null,
							"description": "number of errors to skip from the beginning of the list. e.g. 0",
							"disabled": true
						},
						{
							"key": "limit",
							"value": null,
							"description": "maximum number of errors to return. e.g. 100",
							"disabled": true
						}
					],
					"variable": [
						{
							"key": "import_session_id",
							"value": "1",
							"description": "import session id obtained from /api/import/rawdata submission"
						}
					]
				},
				"description": "see [https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md](https://docs.chemaxon.com/display/docs/design-hub_developer-guide-rest-api.md)"
			},
			"response": []
		}
	],
	"auth": {
		"type": "apikey",
		"apikey": [
			{
				"key": "value",
				"value": "{{API key}}",
				"type": "string"
			},
			{
				"key": "key",
				"value": "X-API-KEY",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		}
	]
}