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": 92137433,
"type": "mopAnalyticTemplate",
"reference": "ad adipisicing",
"folder": "/"
},
{
"iid": 83762920,
"type": "workflow",
"reference": "laboris esse amet ullamco",
"folder": "/"
},
{
"iid": 23080187,
"type": "mopAnalyticTemplate",
"reference": "aliqua Ut Duis",
"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": "ad amet",
"data": [
{
"_id": "5cb7b531d06cceb89fd21b1c",
"iid": 21404465,
"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": "account",
"reference": "5cb7b531d06cceb89fd21b1c",
"role": "owner",
"missing": true,
"username": "ex Duis laborum amet enim",
"name": "consectetur exercitation reprehenderit veniam nulla",
"provenance": "nostrud dolor et"
},
{
"type": "account",
"reference": "5cb7b531d06cceb89fd21b1c",
"role": "viewer",
"missing": true,
"username": "nisi et quis",
"name": "dolore in tempor in",
"provenance": "anim culpa sed dolore"
},
{
"type": "account",
"reference": "4321abcdef694aa79dae47ad",
"role": "operator",
"missing": true,
"username": "et",
"name": "veniam in mollit Duis",
"provenance": "culpa minim adipisicing"
}
],
"accessControl": {
"read": [
"tempor elit"
],
"write": [
"do eiusmod",
"Excepteur",
"ad minim enim mollit sunt"
],
"execute": [
"culpa",
"eiusmod quis ex veniam",
"adipisicing in laboris ad"
],
"manage": [
"veniam commodo proident",
"ad ut eu quis"
]
},
"componentIidIndex": 63905915,
"components": [
{
"iid": 45885595,
"type": "mopAnalyticTemplate",
"reference": "culpa eiusmod reprehenderit aliqua",
"folder": "/"
}
],
"created": "2019-11-25T22:51:39.201Z",
"createdBy": {
"_id": "4321abcdef694aa79dae47ad",
"username": null,
"provenance": "reprehenderit",
"missing": false
},
"lastUpdated": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": {
"_id": "Pronghorn",
"username": null,
"provenance": "sit ad laboris dolor",
"missing": true
},
"versionHistory": [
{
"versionNumber": 52636714,
"commitMessage": "consequat",
"author": "ullamco",
"branchName": "veniam"
},
{
"versionNumber": 7253433,
"commitMessage": "labore dolor amet",
"author": "enim",
"branchName": "labore ea id ad exercitation"
},
{
"versionNumber": 88414591,
"commitMessage": "eiusmod aliqua",
"author": "aliqua do quis amet",
"branchName": "dolor Lorem"
},
{
"versionNumber": 58829881,
"commitMessage": "anim",
"author": "do officia in magna",
"branchName": "in"
}
],
"gitConfiguration": {
"connectionType": "GitLab",
"repositoryPath": "sunt exercitation nulla",
"branchName": "consequat Duis in dolore reprehenderit",
"projectPath": "ut proident quis in"
}
}
],
"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"
}
]
]
}
}
}
}
}