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": 96803216, "type": "jsonForm", "reference": "officia minim", "folder": "/" }, { "iid": 74024734, "type": "transformation", "reference": "nostrud deserunt non id", "folder": "/" }, { "iid": 98900247, "type": "jsonForm", "reference": "nisi", "folder": "/" }, { "iid": 50857554, "type": "template", "reference": "enim pariatur id", "folder": "/" }, { "iid": 54922580, "type": "mopCommandTemplate", "reference": "amet aute", "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": "ad ex nisi irure", "data": [ { "_id": "4321abcdef694aa79dae47ad", "iid": 59228427, "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": "owner", "missing": true, "username": "irure dolor proident aute", "name": "cillum do tempor consectetur", "provenance": "eu aute" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "owner", "missing": true, "username": "aute", "name": "dolore cillum do mollit", "provenance": "in voluptate dolore culpa adipisicing" }, { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": true, "username": "nulla qui et sint voluptate", "name": "adipisicing", "provenance": "non est" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "operator", "missing": false, "username": "pariatur culpa", "name": "incididunt", "provenance": "sit" } ], "accessControl": { "read": [ "voluptate tempor laborum", "labore" ], "write": [ "anim", "Excepteur exercitation reprehenderit irure labore", "quis reprehenderit" ], "execute": [ "est cupidatat", "quis magna", "qui dolor", "sunt non incididunt dolore nostrud" ], "manage": [ "dolor deserunt fugiat cupidatat in", "cupidatat et dolor", "proident fugiat", "aliqua Excepteur amet do" ] }, "componentIidIndex": 69495551, "components": [ { "iid": 95635453, "type": "mopAnalyticTemplate", "reference": "mollit enim officia", "folder": "/" }, { "iid": 802102, "type": "workflow", "reference": "anim dolor", "folder": "/" }, { "iid": 18073090, "type": "jsonForm", "reference": "Lorem cillum et esse Ut", "folder": "/" }, { "iid": 78298024, "type": "mopAnalyticTemplate", "reference": "aliquip quis amet", "folder": "/" }, { "iid": 69158891, "type": "workflow", "reference": "consequat et eiusmod anim labore", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": "adipisicing", "provenance": "consequat", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "culpa ut consequat cillum Excepteur", "missing": true }, "versionHistory": [ { "versionNumber": 68518947, "commitMessage": "in nisi consequat esse et", "author": "amet", "branchName": "do aute anim sed dolore" }, { "versionNumber": 12893446, "commitMessage": "Lorem veniam officia amet", "author": "laboris mollit ut", "branchName": "tempor magna" }, { "versionNumber": 97886486, "commitMessage": "deserunt non fugiat esse", "author": "nostrud sed proident ut", "branchName": "proident in Ut occaecat fugiat" }, { "versionNumber": 6763866, "commitMessage": "id Duis nostrud", "author": "magna exercitation qui laboris", "branchName": "tempor laboris" }, { "versionNumber": -78547243, "commitMessage": "adipisicing dolor proident ad", "author": "incididunt Duis", "branchName": "cillum do" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "Ut sint nulla", "branchName": "quis dolor id sit", "projectPath": "Excepteur" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 56562065, "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": "5cb7b531d06cceb89fd21b1c", "role": "viewer", "missing": true, "username": "labore", "name": "non labore irure", "provenance": "ipsum labore" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "editor", "missing": false, "username": "quis laboris ipsum ut", "name": "ipsum", "provenance": "proident" } ], "accessControl": { "read": [ "commodo", "incididunt qui enim sit sed", "mollit est esse adipisicing" ], "write": [ "amet ad anim eu do", "reprehenderit ea Duis" ], "execute": [ "ut exercitation", "laborum ullamco Lorem dolor" ], "manage": [ "ut deserunt magna sint Lorem", "non Excepteur nisi", "anim occaecat officia", "ex sit culpa nisi magna" ] }, "componentIidIndex": 50696880, "components": [ { "iid": 13850647, "type": "template", "reference": "mollit", "folder": "/" }, { "iid": 1987599, "type": "template", "reference": "est dolor tempor", "folder": "/" }, { "iid": 4344079, "type": "mopCommandTemplate", "reference": "ex tempor", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": null, "provenance": "minim aliquip veniam", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": "Lorem proident dolore minim est", "provenance": "ullamco deserunt labore pariatur tempor", "missing": true }, "versionHistory": [ { "versionNumber": 10046847, "commitMessage": "commodo non dolore", "author": "fugiat sed sunt ut", "branchName": "dolore esse fugiat" }, { "versionNumber": 82176695, "commitMessage": "irure", "author": "aliquip incididunt Ut", "branchName": "ipsum labore dolore" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "culpa consectetur non enim", "branchName": "cillum in consectetur sunt culpa", "projectPath": "irure" } } ], "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" } ] ] } } } } }