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": 15101989, "type": "jsonForm", "reference": "ad ut", "folder": "/" }, { "iid": 68306739, "type": "workflow", "reference": "Duis et", "folder": "/" }, { "iid": 39064254, "type": "template", "reference": "labore Ut tempor ea", "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": "aliquip aute in", "data": [ { "_id": "4321abcdef694aa79dae47ad", "iid": 27609069, "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": false, "username": "irure quis", "name": "aliqua ullamco anim", "provenance": "veniam" } ], "accessControl": { "read": [ "sunt cupidatat dolore culpa", "exercitation esse nulla sed irure", "sit consectetur deserunt ut occaecat", "aliqua", "Ut consequat culpa id dolor" ], "write": [ "ut" ], "execute": [ "sed", "Lorem consequat" ], "manage": [ "dolore occaecat cillum", "velit fugiat proident ad" ] }, "componentIidIndex": 36286038, "components": [ { "iid": 91297180, "type": "template", "reference": "ut", "folder": "/" }, { "iid": 96341730, "type": "mopAnalyticTemplate", "reference": "et", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "ea sed Excepteur ipsum non", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "62a1f3d2ebedfc54e6e0065c", "username": null, "provenance": "dolor minim ad", "missing": true }, "versionHistory": [ { "versionNumber": 47428454, "commitMessage": "pariatur ex ullamco dolor", "author": "incididunt ipsum dolor", "branchName": "aliquip" }, { "versionNumber": -37073783, "commitMessage": "sint", "author": "nisi anim commodo exercitation mollit", "branchName": "in" }, { "versionNumber": 60429334, "commitMessage": "deserunt pariatur", "author": "ad", "branchName": "deserunt in cillum in consequat" }, { "versionNumber": 18314142, "commitMessage": "tempor cillum", "author": "veniam tempor", "branchName": "veniam ut consequat" }, { "versionNumber": 78500749, "commitMessage": "commodo enim", "author": "incididunt consequat ut", "branchName": "ipsum aliqua consectetur" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "esse velit", "branchName": "reprehenderit eu ut consequat in", "projectPath": "ipsum Excepteur nostrud in est" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 64944765, "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": "62a1f3d2ebedfc54e6e0065c", "role": "owner", "missing": true, "username": "velit ad mollit dolor", "name": "cupidatat Ut do qui", "provenance": "incididunt proident" } ], "accessControl": { "read": [ "sunt anim irure" ], "write": [ "cupidatat sunt in pariatur proident", "ut", "do ut minim dolore non" ], "execute": [ "nulla et", "minim", "irure aute ipsum adipisicing eu", "Lorem exercitation ex commodo" ], "manage": [ "eiusmod velit", "eu nisi ipsum", "cupidatat occaecat adipisicing mollit", "aliquip minim cillum" ] }, "componentIidIndex": 80687277, "components": [ { "iid": 88212787, "type": "workflow", "reference": "Lorem sit", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "62a1f3d2ebedfc54e6e0065c", "username": "do", "provenance": "anim culpa pariatur", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": "id", "provenance": "occaecat exercitation do", "missing": false }, "versionHistory": [ { "versionNumber": 64849072, "commitMessage": "sed veniam", "author": "laboris mollit incididunt velit", "branchName": "voluptate" }, { "versionNumber": -14158702, "commitMessage": "elit reprehenderit in", "author": "irure fugiat ut et aute", "branchName": "adipisicing voluptate" }, { "versionNumber": -76862630, "commitMessage": "magna ut nostrud ullamco ad", "author": "ullamco nisi sed proident ipsum", "branchName": "ea consectetur" }, { "versionNumber": 38876818, "commitMessage": "sed laborum ex", "author": "deserunt nulla irure", "branchName": "aliqua" }, { "versionNumber": -23730123, "commitMessage": "Ut magna ut elit", "author": "do nulla reprehenderit", "branchName": "Lorem sunt Ut adipisicing qui" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "id ut consequat ad", "branchName": "elit", "projectPath": "sint et" } } ], "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" } ] ] } } } } }