{
	"info": {
		"_postman_id": "aad1b2e1-9473-432e-abf6-d01d00e09f6c",
		"name": "Partner Mode API project",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "create_doc",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "3495bb85-613b-4f4c-9754-d317212155cd",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "0e5c348e-c27e-47bf-8fe2-15cfdbcd9f08",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\"user\": {\n        \"email\": \"steven.miller@yourcompany.com\",\n        \"firstname\": \"Steven\",\n        \"lastname\": \"Miller\",\n        \"userId\": \"{{user_id}}\",\n        \"company\": \"api_test\"\n    },\n    \"title\": \"SMASHDOCs api test document\",\n    \"subtitle\": \"Subtitle of test document\",\n    \"filename\": \"Filename of test document\",\n    \"footer\": \"Footer of test document\",\n    \"description\": \"auto description\",\n    \"groupId\": \"{{group}}\",\n    \"userRole\": \"approver\",\n    \"sectionHistory\": true,\n    \"documentExportDuplicate\": true,\n    \"supplemental\": \"partner specific information\",\n    \"status\": \"draft\"\n    }"
				},
				"url": {
					"raw": "{{domain}}/partner/documents/create",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"documents",
						"create"
					]
				},
				"description": "The following information must be passed along in the API call:\n\n    user - nested object containing information about the user\n        userId - id of the user in the partner system\n        email - the user’s email address (max. 150 chars)\n        firstname (max. 150 chars)\n        lastname (max. 150 chars)\n        company - the user’s company name (max. 150 chars)\n        language - the user’s language can be de_DE, en_EN, ru_RU or fr_CA\n        title - the document title (max. 200 chars)\n\n    description (max. 400 chars)\n    userRole (SMASHDOCs role)\n    groupId (partner system group to which the document will belong to)\n\nOptional fields:\n\n    sectionHistory - allowed to see section history (SMASHDOCs right).\n    documentExportDuplicate - allowed to export a document.\n    supplemental - information which is stored by SMASHDOCs but never evaluated. This field can be used to save and retrieve partner specific information (max. 400 chars)\n    status - gives possiblity to create the document in draft (default) or review mode.\n    admin - gives SMASHDOCs admin right for this document to the creator\n    subtitle (max. 300 chars)\n    filename (max. 200 chars)\n    footer - decoration element appeared in the bottom, e.g. in exported word document\n    sampleId - sdox template id"
			},
			"response": []
		},
		{
			"name": "organization_by_access_token",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"id": "664e5fdf-b6c6-4f05-9e1f-ea38b8cb3073",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "test",
					"script": {
						"id": "c5cd90c6-4e80-4449-96d6-7fb44f79ff4e",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}",
						"type": "text"
					},
					{
						"key": "Content-Type",
						"value": "{{content_type}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"token\": \"{{one_time_access_token}}\"\n}\n"
				},
				"url": {
					"raw": "{{domain}}/partner/accesstoken",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"accesstoken"
					]
				},
				"description": "oneTimeAccessToken should be sent in Body Request.\nResponse contains: \n- userId;\n- userAccessToken;\n- apiKey;\n- organizationId"
			},
			"response": []
		},
		{
			"name": "open_doc",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "84d7c2c9-2765-41f0-a98e-16e2f8f2198a",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "514ac2de-69a7-4c99-a6fa-929990bc6b31",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"value": "{{content_type}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\"sectionHistory\": true,\n\"userRole\":\"approver\",\n\"user\":\n\t{\n\t\"firstname\":\"Steven\",\n\t\"company\":\"api_test\",\n\t\"userId\":\"{{user_id}}\",\n\t\"email\":\"steven.miller@yourcompany.com\",\n\t\"lastname\":\"Miller\"\n\t}\n}\n"
				},
				"url": {
					"raw": "{{domain}}/partner/documents/{{doc_id}}",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"documents",
						"{{doc_id}}"
					]
				},
				"description": "All relevant user information needs to be sent with the request. \nThe provided user information will then be updated and the current document access link returned."
			},
			"response": []
		},
		{
			"name": "user_id",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "0c87542a-d1ed-4279-b94f-dab1c0a04257",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "1078adf3-d1e2-414a-8407-b22eba51aaa3",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"protocolProfileBehavior": {
				"disableBodyPruning": true
			},
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "{{domain}}/partner/users/{{user_id}}",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"users",
						"{{user_id}}"
					]
				},
				"description": "The partner system can obtain information about the user through this endpoint. \nTo receive this information it`s necessary to paste the user’s ID in the link."
			},
			"response": []
		},
		{
			"name": "user_id",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "0ba6a9fb-d834-4d8d-ba95-426f0457f8b5",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "7a73c5a0-b895-436c-8d0d-1ca14d627e73",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"company\": \"api_test\",\n    \"email\": \"mike.miller@yourcompany.com\",\n    \"firstname\": \"New\",\n    \"lastname\": \"user\"\n}"
				},
				"url": {
					"raw": "{{domain}}/partner/users/{{new_user_id}}",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"users",
						"{{new_user_id}}"
					]
				},
				"description": "This endpoint upserts a user"
			},
			"response": []
		},
		{
			"name": "get_organization",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"id": "4df01ab5-4244-4369-a1d3-4a9ab13a1234",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "test",
					"script": {
						"id": "465238d4-c897-4191-95be-780d2264d22e",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}",
						"type": "text"
					},
					{
						"key": "Content-Type",
						"value": "{{content_type}}",
						"type": "text"
					},
					{
						"key": "authorization",
						"value": "{{userAccessToken}}",
						"type": "text"
					}
				],
				"url": {
					"raw": "{{domain}}/organization/{{organization_Id}}",
					"host": [
						"{{domain}}"
					],
					"path": [
						"organization",
						"{{organization_Id}}"
					]
				},
				"description": "The partner system can obtain information about the organiztion through this endpoint. \nTo receive this information it`s necessary to paste the organiztion's ID in the link."
			},
			"response": []
		},
		{
			"name": "doc_metadata",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "fdd87526-e40f-4c51-807b-42767181a246",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "55192fdc-b38b-4457-a50a-2df97dec05c8",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n        \"title\": \"Changed API title\",\n        \"description\": \"Changed API desc\",\n        \"subtitle\": \"Changed API subtitle\",\n        \"footer\": \"Changed API footer\",\n        \"tags\": [\"API_tag1\", \"API_Tag2\"],\n        \"supplemental\": \"partner specific information\"\n    }"
				},
				"url": {
					"raw": "{{domain}}/partner/documents/{{doc_id}}/metadata",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"documents",
						"{{doc_id}}",
						"metadata"
					]
				},
				"description": "A document's metadata can be changed by using this API endpoint. Metadata fileds are e.g. document title, description, filename, …."
			},
			"response": []
		},
		{
			"name": "word_templates",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "5c0ddcdd-4dcf-415c-bd9e-17cf10017442",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "856c8277-f85a-4131-8099-0e390318a922",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"value": "{{content_type}}",
						"type": "text"
					}
				],
				"url": {
					"raw": "{{domain}}/partner/templates/word",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"templates",
						"word"
					]
				},
				"description": "This API-endpoint returns a list of available word templates with id, name and description."
			},
			"response": []
		},
		{
			"name": "sdox_templates",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "fcb0921e-575b-42b2-8864-770d7775914e",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "dff6e836-b371-447f-84a4-71a896e48bda",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"url": {
					"raw": "{{domain}}/partner/templates/sdox",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"templates",
						"sdox"
					]
				},
				"description": "This API-endpoint returns a list of available sdox templates with id, name, description and pd_settings"
			},
			"response": []
		},
		{
			"name": "duplicate_doc",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "547e4d1f-fdb4-49fe-a70c-c2cb569f43e0",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "45b7d05f-2d2d-4899-9b7e-256886985b31",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"creatorUserId\": \"{{user_id}}\",\n    \"description\": \"\",\n    \"title\": \"API duplicate empty\"\n}"
				},
				"url": {
					"raw": "{{domain}}/partner/documents/{{doc_id}}/duplicate",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"documents",
						"{{doc_id}}",
						"duplicate"
					]
				},
				"description": "Documents can be duplicated for a user who will be stored as creator of the document’s copy. A document can only be duplicated, if the document is:\n- in review mode or, if it is in draft mode, the user is creator of the source document;\n- not archived"
			},
			"response": []
		},
		{
			"name": "doc_list_by_user_id",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "58dd1e24-abcd-460e-b5c6-d9b68f5a9c12",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "f7374a7c-f9f8-4c9d-8741-e80b8611419a",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"url": {
					"raw": "{{domain}}/partner/documents/unseen/list?userId={{user_id}}",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"documents",
						"unseen",
						"list"
					],
					"query": [
						{
							"key": "userId",
							"value": "{{user_id}}"
						}
					]
				},
				"description": "To fetch all documents belonging to a specific group, 3 different variations of this API call exist. \nSending just the user id: receive all draft documents from all groups to which the user belongs to (but no shared docs) that have been created by the user."
			},
			"response": []
		},
		{
			"name": "doc_list_by_group_and_user_id",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "65850cdc-524a-4d9f-a130-ecd2d5ca22a3",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "d29705a5-71b3-4fbd-b412-a45a9bbe5b57",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"url": {
					"raw": "{{domain}}/partner/documents/unseen/list?userId={{user_id}}&groupId={{group}}",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"documents",
						"unseen",
						"list"
					],
					"query": [
						{
							"key": "userId",
							"value": "{{user_id}}"
						},
						{
							"key": "groupId",
							"value": "{{group}}"
						}
					]
				},
				"description": "To fetch all documents belonging to a specific group, 3 different variations of this API call exist. \n\nSending the user id and group id (partner system): for documents belonging to the group, receive all draft documents (documents have not been shared yet) that are created by the given user and all review documents (shared documents)."
			},
			"response": []
		},
		{
			"name": "doc_list_by_groupId",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "ada0f462-8fbe-4b7a-b7ba-c1604eb4f292",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "bfb65958-a210-4b12-9a60-9519a6c71c27",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"url": {
					"raw": "{{domain}}/partner/documents/list?groupId={{group}}",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"documents",
						"list"
					],
					"query": [
						{
							"key": "groupId",
							"value": "{{group}}"
						}
					]
				},
				"description": "To fetch all documents belonging to a specific group, 3 different variations of this API call exist. \n\nSending just the group id: receive just the review documents for the given group"
			},
			"response": []
		},
		{
			"name": "doc_list_with_deletion_process_false",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "22afe437-7081-4844-adda-84b8d5e7b227",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "cc5a491e-4468-43db-a9a4-95ad592d56aa",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"url": {
					"raw": "{{domain}}/partner/documents/list?userId={{user_id}}&groupId={{group}}&withDeletionProcess=false",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"documents",
						"list"
					],
					"query": [
						{
							"key": "userId",
							"value": "{{user_id}}"
						},
						{
							"key": "groupId",
							"value": "{{group}}"
						},
						{
							"key": "withDeletionProcess",
							"value": "false"
						}
					]
				},
				"description": "If send this endpoint with withDeletionProcess param set to true only documents with active deletion process will be received, if the value is false documents with active deletion process are filtered"
			},
			"response": []
		},
		{
			"name": "unseen_count",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "fc4e59af-d7f4-4b65-8671-8463c1b8e5ad",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "d7b0f3c0-f277-4a61-bf8f-f40ad45816c6",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"url": {
					"raw": "{{domain}}/partner/documents/unseen/count?userId={{user_id}}",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"documents",
						"unseen",
						"count"
					],
					"query": [
						{
							"key": "userId",
							"value": "{{user_id}}"
						}
					]
				},
				"description": "The count of documents with unseen changes in section content or conversations for a user can be fetched. \nReturned are counts of:\n\n- documents with changes in section content;\n- documents with changes in conversation;\n- documents with any changes\nThese counts are returned for the total amount of documents and itemised for each group."
			},
			"response": []
		},
		{
			"name": "start_review",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "837bae4a-77bd-46cc-8adb-bd8ed09a83ad",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "c10fd125-dfd4-49bb-85c1-5a22cc980b9b",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "{{domain}}/partner/documents/{{doc_id}}/review",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"documents",
						"{{doc_id}}",
						"review"
					]
				},
				"description": "Via this API endpoint, a document can be set to review mode. This enables other users, besides the creator, to share the document with other users."
			},
			"response": []
		},
		{
			"name": "archive_doc",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "340a9b0a-b792-41d4-82ad-dc7875853c8a",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "2907a15f-5c1e-494f-9ff9-66fc8f3253c7",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "{{domain}}/partner/documents/{{doc_id}}/archive",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"documents",
						"{{doc_id}}",
						"archive"
					]
				},
				"description": "The SMASHDOCs partner API offers the possiblity to mark a document as archived."
			},
			"response": []
		},
		{
			"name": "unarchive_doc",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "9aeaf1a8-ae2d-485b-bd82-3ea43d99c89c",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "9a5e9c0c-bd44-4e18-8bc4-85d119ed3fa1",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "{{domain}}/partner/documents/{{doc_id}}/unarchive",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"documents",
						"{{doc_id}}",
						"unarchive"
					]
				},
				"description": "The SMASHDOCs partner API offers the possiblity to mark a document as unarchived."
			},
			"response": []
		},
		{
			"name": "delete_doc",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "0c5ef40a-cd5e-4603-9942-6d375638d5ec",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "5e6b9acf-c1f2-4562-a1a1-2ee3f09acbc5",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "DELETE",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "{{domain}}/partner/documents/{{doc_id}}",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"documents",
						"{{doc_id}}"
					]
				},
				"description": "This endpoint deletes a SMASHDOCs document by a provided ID."
			},
			"response": []
		},
		{
			"name": "get_deletion_process_true",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "2c4dd6e4-6bf1-4eda-9de9-111a697a8350",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "d028c488-f79b-408c-8b73-0ea9b1990323",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"url": {
					"raw": "{{domain}}/partner/documents/list?userId={{user_id}}&groupId={{group}}&withDeletionProcess=true",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"documents",
						"list"
					],
					"query": [
						{
							"key": "userId",
							"value": "{{user_id}}"
						},
						{
							"key": "groupId",
							"value": "{{group}}"
						},
						{
							"key": "withDeletionProcess",
							"value": "true"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "delete_review_doc",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "6b2b97fc-9033-43a0-b420-1f7f92093e4b",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "79dca6c3-8d4d-4ec4-9e16-2974cad5115b",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"userId\": \"{{user_id}}\",\n    \"message\": \"not immediate deletion\",\n    \"immediate\": false\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{domain}}/partner/documents/{{doc_id}}/deletion-process",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"documents",
						"{{doc_id}}",
						"deletion-process"
					]
				},
				"description": "This endpoint deletes a SMASHDOCs review document with a deletion process.\n\nThe following information must be passed along in the API call:\n\n- userId - partner user id\nOptional attributes:\n\n- immediate - if set true document will be deleted immediately, otherwise in 15 days;\n- message - comment for all document users"
			},
			"response": []
		},
		{
			"name": "cancel_deletion_process",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "48767dfc-ebc6-438b-9f4b-98ade328de28",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "d9167f04-4a17-471b-931b-1d1256229cb4",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "DELETE",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"message\": \"I do not want to delete it\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{domain}}/partner/documents/{{doc_id}}/deletion-process",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"documents",
						"{{doc_id}}",
						"deletion-process"
					]
				},
				"description": "Cancels a deletion process for a SMASHDOCs review document.\n\nOptional attributes:\n\n- message - comment for all document users"
			},
			"response": []
		},
		{
			"name": "sdox_import",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "31251f24-98ff-45ff-a84e-4b8068a32486",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "7c01871d-3bf1-4cbc-b112-d70e989c0f21",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "file",
							"type": "file",
							"src": []
						},
						{
							"key": "data",
							"value": "{\n              \"user\": {\n                 \"email\": \"steven.miller@yourcompany.com\",\n                 \"firstname\": \"Steven\",\n                 \"lastname\": \"Miller\",\n                 \"userId\": \"postman\",\n                 \"company\": \"yourcompany\"\n              },\n              \"title\": \"API import SDOX\",\n              \"description\": \"\",\n              \"groupId\": \"g1\",\n              \"userRole\": \"approver\",\n              \"sectionHistory\": true,\n              \"documentExportDuplicate\": true,\n              \"status\": \"draft\"\n          }",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "{{domain}}/partner/imports/sdxml/upload",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"imports",
						"sdxml",
						"upload"
					]
				},
				"description": "SMASHDOCs can be created by uploading a SMASHDOCs XML file (SDXML). The SDXML import endpoint takes a zip file containing the SDXML file (sd.xml) as well as the images referenced in the XML. \n\nThe response contains the document access link, documentId and userIdSD.\n\nIn order to send the metadata, user information and the SDXML zip file in one single request, the request needs to be sent as multipart/form-data (content-type) which contains the two fields file and data:\n\nfile - sd xml zip file\ndata - json string which contains all fields that are also used in /partner/documents/create"
			},
			"response": []
		},
		{
			"name": "word_import",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "b253fc87-6db7-4cde-9094-e79e473e18fd",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "dd73ab77-3f87-49ba-a30d-3079bdbc88a4",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_upload}}"
					}
				],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "file",
							"type": "file",
							"src": []
						},
						{
							"key": "data",
							"value": "{\n              \"user\": {\n                 \"email\": \"steven.miller@yourcompany.com\",\n                 \"firstname\": \"Steven\",\n                 \"lastname\": \"Miller\",\n                 \"userId\": \"{{user_id}}\",\n                 \"company\": \"yourcompany\"\n              },\n              \"title\": \"API import word\",\n              \"description\": \"word import\",\n              \"filename\": \"word filename\",\n              \"subtitle\": \"word subtitle\",\n              \"footer\": \"word footer\",\n              \"groupId\": \"g1\",\n              \"userRole\": \"approver\",\n              \"sectionHistory\": true,\n              \"documentExportDuplicate\": true,\n              \"status\": \"draft\"\n          }",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "{{domain}}/partner/imports/word/upload",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"imports",
						"word",
						"upload"
					]
				},
				"description": "Creating a SMASHDOCs document out of a MS Word file (.docx only) works almost similar to the create document api call. Besides providing the metadata of the document and the user information the additional MS Word file is required. \n\nThe response contains the document access link.\n\nIn order to send the metadata, user information and MS Word file in one single request, the request needs to be sent as multipart/form-data (content-type) which contains the two fields file and data:\n\n- file - docx file\n- data - json string which contains all fields that are also used in /partner/documents/create"
			},
			"response": []
		},
		{
			"name": "sdox_export",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "4113ccbd-06ee-4dd1-979a-2fd3a48b1e83",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "7ed90039-5f9c-4e30-a86e-0c1a5118e4f9",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\"userId\": \"{{user_id}}\" }"
				},
				"url": {
					"raw": "{{domain}}/partner/documents/{{doc_id}}/export/sdxml",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"documents",
						"{{doc_id}}",
						"export",
						"sdxml"
					]
				},
				"description": "A document can be exported to a SDXML-zip-file. This is a zip that contains one xml-file sd.xml and a folder images. The same structure is accepted in the import xml api call.\n\nIn the request payload, the field userId must be set in the request payload."
			},
			"response": []
		},
		{
			"name": "parsx_export_imported_sdox",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "5d01ed91-9e0d-48e0-8f80-7008d6791f5f",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "2f566747-4ba7-4add-a3e2-3142f2e32676",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"type": "text",
						"value": "{{content_type}}"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\"userId\": \"{{user_id}}\" }"
				},
				"url": {
					"raw": "{{domain}}/partner/documents/{{doc_import_sdox_id}}/export/parsx",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"documents",
						"{{doc_import_sdox_id}}",
						"export",
						"parsx"
					]
				},
				"description": "A document can be exported to a Parsx-zip-file. This is a zip that contains one xml-file parsx.xml and a folder images. The same structure is accepted in the import xml api call.\n\nIn the request payload, the field userId must be set in the request payload."
			},
			"response": []
		},
		{
			"name": "word_export_imported_sdox",
			"event": [
				{
					"listen": "test",
					"script": {
						"id": "f247ce11-045a-4295-a633-9946ed7df54f",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				},
				{
					"listen": "prerequest",
					"script": {
						"id": "9550d96c-10e7-446a-9d45-7b10912ca7a5",
						"exec": [
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "{{token}}",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [
					{
						"key": "x-client-id",
						"value": "{{x-api-key}}"
					},
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"value": "{{content_type}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"userId\": \"{{user_id}}\",\n\t\"templateId\": \"{{template_id}}\",\n\t\"settings\": {}\n}"
				},
				"url": {
					"raw": "{{domain}}/partner/documents/{{doc_id}}/export/word",
					"host": [
						"{{domain}}"
					],
					"path": [
						"partner",
						"documents",
						"{{doc_id}}",
						"export",
						"word"
					]
				}
			},
			"response": []
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"id": "6d82a7cc-4fe8-4ec7-8622-f4e0eb4be25e",
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"id": "6bb6428e-27e8-4561-9a26-f56a0cefcda0",
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"protocolProfileBehavior": {}
}