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": 95204825, "type": "template", "reference": "reprehenderit anim eu", "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": "est reprehenderit incididunt dolor", "data": [ { "_id": "4321abcdef694aa79dae47ad", "iid": 50876071, "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": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": false, "username": "deserunt Lorem", "name": "sit laboris", "provenance": "fugiat esse est" }, { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": false, "username": "qui Ut dolore sit", "name": "Excepteur do quis laboris", "provenance": "magna minim enim eiusmod Ut" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "owner", "missing": true, "username": "aliqua ut", "name": "incididunt amet est", "provenance": "in ipsum eiusmod do sunt" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "owner", "missing": false, "username": "voluptate consectetur", "name": "magna sed elit minim", "provenance": "officia" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "operator", "missing": false, "username": "pariatur sit velit", "name": "proident labore", "provenance": "mollit voluptate fugiat ad aute" } ], "accessControl": { "read": [ "incididunt adipisicing sunt reprehenderit", "aliqua sint veniam ea" ], "write": [ "dolor sit", "officia dolore deserunt mollit", "cupidatat anim Ut Excepteur minim", "Duis" ], "execute": [ "ut" ], "manage": [ "dolore dolor officia reprehenderit consequat", "amet dolor voluptate" ] }, "componentIidIndex": 58146865, "components": [ { "iid": 34093737, "type": "jsonForm", "reference": "dolore enim ut Excepteur", "folder": "/" }, { "iid": 18537402, "type": "jsonForm", "reference": "est", "folder": "/" }, { "iid": 30380565, "type": "mopAnalyticTemplate", "reference": "in veniam reprehenderit Excepteur magna", "folder": "/" }, { "iid": 81195965, "type": "template", "reference": "magna veniam ut sit minim", "folder": "/" }, { "iid": 34064891, "type": "template", "reference": "non sint aliqua", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "dolore Excepteur ut sed", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "dolore voluptate", "missing": false }, "versionHistory": [ { "versionNumber": 11902568, "commitMessage": "deserunt ex Duis laboris", "author": "ea", "branchName": "elit aute nulla Ut" }, { "versionNumber": -52983647, "commitMessage": "exercitation dolor laborum aliquip quis", "author": "magna et ut", "branchName": "commodo" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "dolore aliqua", "branchName": "Ut veniam fugiat culpa", "projectPath": "eiusmod labore nulla" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 33775769, "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": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "owner", "missing": true, "username": "incididunt id tempor", "name": "proident ut", "provenance": "ea" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "owner", "missing": false, "username": "elit sit nulla", "name": "Ut anim cupidatat", "provenance": "dolor" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "editor", "missing": true, "username": "incididunt reprehenderit laborum veniam commodo", "name": "nostrud sint minim", "provenance": "in cillum tempor veniam in" }, { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "viewer", "missing": false, "username": "proident sed do dolor ullamco", "name": "laboris", "provenance": "cillum Lorem" } ], "accessControl": { "read": [ "consequat", "eu dolore commodo aliquip sint", "quis ut", "exercitation officia", "in do anim ipsum" ], "write": [ "sunt Excepteur", "sint fugiat cupidatat eu", "tempor velit", "cupidatat magna ut" ], "execute": [ "Ut do dolor" ], "manage": [ "laboris do", "Duis labore elit ut", "incididunt", "in", "Duis" ] }, "componentIidIndex": 81769317, "components": [ { "iid": 92714878, "type": "jsonForm", "reference": "culpa", "folder": "/" }, { "iid": 80587449, "type": "transformation", "reference": "nostrud nisi velit laborum", "folder": "/" }, { "iid": 61173189, "type": "mopAnalyticTemplate", "reference": "cupidatat anim laboris veniam sunt", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": "tempor anim veniam aliqua", "provenance": "esse", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": "in proident", "provenance": "et mollit", "missing": false }, "versionHistory": [ { "versionNumber": 34231745, "commitMessage": "irure aliquip in", "author": "culpa nulla", "branchName": "nulla Lorem consequat voluptate labore" }, { "versionNumber": -50065484, "commitMessage": "Lorem aliqua veniam proident", "author": "in", "branchName": "Lorem" }, { "versionNumber": 74839119, "commitMessage": "ad sed eu", "author": "nisi mollit ut tempor enim", "branchName": "eu et" }, { "versionNumber": -7027950, "commitMessage": "eu", "author": "labore ad nulla", "branchName": "quis do occaecat fugiat" }, { "versionNumber": 1648407, "commitMessage": "ullamco adipisicing nulla ad Lorem", "author": "in eiusmod quis", "branchName": "exercitation velit deserunt" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "deserunt incididunt id", "branchName": "Excepteur voluptate", "projectPath": "Ut" } }, { "_id": "4321abcdef694aa79dae47ad", "iid": 37267048, "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": "group", "reference": "4321abcdef694aa79dae47ad", "role": "editor", "missing": true, "username": "laborum est cupidatat sunt", "name": "nisi", "provenance": "id et aliquip eu" }, { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": true, "username": "amet ex sint dolore adipisicing", "name": "dolor culpa enim laboris velit", "provenance": "Lorem labore sint" }, { "type": "account", "reference": "4321abcdef694aa79dae47ad", "role": "viewer", "missing": false, "username": "nulla deserunt adipisicing ut", "name": "est sed aliqua occaecat minim", "provenance": "Lorem" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "editor", "missing": false, "username": "qui nostrud dolor", "name": "occaecat magna id", "provenance": "cillum sit eiusmod esse" } ], "accessControl": { "read": [ "sint in ea", "quis eiusmod fugiat nulla" ], "write": [ "in", "eiusmod sed laborum", "irure" ], "execute": [ "et incididunt elit dolore adipisicing", "ea", "et" ], "manage": [ "aliqua commodo nulla" ] }, "componentIidIndex": 32890117, "components": [ { "iid": 97791801, "type": "jsonForm", "reference": "voluptate ullamco nostrud tempor", "folder": "/" }, { "iid": 85432560, "type": "template", "reference": "anim veniam adipisicing", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": "ea do consequat", "provenance": "nisi", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "4321abcdef694aa79dae47ad", "username": null, "provenance": "in sit tempor sed exercitation", "missing": false }, "versionHistory": [ { "versionNumber": 45738624, "commitMessage": "deserunt mollit aliquip", "author": "do veniam voluptate dolore in", "branchName": "labore aliquip cupidatat id" }, { "versionNumber": -64672482, "commitMessage": "laborum dolor dolor ullamco voluptate", "author": "nulla sint Ut", "branchName": "aliqua magna exercitation" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "ut ut et pariatur ipsum", "branchName": "eiusmod laborum in ex", "projectPath": "occaecat Lorem id veniam" } } ], "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" } ] ] } } } } }