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": 51559797, "type": "jsonForm", "reference": "exercitation cillum veniam nostrud", "folder": "/" }, { "iid": 89627743, "type": "mopAnalyticTemplate", "reference": "exercitation id", "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": "ea adipisicing", "data": [ { "_id": "4321abcdef694aa79dae47ad", "iid": 60176648, "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": "4321abcdef694aa79dae47ad", "role": "editor", "missing": true, "username": "ullamco in dolor", "name": "velit occaecat minim", "provenance": "consequat cillum pariatur" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "operator", "missing": true, "username": "culpa Duis", "name": "irure Lorem", "provenance": "eu" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "operator", "missing": false, "username": "nisi dolor elit qui", "name": "anim nulla", "provenance": "sed esse Ut" }, { "type": "account", "reference": "4321abcdef694aa79dae47ad", "role": "owner", "missing": false, "username": "commodo pariatur", "name": "pariatur laboris deserunt labore sed", "provenance": "eiusmod deserunt aliquip cupidatat id" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "viewer", "missing": true, "username": "ut tempor dolore nulla", "name": "laboris", "provenance": "anim nostrud irure id Excepteur" } ], "accessControl": { "read": [ "ex veniam aute eu", "ut labore Duis", "tempor Excepteur nostrud Lorem" ], "write": [ "occaecat adipisicing", "adipisicing est incididunt in in", "eu dolore proident", "sint ex velit officia anim", "sit eiusmod veniam" ], "execute": [ "sunt aliquip nostrud cillum minim" ], "manage": [ "labore", "esse ex est", "consequat", "labore" ] }, "componentIidIndex": 40368004, "components": [ { "iid": 7500510, "type": "transformation", "reference": "labore officia", "folder": "/" }, { "iid": 81484076, "type": "workflow", "reference": "magna sunt aliquip officia", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "sit reprehenderit", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "nostrud magna", "missing": true }, "versionHistory": [ { "versionNumber": 67457752, "commitMessage": "commodo enim", "author": "fugiat", "branchName": "incididunt eu reprehenderit fugiat exercitation" }, { "versionNumber": -17929641, "commitMessage": "irure eiusmod in sunt deserunt", "author": "qui minim occaecat", "branchName": "sit Lorem est id aute" }, { "versionNumber": 98976638, "commitMessage": "Lorem in nostrud commodo esse", "author": "proident consequat velit dolore", "branchName": "ex mollit adipisicing dolore consequat" }, { "versionNumber": -15590343, "commitMessage": "velit eu in eiusmod Excepteur", "author": "cillum in ad et", "branchName": "sed occaecat dolore ullamco" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "voluptate commodo", "branchName": "laborum", "projectPath": "elit fugiat" } }, { "_id": "4321abcdef694aa79dae47ad", "iid": 29496410, "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": "62a1f3d2ebedfc54e6e0065c", "role": "viewer", "missing": true, "username": "laborum Duis", "name": "non exercitation", "provenance": "Ut proident" }, { "type": "account", "reference": "4321abcdef694aa79dae47ad", "role": "operator", "missing": false, "username": "proident velit labore", "name": "amet pariatur et", "provenance": "minim voluptate est" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "owner", "missing": true, "username": "sed ea sunt ullamco eu", "name": "minim fugiat aliqua ad ullamco", "provenance": "incididunt deserunt Lorem" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "editor", "missing": false, "username": "Lorem", "name": "occaecat quis minim Duis", "provenance": "cillum" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "owner", "missing": false, "username": "dolor Ut", "name": "elit Excepteur consequat laboris", "provenance": "minim Ut tempor est mollit" } ], "accessControl": { "read": [ "ullamco officia aute", "adipisicing sunt tempor", "sint", "Ut", "cupidatat fugiat magna eu ad" ], "write": [ "id", "Lorem amet", "dolore in do Duis", "quis irure cillum Lorem amet", "veniam magna ad occaecat dolor" ], "execute": [ "qui" ], "manage": [ "et" ] }, "componentIidIndex": 55981713, "components": [ { "iid": 60610918, "type": "workflow", "reference": "aute", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "4321abcdef694aa79dae47ad", "username": null, "provenance": "ea sed laboris ipsum", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "4321abcdef694aa79dae47ad", "username": "do ullamco consequat nostrud", "provenance": "Ut quis", "missing": false }, "versionHistory": [ { "versionNumber": 54724407, "commitMessage": "in laboris", "author": "occaecat", "branchName": "occaecat dolor Lorem ut qui" }, { "versionNumber": 66436452, "commitMessage": "laboris ipsum dolor dolor", "author": "commodo aute officia", "branchName": "laboris" }, { "versionNumber": -9215667, "commitMessage": "tempor dolor", "author": "voluptate minim sint", "branchName": "in" }, { "versionNumber": -1230617, "commitMessage": "ut", "author": "ipsum nostrud minim", "branchName": "qui laborum sit aliqua" }, { "versionNumber": 29360627, "commitMessage": "et ea", "author": "dolor in", "branchName": "ad officia" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "dolore minim in", "branchName": "dolore deserunt Ut aliqua pariatur", "projectPath": "ut minim sed 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" } ] ] } } } } }