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": 77348996,
"type": "transformation",
"reference": "sit sint est",
"folder": "/"
},
{
"iid": 31223796,
"type": "mopAnalyticTemplate",
"reference": "cupidatat labore fugiat commodo",
"folder": "/"
},
{
"iid": 30773475,
"type": "workflow",
"reference": "aliquip commodo nulla",
"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": "est aliquip",
"data": [
{
"_id": "4321abcdef694aa79dae47ad",
"iid": 2154586,
"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": "owner",
"missing": false,
"username": "cillum fugiat ad minim ex",
"name": "magna",
"provenance": "non eu irure"
},
{
"type": "group",
"reference": "5cb7b531d06cceb89fd21b1c",
"role": "operator",
"missing": true,
"username": "eu",
"name": "sunt",
"provenance": "sit"
},
{
"type": "group",
"reference": "4321abcdef694aa79dae47ad",
"role": "owner",
"missing": false,
"username": "minim eiusmod",
"name": "eu in id Lorem",
"provenance": "consectetur est ipsum sit"
},
{
"type": "account",
"reference": "5cb7b531d06cceb89fd21b1c",
"role": "owner",
"missing": true,
"username": "eiusmod",
"name": "sit laboris ullamco",
"provenance": "laboris ex elit dolore"
}
],
"accessControl": {
"read": [
"laboris nostrud aliqua laborum"
],
"write": [
"labore amet qui",
"commodo mollit sit in eiusmod",
"mollit nisi",
"ut",
"enim cillum esse ea non"
],
"execute": [
"mollit",
"anim laborum ullamco mollit",
"cillum",
"commodo qui id quis occaecat"
],
"manage": [
"non adipisicing sit",
"amet veniam",
"reprehenderit sunt nulla mollit dolor",
"ipsum voluptate irure dolore et"
]
},
"componentIidIndex": 65193759,
"components": [
{
"iid": 61551984,
"type": "mopCommandTemplate",
"reference": "incididunt adipisicing",
"folder": "/"
},
{
"iid": 6665648,
"type": "template",
"reference": "sunt deserunt adipisicing",
"folder": "/"
},
{
"iid": 6586007,
"type": "transformation",
"reference": "est esse aute exercitation",
"folder": "/"
}
],
"created": "2019-11-25T22:51:39.201Z",
"createdBy": {
"_id": "5cb7b531d06cceb89fd21b1c",
"username": null,
"provenance": "ullamco in",
"missing": false
},
"lastUpdated": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": {
"_id": "5cb7b531d06cceb89fd21b1c",
"username": "aliqua",
"provenance": "eu irure laborum exercitation nisi",
"missing": false
},
"versionHistory": [
{
"versionNumber": -36273896,
"commitMessage": "elit deserunt ex",
"author": "voluptate consectetur",
"branchName": "sit ullamco dolor"
},
{
"versionNumber": -35678091,
"commitMessage": "est Duis do ut",
"author": "ad laboris in",
"branchName": "mollit do in ea"
},
{
"versionNumber": 43526156,
"commitMessage": "ipsum laborum",
"author": "consectetur est sunt",
"branchName": "ex qui"
}
],
"gitConfiguration": {
"connectionType": "GitLab",
"repositoryPath": "sed aliqua pariatur reprehenderit proident",
"branchName": "do ipsum labore",
"projectPath": "dolor Lorem"
}
}
],
"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"
}
]
]
}
}
}
}
}