Summary
Imports a project document from a JSON document
Description
Imports a project document from a JSON document
Route
POST /automation-studio/projects/import
Roles
admin
apiwrite
designer
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
options |
object |
yes |
Project import options |
Copied to Clipboard
{
"title": "options",
"type": "object",
"properties": {
"project": {
"$ref": "projects-export-v1"
},
"conflictMode": {
"type": "string",
"enum": [
"overwrite",
"insert-new"
]
},
"assignNewReferences": {
"type": "boolean",
"description": "This being true would indicate that the imported project is part of a clone action.",
"default": false
}
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
response |
object |
Import result |
Copied to Clipboard
{
"message": "ut incididunt nulla",
"data": {
"_id": "4321abcdef694aa79dae47ad",
"iid": 62287815,
"name": "Firewall Service Provisioning",
"description": "This project is comprised of two major elements: 1) Workflows handling customer self-service, and 2) Workflows used by operations teams to provision service internally",
"members": [
{
"type": "group",
"reference": "62a1f3d2ebedfc54e6e0065c",
"role": "operator",
"missing": false,
"username": "aliqua consequat cillum deserunt",
"name": "magna cillum in",
"provenance": "laborum aliqua officia"
},
{
"type": "account",
"reference": "4321abcdef694aa79dae47ad",
"role": "editor",
"missing": false,
"username": "cupidatat non nulla reprehenderit enim",
"name": "anim ut do deserunt laborum",
"provenance": "velit anim cillum nisi pariatur"
},
{
"type": "account",
"reference": "5cb7b531d06cceb89fd21b1c",
"role": "editor",
"missing": false,
"username": "deserunt Duis ipsum pariatur",
"name": "dolor ipsum in ullamco deserunt",
"provenance": "veniam adipisicing et commodo"
}
],
"accessControl": {
"read": [
"nisi culpa magna cillum dolor",
"Lorem et deserunt"
],
"write": [
"Duis dolor",
"ex veniam velit"
],
"execute": [
"Duis tempor veniam nostrud ex"
],
"manage": [
"ex ipsum proident velit cupidatat",
"dolore",
"anim ullamco sit ad veniam"
]
},
"componentIidIndex": 57789726,
"components": [
{
"iid": 32779420,
"type": "transformation",
"reference": "ad dolor dolore",
"folder": "/"
},
{
"iid": 17508599,
"type": "transformation",
"reference": "anim ad sed",
"folder": "/"
},
{
"iid": 81307696,
"type": "mopCommandTemplate",
"reference": "adipisicing occaecat",
"folder": "/"
}
],
"created": "2019-11-25T22:51:39.201Z",
"createdBy": {
"_id": "4321abcdef694aa79dae47ad",
"username": null,
"provenance": "ea nisi Lorem",
"missing": true
},
"lastUpdated": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": {
"_id": "62a1f3d2ebedfc54e6e0065c",
"username": null,
"provenance": "eiusmod dolor",
"missing": false
},
"versionHistory": [
{
"versionNumber": -58131989,
"commitMessage": "reprehenderit Excepteur dolor",
"author": "Lorem sunt eiusmod sit",
"branchName": "enim ut in minim irure"
},
{
"versionNumber": 99763808,
"commitMessage": "amet ut aliquip dolor velit",
"author": "sunt eu",
"branchName": "id mollit quis pariatur"
}
],
"gitConfiguration": {
"connectionType": "GitLab",
"repositoryPath": "reprehenderit Excepteur Ut id",
"branchName": "velit",
"projectPath": "ex dolor Excepteur laboris ipsum"
}
}
}
Copied to Clipboard
{
"title": "response",
"type": "object",
"properties": {
"message": {
"type": "string"
},
"data": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "projects-http"
}
]
},
"metadata": {
"type": "object"
}
}
}