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": 32085728, "type": "mopAnalyticTemplate", "reference": "anim in magna amet in", "folder": "/" } ], "mode": "move" }
{ "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": "ipsum", "data": [ { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 31383242, "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": "62a1f3d2ebedfc54e6e0065c", "role": "operator", "missing": false, "username": "Duis exercitation", "name": "dolor est in magna tempor", "provenance": "elit amet Excepteur incididunt tempor" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "viewer", "missing": true, "username": "dolore magna amet labore ut", "name": "ullamco ex", "provenance": "ut sint aliqua" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "operator", "missing": true, "username": "ut deserunt voluptate", "name": "cillum aute", "provenance": "esse dolor" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "editor", "missing": false, "username": "occaecat", "name": "cillum exercitation id nisi", "provenance": "culpa in" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "editor", "missing": false, "username": "fugiat Excepteur eu aliqua", "name": "eu in reprehenderit culpa", "provenance": "et ex Ut" } ], "accessControl": { "read": [ "in cupidatat", "voluptate qui", "occaecat in commodo dolor", "magna enim veniam", "pariatur minim Excepteur in" ], "write": [ "Duis dolor cupidatat enim", "ex eu veniam" ], "execute": [ "in pariatur nulla dolore do", "nisi est esse ut eu", "dolore non", "proident sed veniam in", "mollit" ], "manage": [ "in cillum culpa minim" ] }, "componentIidIndex": 4426161, "components": [ { "iid": 9567450, "type": "mopCommandTemplate", "reference": "nostrud anim in", "folder": "/" }, { "iid": 55483365, "type": "mopCommandTemplate", "reference": "dolore eu ipsum magna", "folder": "/" }, { "iid": 48761001, "type": "template", "reference": "sint occaecat", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "occaecat labore deserunt et", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": "dolore Lorem laboris", "provenance": "irure anim", "missing": false }, "versionHistory": [ { "versionNumber": 67534319, "commitMessage": "quis", "author": "non Duis voluptate", "branchName": "exercitation esse et" }, { "versionNumber": 32385777, "commitMessage": "et amet ullamco Ut do", "author": "eiusmod proident", "branchName": "nisi" }, { "versionNumber": -41870137, "commitMessage": "aliqua Duis cillum cupidatat veniam", "author": "elit officia", "branchName": "proident dolor aute ut exercitation" }, { "versionNumber": -34556913, "commitMessage": "irure Ut eu", "author": "dolor quis", "branchName": "ea" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "cillum", "branchName": "id Duis", "projectPath": "fugiat" } }, { "_id": "4321abcdef694aa79dae47ad", "iid": 52924415, "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": "4321abcdef694aa79dae47ad", "role": "editor", "missing": true, "username": "sunt", "name": "deserunt cupidatat", "provenance": "cupidatat consectetur" } ], "accessControl": { "read": [ "veniam est et" ], "write": [ "cupidatat ullamco cillum fugiat", "occaecat pariatur", "laborum ad pariatur ut", "laborum" ], "execute": [ "eiusmod ut veniam consequat", "sit irure" ], "manage": [ "nisi id irure", "Ut in anim exercitation fugiat", "in enim cillum tempor", "in proident dolor consequat", "Excepteur ex nostrud sit" ] }, "componentIidIndex": 46529996, "components": [ { "iid": 32398027, "type": "mopAnalyticTemplate", "reference": "occaecat dolor labore elit", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "consequat eiusmod in et", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "ad labore sed", "missing": false }, "versionHistory": [ { "versionNumber": 54300248, "commitMessage": "eu velit mollit aliqua nisi", "author": "in", "branchName": "voluptate" }, { "versionNumber": 47899358, "commitMessage": "ullamco", "author": "consectetur Duis sunt cillum consequat", "branchName": "fugiat in do deserunt quis" }, { "versionNumber": -8266147, "commitMessage": "ipsum in", "author": "veniam irure ullamco do ad", "branchName": "magna Duis" }, { "versionNumber": 9185618, "commitMessage": "et magna incididunt aliquip enim", "author": "ipsum ut pariatur tempor in", "branchName": "culpa velit in id" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "qui minim", "branchName": "in", "projectPath": "non elit nulla id ea" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 28898309, "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": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "owner", "missing": false, "username": "ut sunt", "name": "occaecat", "provenance": "aliquip veniam voluptate deserunt anim" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "editor", "missing": true, "username": "qui laborum ea ut", "name": "deserunt fugiat eiusmod", "provenance": "id ipsum commodo" }, { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "viewer", "missing": true, "username": "Duis", "name": "anim dolore incididunt non pariatur", "provenance": "nostrud" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "viewer", "missing": true, "username": "proident incididunt occaecat sed sit", "name": "commodo", "provenance": "et dolor" } ], "accessControl": { "read": [ "aute", "eu amet qui anim", "in", "aliqua occaecat Ut" ], "write": [ "in" ], "execute": [ "reprehenderit minim", "irure laboris dolor ut tempor", "Duis ad" ], "manage": [ "dolor Lorem eiusmod" ] }, "componentIidIndex": 80872505, "components": [ { "iid": 36165469, "type": "mopAnalyticTemplate", "reference": "cupidatat dolore", "folder": "/" }, { "iid": 49143361, "type": "transformation", "reference": "exercitation velit in", "folder": "/" }, { "iid": 28558887, "type": "jsonForm", "reference": "esse incididunt aute", "folder": "/" }, { "iid": 72272319, "type": "workflow", "reference": "proident in aute incididunt", "folder": "/" }, { "iid": 77457947, "type": "mopCommandTemplate", "reference": "pariatur laborum Duis est", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": "in ut Duis", "provenance": "tempor officia nulla", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": "nostrud quis ea aliqua", "provenance": "non ea in et aliquip", "missing": false }, "versionHistory": [ { "versionNumber": 67234370, "commitMessage": "eiusmod", "author": "et adipisicing cupidatat", "branchName": "dolore Duis magna" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "commodo consectetur velit ut exercitation", "branchName": "in ex sint ea mollit", "projectPath": "adipisicing consectetur nisi amet officia" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 8584717, "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": "62a1f3d2ebedfc54e6e0065c", "role": "editor", "missing": true, "username": "dolore Duis sed ut eu", "name": "est laborum nisi nostrud", "provenance": "in dolore quis" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "viewer", "missing": true, "username": "tempor amet reprehenderit sint Ut", "name": "mollit sint reprehenderit", "provenance": "qui mollit occaecat ut" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "viewer", "missing": false, "username": "dolor deserunt", "name": "laborum ea Lorem quis", "provenance": "veniam incididunt" } ], "accessControl": { "read": [ "qui Lorem", "sint consectetur amet", "proident", "proident consectetur eu" ], "write": [ "enim", "laboris esse enim amet officia", "laboris irure" ], "execute": [ "Ut pariatur do anim sint", "ex fugiat Lorem", "laborum aliquip do velit", "velit", "sed id nisi culpa do" ], "manage": [ "Ut est Lorem ullamco", "ullamco elit sint Excepteur", "sint officia", "ullamco eu fugiat", "commodo adipisicing enim" ] }, "componentIidIndex": 36595868, "components": [ { "iid": 50561016, "type": "transformation", "reference": "eiusmod ut enim", "folder": "/" }, { "iid": 85521822, "type": "jsonForm", "reference": "mollit sed dolor qui", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": "veniam et mollit laboris", "provenance": "exercitation culpa", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "in", "missing": false }, "versionHistory": [ { "versionNumber": -73532162, "commitMessage": "consequat", "author": "et Ut", "branchName": "esse quis reprehenderit dolore" }, { "versionNumber": 96542820, "commitMessage": "esse laborum aliqua laboris ullamco", "author": "sed ex dolor", "branchName": "velit ut ea consectetur" }, { "versionNumber": 32343900, "commitMessage": "cupidatat nulla fugiat", "author": "amet cillum exercitation reprehenderit", "branchName": "culpa adipisicing aliquip veniam in" }, { "versionNumber": -6523750, "commitMessage": "Excepteur tempor consequat in sunt", "author": "sit exercitation velit", "branchName": "sint magna consequat" }, { "versionNumber": -7554789, "commitMessage": "veniam exercitation ipsum aute Lorem", "author": "laboris incididunt mollit veniam magna", "branchName": "quis deserunt Lorem" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "ut laboris minim veniam", "branchName": "dolore", "projectPath": "Ut ad ullamco magna" } } ], "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" } ] ] } } } } }