Summary
Add one or more components to Project
Description
Add one or more components to Project
Route
POST /automation-studio/projects/:projectId/components/add
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
projectId | string | yes | Project identifier |
options | object | yes | Configuration options for adding components to a Project |
{ "components": [ { "iid": 23501056, "type": "mopAnalyticTemplate", "reference": "aliqua dolor mollit", "folder": "/" }, { "iid": 18589709, "type": "workflow", "reference": "exercitation esse mollit pariatur", "folder": "/" } ], "mode": "copy" }
{ "title": "options", "type": "object", "required": [ "components" ], "properties": { "components": { "$ref": "projects-common#/definitions/components" }, "mode": { "type": "string", "enum": [ "move", "copy" ] } } }
Return
Name | Type | Description |
---|---|---|
response | object | Updated project |
{ "message": "id magna amet", "data": [ { "_id": "4321abcdef694aa79dae47ad", "iid": 27199565, "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": "editor", "missing": false, "username": "labore", "name": "eiusmod", "provenance": "cillum" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "viewer", "missing": true, "username": "ex", "name": "fugiat commodo elit qui proident", "provenance": "eu minim" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "viewer", "missing": false, "username": "enim", "name": "dolor", "provenance": "dolor quis dolore" } ], "accessControl": { "read": [ "Duis ea fugiat laboris exercitation", "proident aliquip id et", "velit irure" ], "write": [ "aute fugiat ex nisi", "reprehenderit in", "veniam cillum culpa dolor" ], "execute": [ "non magna est adipisicing", "in irure in", "deserunt", "veniam ex officia pariatur", "culpa" ], "manage": [ "ad esse ut do", "occaecat tempor sint exercitation", "officia id nisi culpa qui" ] }, "componentIidIndex": 33605784, "components": [ { "iid": 19938437, "type": "mopAnalyticTemplate", "reference": "quis laboris incididunt sit", "folder": "/" }, { "iid": 19617514, "type": "template", "reference": "et dolore proident pariatur ad", "folder": "/" }, { "iid": 9745928, "type": "jsonForm", "reference": "sint dolor in aliquip", "folder": "/" }, { "iid": 66017305, "type": "jsonForm", "reference": "nostrud anim", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": "qui", "provenance": "veniam amet cupidatat reprehenderit fugiat", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": "culpa adipisicing consectetur", "provenance": "consequat aliqua laborum eiusmod", "missing": true }, "versionHistory": [ { "versionNumber": 25534593, "commitMessage": "eu do tempor cillum", "author": "sunt in incididunt nostrud nulla", "branchName": "consectetur enim dolore velit" }, { "versionNumber": -46012067, "commitMessage": "nisi amet occaecat tempor ipsum", "author": "aute eiusmod officia", "branchName": "Excepteur" }, { "versionNumber": 53722335, "commitMessage": "et deserunt incididunt", "author": "commodo ut", "branchName": "in fugiat magna irure aliquip" }, { "versionNumber": -41055254, "commitMessage": "dolore exercitation do ipsum", "author": "Ut", "branchName": "consequat consectetur tempor Ut est" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "Ut voluptate", "branchName": "amet elit nostrud aute", "projectPath": "velit" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 4973223, "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": "4321abcdef694aa79dae47ad", "role": "editor", "missing": false, "username": "velit sit quis amet minim", "name": "laborum Duis velit Ut", "provenance": "nisi culpa ipsum sint dolor" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "operator", "missing": false, "username": "ut aliquip id", "name": "nostrud et", "provenance": "sed" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "owner", "missing": false, "username": "amet sed magna do", "name": "nisi sit in laboris elit", "provenance": "exercitation tempor Duis Lorem cillum" } ], "accessControl": { "read": [ "enim magna sint" ], "write": [ "do consectetur quis sint sed", "officia anim pariatur", "labore ex laboris Duis ad", "cillum deserunt nostrud" ], "execute": [ "et", "amet in", "in exercitation", "incididunt aliquip do ea non" ], "manage": [ "enim magna in in", "amet in minim ex sint" ] }, "componentIidIndex": 54300834, "components": [ { "iid": 33954707, "type": "mopCommandTemplate", "reference": "magna ea sint aute", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "dolor", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "62a1f3d2ebedfc54e6e0065c", "username": "cupidatat occaecat ut sed", "provenance": "culpa consectetur eu", "missing": true }, "versionHistory": [ { "versionNumber": -70906641, "commitMessage": "tempor Excepteur irure ex aute", "author": "occaecat non adipisicing", "branchName": "do Duis" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "sint est", "branchName": "nisi aliqua exercitation enim", "projectPath": "aliquip dolore" } }, { "_id": "62a1f3d2ebedfc54e6e0065c", "iid": 23301285, "name": "Firewall Service Provisioning", "description": "This project is used at Acme Corp as the foundation of some major parts of our business process.", "members": [ { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": true, "username": "culpa velit amet sit et", "name": "et reprehenderit", "provenance": "pariatur" }, { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "operator", "missing": true, "username": "incididunt in in", "name": "nisi ut Ut proident et", "provenance": "non labore id adipisicing occaecat" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "editor", "missing": true, "username": "reprehenderit ad aliqua tempor", "name": "fugiat", "provenance": "in" }, { "type": "account", "reference": "4321abcdef694aa79dae47ad", "role": "owner", "missing": false, "username": "in", "name": "veniam ex irure dolor", "provenance": "veniam" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "viewer", "missing": false, "username": "est enim deserunt proident sit", "name": "anim", "provenance": "occaecat" } ], "accessControl": { "read": [ "do minim", "tempor nostrud ipsum", "pariatur nulla", "sed", "cillum sit" ], "write": [ "magna velit sint in veniam", "ut voluptate ut qui" ], "execute": [ "commodo labore magna", "qui dolor", "velit" ], "manage": [ "Excepteur Ut", "Duis nostrud enim" ] }, "componentIidIndex": 75652848, "components": [ { "iid": 35853402, "type": "mopAnalyticTemplate", "reference": "est consectetur consequat culpa", "folder": "/" }, { "iid": 61807127, "type": "jsonForm", "reference": "ea in irure", "folder": "/" }, { "iid": 8324091, "type": "template", "reference": "consectetur reprehenderit commodo Ut tempor", "folder": "/" }, { "iid": 90016122, "type": "transformation", "reference": "aliquip", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": null, "provenance": "anim quis", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "Ut occaecat", "missing": true }, "versionHistory": [ { "versionNumber": -70089482, "commitMessage": "Ut officia ullamco veniam quis", "author": "amet dolore dolor Ut eu", "branchName": "sit exercitation ut" }, { "versionNumber": -23184356, "commitMessage": "ut est eu", "author": "ut fugiat elit nisi", "branchName": "Lorem consequat sed Excepteur in" }, { "versionNumber": 27919998, "commitMessage": "veniam", "author": "enim proident", "branchName": "irure cupidatat elit" }, { "versionNumber": 55162337, "commitMessage": "aute sit qui laboris", "author": "ea esse", "branchName": "laborum dolor" }, { "versionNumber": 68233507, "commitMessage": "consequat exercitation irure", "author": "velit ipsum commodo do", "branchName": "dolore consectetur exercitation anim" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "in", "branchName": "magna esse officia cupidatat ex", "projectPath": "eiusmod reprehenderit fugiat consequat anim" } } ], "metadata": { "newComponents": [], "failedComponents": [], "idMap": [ { "original": "1a643151-459b-4a4a-be91-623536b65df3", "clone": "8696f332-030b-4c2a-8b1b-95844cbb6aea" } ] } }
{ "title": "response", "type": "object", "properties": { "message": { "type": "string" }, "data": { "type": "array", "items": { "$ref": "projects-http" } }, "metadata": { "type": "object", "properties": { "newComponents": { "type": "array", "description": "Components added" }, "failedComponents": { "type": "array", "description": "Components failed to add" }, "idMap": { "type": "array", "description": "Id map for original and cloned component", "examples": [ [ { "original": "1a643151-459b-4a4a-be91-623536b65df3", "clone": "8696f332-030b-4c2a-8b1b-95844cbb6aea" } ] ] } } } } }