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
admin
apiwrite
designer
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
projectId |
string |
yes |
Project identifier |
options |
object |
yes |
Configuration options for adding components to a Project |
Copied to Clipboard
{
"components": [
{
"iid": 93108538,
"type": "mopAnalyticTemplate",
"reference": "cupidatat ut deserunt sunt pariatur",
"folder": "/"
},
{
"iid": 6637257,
"type": "mopAnalyticTemplate",
"reference": "ex",
"folder": "/"
},
{
"iid": 87618944,
"type": "mopCommandTemplate",
"reference": "ut eu voluptate occaecat reprehenderit",
"folder": "/"
}
],
"mode": "copy"
}
Copied to Clipboard
{
"title": "options",
"type": "object",
"required": [
"components"
],
"properties": {
"components": {
"$ref": "projects-common#/definitions/components"
},
"mode": {
"type": "string",
"enum": [
"move",
"copy"
]
}
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
response |
object |
Updated project |
Copied to Clipboard
{
"message": "ex ad nulla magna cillum",
"data": [
{
"_id": "4321abcdef694aa79dae47ad",
"iid": 51431425,
"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": "owner",
"missing": false,
"username": "Duis",
"name": "velit fugiat minim",
"provenance": "et"
},
{
"type": "account",
"reference": "5cb7b531d06cceb89fd21b1c",
"role": "viewer",
"missing": true,
"username": "minim ut magna nostrud aliquip",
"name": "Excepteur",
"provenance": "minim irure"
},
{
"type": "account",
"reference": "62a1f3d2ebedfc54e6e0065c",
"role": "viewer",
"missing": false,
"username": "in id laboris qui est",
"name": "ipsum dolor ad Excepteur labore",
"provenance": "irure"
},
{
"type": "account",
"reference": "4321abcdef694aa79dae47ad",
"role": "viewer",
"missing": false,
"username": "quis Ut ullamco cupidatat",
"name": "dolor commodo esse ea",
"provenance": "sint"
},
{
"type": "account",
"reference": "5cb7b531d06cceb89fd21b1c",
"role": "owner",
"missing": true,
"username": "dolore ex",
"name": "nisi",
"provenance": "elit"
}
],
"accessControl": {
"read": [
"cillum eu",
"ipsum dolor eiusmod ut Duis"
],
"write": [
"sint",
"dolore pariatur culpa",
"dolore est Duis ad",
"nulla mollit"
],
"execute": [
"id Ut laborum",
"eiusmod commodo amet",
"aliqua"
],
"manage": [
"magna",
"reprehenderit",
"sed"
]
},
"componentIidIndex": 60833470,
"components": [
{
"iid": 24562406,
"type": "mopAnalyticTemplate",
"reference": "mollit quis dolore dolore incididunt",
"folder": "/"
},
{
"iid": 16620397,
"type": "template",
"reference": "anim id cillum sit",
"folder": "/"
},
{
"iid": 28811588,
"type": "transformation",
"reference": "est",
"folder": "/"
},
{
"iid": 67465536,
"type": "template",
"reference": "esse Excepteur",
"folder": "/"
}
],
"created": "2019-11-25T22:51:39.201Z",
"createdBy": {
"_id": "Pronghorn",
"username": "adipisicing dolor in et est",
"provenance": "fugiat ea deserunt esse",
"missing": false
},
"lastUpdated": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": {
"_id": "Pronghorn",
"username": null,
"provenance": "ea mollit",
"missing": true
},
"versionHistory": [
{
"versionNumber": 70795909,
"commitMessage": "in pariatur sit consectetur",
"author": "culpa",
"branchName": "voluptate"
},
{
"versionNumber": -16499918,
"commitMessage": "laborum sed",
"author": "do ut veniam",
"branchName": "eiusmod"
},
{
"versionNumber": -67183251,
"commitMessage": "fugiat sit ad",
"author": "sunt voluptate in",
"branchName": "deserunt laborum"
},
{
"versionNumber": -86599295,
"commitMessage": "ut magna adipisicing Lorem non",
"author": "ullamco",
"branchName": "mollit commodo nostrud in quis"
}
],
"gitConfiguration": {
"connectionType": "GitHub",
"repositoryPath": "qui et sed",
"branchName": "nostrud",
"projectPath": "culpa tempor"
}
}
],
"metadata": {
"newComponents": [],
"failedComponents": [],
"idMap": [
{
"original": "1a643151-459b-4a4a-be91-623536b65df3",
"clone": "8696f332-030b-4c2a-8b1b-95844cbb6aea"
}
]
}
}
Copied to Clipboard
{
"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"
}
]
]
}
}
}
}
}