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": "reprehenderit",
"data": {
"_id": "5cb7b531d06cceb89fd21b1c",
"iid": 94186889,
"name": "Arista EOS Utilities",
"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": "account",
"reference": "5cb7b531d06cceb89fd21b1c",
"role": "owner",
"missing": true,
"username": "proident dolore consequat",
"name": "sit",
"provenance": "sit tempor elit minim cupidatat"
}
],
"accessControl": {
"read": [
"aliqua",
"enim ullamco ad",
"enim Excepteur fugiat ut",
"amet"
],
"write": [
"non enim minim dolore"
],
"execute": [
"officia voluptate aute esse sunt",
"elit minim sint incididunt quis",
"dolor",
"pariatur aute nulla magna consequat"
],
"manage": [
"sunt ea in sed",
"aute quis sit",
"consectetur ullamco Duis voluptate officia"
]
},
"componentIidIndex": 41123555,
"components": [
{
"iid": 82162158,
"type": "transformation",
"reference": "Duis fugiat cillum nisi sunt",
"folder": "/"
}
],
"created": "2019-11-25T22:51:39.201Z",
"createdBy": {
"_id": "Pronghorn",
"username": "consequat irure exercitation",
"provenance": "tempor quis aute dolore",
"missing": true
},
"lastUpdated": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": {
"_id": "4321abcdef694aa79dae47ad",
"username": null,
"provenance": "officia dolore non",
"missing": true
},
"versionHistory": [
{
"versionNumber": -43271464,
"commitMessage": "mollit incididunt",
"author": "ut ullamco ex",
"branchName": "amet"
},
{
"versionNumber": 56313924,
"commitMessage": "laboris in id sit exercitation",
"author": "pariatur ipsum in do",
"branchName": "incididunt sint in ut nostrud"
},
{
"versionNumber": 78685424,
"commitMessage": "pariatur consequat et",
"author": "officia",
"branchName": "amet"
},
{
"versionNumber": 88805900,
"commitMessage": "proident aute ipsum quis in",
"author": "ex ut est aliqua",
"branchName": "ut commodo et"
}
],
"gitConfiguration": {
"connectionType": "GitHub",
"repositoryPath": "proident adipisicing Duis",
"branchName": "aute",
"projectPath": "do"
}
}
}
Copied to Clipboard
{
"title": "response",
"type": "object",
"properties": {
"message": {
"type": "string"
},
"data": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "projects-http"
}
]
},
"metadata": {
"type": "object"
}
}
}