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": 81962064, "type": "mopAnalyticTemplate", "reference": "eiusmod aute", "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": "non id qui dolor quis", "data": [ { "_id": "4321abcdef694aa79dae47ad", "iid": 37428215, "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": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": false, "username": "dolor laborum labore occaecat", "name": "minim fugiat nostrud", "provenance": "consequat" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "viewer", "missing": true, "username": "sit irure consequat consectetur", "name": "aute sit occaecat", "provenance": "eiusmod pariatur est veniam" } ], "accessControl": { "read": [ "qui consectetur mollit quis", "dolore", "occaecat eu minim ex", "eiusmod", "velit irure ut" ], "write": [ "est in do", "sunt proident aliqua" ], "execute": [ "commodo aliqua amet sint" ], "manage": [ "cupidatat incididunt do", "ut" ] }, "componentIidIndex": 38395762, "components": [ { "iid": 97225450, "type": "mopCommandTemplate", "reference": "ut et", "folder": "/" }, { "iid": 29232968, "type": "mopCommandTemplate", "reference": "sint aute minim", "folder": "/" }, { "iid": 99141792, "type": "mopCommandTemplate", "reference": "incididunt voluptate sit consectetur in", "folder": "/" }, { "iid": 35955802, "type": "template", "reference": "culpa tempor Lorem nulla", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": "nisi", "provenance": "commodo", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "in labore sed", "missing": false }, "versionHistory": [ { "versionNumber": 45319601, "commitMessage": "aute elit in tempor dolore", "author": "et aliqua", "branchName": "nisi laboris" }, { "versionNumber": -81840678, "commitMessage": "veniam labore", "author": "nostrud occaecat voluptate", "branchName": "tempor voluptate Lorem" }, { "versionNumber": -71369163, "commitMessage": "aute culpa enim", "author": "velit commodo", "branchName": "consectetur in dolor sunt eu" }, { "versionNumber": 76440233, "commitMessage": "pariatur", "author": "ut in deserunt", "branchName": "Duis tempor Ut proident" }, { "versionNumber": 75917625, "commitMessage": "nulla consectetur occaecat", "author": "reprehenderit elit sunt", "branchName": "officia mollit dolor fugiat irure" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "voluptate aute ullamco fugiat nostrud", "branchName": "Duis", "projectPath": "do" } }, { "_id": "4321abcdef694aa79dae47ad", "iid": 48068560, "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": "62a1f3d2ebedfc54e6e0065c", "role": "operator", "missing": true, "username": "labore adipisicing et aliquip", "name": "reprehenderit aute aliquip qui", "provenance": "ex Duis nostrud ad" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "operator", "missing": true, "username": "dolore pariatur qui nostrud", "name": "fugiat eu", "provenance": "non veniam dolor laborum eu" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "editor", "missing": true, "username": "occaecat", "name": "id esse in qui", "provenance": "commodo exercitation irure deserunt dolore" }, { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "viewer", "missing": true, "username": "aute elit exercitation laboris", "name": "voluptate mollit laboris", "provenance": "pariatur nulla dolore incididunt et" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "owner", "missing": true, "username": "laboris", "name": "laboris in aliqua id Duis", "provenance": "ullamco" } ], "accessControl": { "read": [ "sint", "nostrud ut eiusmod ullamco", "ullamco elit" ], "write": [ "voluptate laboris proident", "do esse reprehenderit", "exercitation eiusmod consequat non dolor", "ea velit Duis proident elit" ], "execute": [ "aute laboris deserunt Lorem et", "ad nulla aute" ], "manage": [ "Duis irure", "quis in Excepteur Ut exercitation", "in quis magna et" ] }, "componentIidIndex": 69687064, "components": [ { "iid": 90642858, "type": "mopAnalyticTemplate", "reference": "voluptate commodo fugiat in", "folder": "/" }, { "iid": 11348086, "type": "template", "reference": "eu irure", "folder": "/" }, { "iid": 15523646, "type": "workflow", "reference": "cillum pariatur", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "4321abcdef694aa79dae47ad", "username": null, "provenance": "anim magna velit", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": "Ut", "provenance": "ipsum pariatur Excepteur", "missing": false }, "versionHistory": [ { "versionNumber": -96530152, "commitMessage": "anim adipisicing", "author": "incididunt sint labore sunt", "branchName": "ut minim tempor occaecat" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "sint", "branchName": "veniam sed id exercitation velit", "projectPath": "consectetur cillum sed fugiat Ut" } } ], "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" } ] ] } } } } }