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": 41194608, "type": "template", "reference": "pariatur sed labore", "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": "ea id officia labore occaecat", "data": [ { "_id": "4321abcdef694aa79dae47ad", "iid": 72515251, "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": "viewer", "missing": true, "username": "Lorem velit dolore mollit", "name": "officia ut deserunt in", "provenance": "sint nulla consectetur tempor" } ], "accessControl": { "read": [ "Excepteur est esse", "est sit nostrud" ], "write": [ "adipisicing ea dolor culpa", "ullamco dolor", "labore ex", "dolore Lorem consectetur" ], "execute": [ "qui", "Ut elit consectetur veniam", "sint irure voluptate" ], "manage": [ "irure consequat occaecat", "ullamco irure voluptate officia", "sed dolore dolor", "proident cupidatat ipsum non", "esse ad aute" ] }, "componentIidIndex": 35123186, "components": [ { "iid": 10512360, "type": "transformation", "reference": "reprehenderit cillum", "folder": "/" }, { "iid": 61052456, "type": "template", "reference": "nisi officia occaecat ipsum", "folder": "/" }, { "iid": 34651971, "type": "workflow", "reference": "labore elit amet", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "62a1f3d2ebedfc54e6e0065c", "username": null, "provenance": "ut non quis enim Excepteur", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": null, "provenance": "ullamco sint dolore occaecat pariatur", "missing": true }, "versionHistory": [ { "versionNumber": -64379616, "commitMessage": "velit proident", "author": "ut laboris minim voluptate", "branchName": "pariatur non commodo aliquip" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "occaecat", "branchName": "Lorem ex nisi irure in", "projectPath": "mollit ea nisi dolor" } }, { "_id": "4321abcdef694aa79dae47ad", "iid": 69354455, "name": "Arista EOS Utilities", "description": "This project is used at Acme Corp as the foundation of some major parts of our business process.", "members": [ { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "editor", "missing": true, "username": "deserunt eiusmod ea", "name": "consequat ex aliqua eu", "provenance": "consequat nisi proident" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "owner", "missing": false, "username": "eu", "name": "reprehenderit ullamco dolore", "provenance": "commodo sit labore cupidatat ut" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "operator", "missing": false, "username": "ut consectetur", "name": "consectetur", "provenance": "in sit sint est" }, { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "viewer", "missing": true, "username": "mollit", "name": "sed ut dolor Ut ea", "provenance": "consequat in" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "editor", "missing": true, "username": "amet", "name": "dolore magna cupidatat", "provenance": "dolore in occaecat" } ], "accessControl": { "read": [ "enim do" ], "write": [ "consequat" ], "execute": [ "in Duis esse nostrud", "consequat amet in deserunt", "nulla Lorem", "quis Lorem culpa", "occaecat velit mollit" ], "manage": [ "in Ut culpa et", "Excepteur", "occaecat eu mollit cillum" ] }, "componentIidIndex": 21771524, "components": [ { "iid": 99637502, "type": "transformation", "reference": "tempor cupidatat", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "sit ad proident", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": "laboris", "provenance": "ad", "missing": false }, "versionHistory": [ { "versionNumber": -49733361, "commitMessage": "sit occaecat Duis consequat", "author": "sed deserunt mollit", "branchName": "nostrud culpa" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "ut", "branchName": "laborum ipsum dolor velit sed", "projectPath": "cupidatat" } }, { "_id": "4321abcdef694aa79dae47ad", "iid": 70253406, "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": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": false, "username": "commodo", "name": "sed cupidatat anim aute", "provenance": "exercitation id" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "owner", "missing": false, "username": "fugiat quis proident", "name": "nulla ex ullamco ipsum dolore", "provenance": "qui culpa" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "owner", "missing": true, "username": "officia cillum", "name": "anim", "provenance": "elit" } ], "accessControl": { "read": [ "pariatur", "sed cillum sint occaecat dolor", "aliquip" ], "write": [ "id incididunt voluptate aliqua exercitation", "non elit aute in adipisicing", "elit cupidatat voluptate Lorem", "in laborum", "dolore aute quis tempor" ], "execute": [ "culpa Ut in ullamco Lorem", "amet dolore", "Duis", "Ut minim", "ullamco" ], "manage": [ "ullamco mollit", "voluptate cupidatat", "ex", "adipisicing amet cillum" ] }, "componentIidIndex": 34143757, "components": [ { "iid": 71796414, "type": "mopCommandTemplate", "reference": "est eiusmod elit", "folder": "/" }, { "iid": 99256930, "type": "template", "reference": "reprehenderit tempor consectetur Ut Duis", "folder": "/" }, { "iid": 61208593, "type": "template", "reference": "laboris qui veniam voluptate cupidatat", "folder": "/" }, { "iid": 85037819, "type": "jsonForm", "reference": "aliqua", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "62a1f3d2ebedfc54e6e0065c", "username": null, "provenance": "sunt ut", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "4321abcdef694aa79dae47ad", "username": null, "provenance": "laborum veniam amet sit", "missing": true }, "versionHistory": [ { "versionNumber": 68201011, "commitMessage": "cupidatat", "author": "nostrud velit tempor exercitation", "branchName": "sit officia" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "Ut in", "branchName": "reprehenderit", "projectPath": "nostrud exercitation enim cupidatat" } } ], "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" } ] ] } } } } }