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": 46227637, "type": "template", "reference": "laborum labore consequat nostrud ex", "folder": "/" }, { "iid": 1079755, "type": "jsonForm", "reference": "veniam", "folder": "/" }, { "iid": 85635474, "type": "jsonForm", "reference": "aliqua laboris Excepteur aute Lorem", "folder": "/" }, { "iid": 42340509, "type": "template", "reference": "minim in 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": "commodo Lorem qui irure", "data": [ { "_id": "4321abcdef694aa79dae47ad", "iid": 26320776, "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": "4321abcdef694aa79dae47ad", "role": "owner", "missing": false, "username": "et consequat", "name": "ea Duis cillum", "provenance": "aute ad Excepteur veniam mollit" } ], "accessControl": { "read": [ "dolor Lorem", "deserunt velit non do quis", "commodo ipsum" ], "write": [ "in magna quis pariatur", "laboris", "id", "labore ullamco veniam pariatur esse" ], "execute": [ "quis Ut aliquip dolor officia", "occaecat", "sit anim Ut velit", "ea ut consectetur" ], "manage": [ "qui laborum exercitation commodo ut", "incididunt ea non", "veniam eu", "sunt id culpa", "labore nostrud eiusmod dolor ipsum" ] }, "componentIidIndex": 59967308, "components": [ { "iid": 78127686, "type": "jsonForm", "reference": "Duis nostrud quis esse qui", "folder": "/" }, { "iid": 60460738, "type": "transformation", "reference": "est", "folder": "/" }, { "iid": 51192621, "type": "mopAnalyticTemplate", "reference": "nulla ea tempor nostrud labore", "folder": "/" }, { "iid": 6731788, "type": "transformation", "reference": "ullamco ipsum non", "folder": "/" }, { "iid": 73946734, "type": "mopAnalyticTemplate", "reference": "occaecat nostrud do ut enim", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "amet pariatur et cillum veniam", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "ad sunt", "missing": false }, "versionHistory": [ { "versionNumber": 91128109, "commitMessage": "nostrud sed", "author": "tempor fugiat ut deserunt commodo", "branchName": "irure do laboris" }, { "versionNumber": -49131554, "commitMessage": "laboris quis in", "author": "exercitation irure sed adipisicing sunt", "branchName": "nisi ut sed aute" }, { "versionNumber": -60346797, "commitMessage": "nostrud non occaecat in", "author": "et pariatur eiusmod magna anim", "branchName": "aliquip dolor occaecat" }, { "versionNumber": -91045335, "commitMessage": "in", "author": "culpa anim", "branchName": "sunt" }, { "versionNumber": 90056746, "commitMessage": "dolore Excepteur", "author": "eu labore nisi reprehenderit culpa", "branchName": "sunt enim reprehenderit do" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "dolore officia", "branchName": "anim in cillum", "projectPath": "proident" } }, { "_id": "4321abcdef694aa79dae47ad", "iid": 93113343, "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": true, "username": "sint aliquip", "name": "ut magna", "provenance": "officia magna" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "operator", "missing": true, "username": "Excepteur elit", "name": "labore laborum aliqua Duis commodo", "provenance": "sit" } ], "accessControl": { "read": [ "officia magna aliquip" ], "write": [ "dolore id Ut anim elit", "ad ullamco et", "culpa", "non dolore ipsum" ], "execute": [ "adipisicing", "incididunt irure nostrud id officia", "elit ullamco officia exercitation in" ], "manage": [ "tempor" ] }, "componentIidIndex": 24660497, "components": [ { "iid": 58337600, "type": "mopCommandTemplate", "reference": "voluptate cillum velit", "folder": "/" }, { "iid": 42077749, "type": "workflow", "reference": "est ad ea aliquip", "folder": "/" }, { "iid": 26341362, "type": "transformation", "reference": "laborum in minim amet", "folder": "/" }, { "iid": 65442684, "type": "jsonForm", "reference": "et", "folder": "/" }, { "iid": 71793022, "type": "template", "reference": "ea nisi", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "62a1f3d2ebedfc54e6e0065c", "username": "in quis", "provenance": "nostrud enim commodo", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": null, "provenance": "et est sed nulla magna", "missing": true }, "versionHistory": [ { "versionNumber": -52455685, "commitMessage": "in nostrud quis", "author": "Ut ut nostrud ipsum cillum", "branchName": "eiusmod sint voluptate deserunt" }, { "versionNumber": -710678, "commitMessage": "id", "author": "nisi irure qui", "branchName": "labore nisi sit" }, { "versionNumber": 21819504, "commitMessage": "id Excepteur elit", "author": "ea enim culpa in", "branchName": "veniam cupidatat consequat Ut laboris" }, { "versionNumber": 13617826, "commitMessage": "occaecat id voluptate laboris", "author": "ex ipsum cillum aute do", "branchName": "voluptate" }, { "versionNumber": 80752465, "commitMessage": "mollit officia sint", "author": "id dolore", "branchName": "exercitation sed" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "minim labore elit do", "branchName": "et nulla ea dolor ipsum", "projectPath": "commodo sit veniam laborum" } } ], "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" } ] ] } } } } }