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": 73299939,
"type": "jsonForm",
"reference": "laboris dolor ex magna aute",
"folder": "/"
},
{
"iid": 75185852,
"type": "mopAnalyticTemplate",
"reference": "nulla anim do",
"folder": "/"
},
{
"iid": 10230145,
"type": "template",
"reference": "in aliqua",
"folder": "/"
}
],
"mode": "move"
}
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 sit",
"data": [
{
"_id": "5cb7b531d06cceb89fd21b1c",
"iid": 27461065,
"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": "62a1f3d2ebedfc54e6e0065c",
"role": "editor",
"missing": false,
"username": "Ut nisi",
"name": "adipisicing",
"provenance": "eu"
},
{
"type": "group",
"reference": "62a1f3d2ebedfc54e6e0065c",
"role": "viewer",
"missing": true,
"username": "in in reprehenderit deserunt dolore",
"name": "et minim dolore consequat fugiat",
"provenance": "est"
},
{
"type": "account",
"reference": "62a1f3d2ebedfc54e6e0065c",
"role": "operator",
"missing": true,
"username": "pariatur exercitation Ut",
"name": "sunt est in labore",
"provenance": "consequat laborum do"
},
{
"type": "group",
"reference": "4321abcdef694aa79dae47ad",
"role": "editor",
"missing": false,
"username": "incididunt dolore commodo minim in",
"name": "id",
"provenance": "in ex aliqua elit labore"
},
{
"type": "account",
"reference": "4321abcdef694aa79dae47ad",
"role": "viewer",
"missing": true,
"username": "pariatur",
"name": "incididunt sed",
"provenance": "irure sit"
}
],
"accessControl": {
"read": [
"adipisicing",
"voluptate sit",
"sint",
"aliqua magna est mollit"
],
"write": [
"deserunt est nostrud",
"aute pariatur id ad voluptate"
],
"execute": [
"consectetur"
],
"manage": [
"irure velit"
]
},
"componentIidIndex": 43075190,
"components": [
{
"iid": 21894143,
"type": "mopCommandTemplate",
"reference": "in velit laboris",
"folder": "/"
},
{
"iid": 94740978,
"type": "mopCommandTemplate",
"reference": "aute",
"folder": "/"
},
{
"iid": 3821925,
"type": "template",
"reference": "velit aliquip sed fugiat",
"folder": "/"
},
{
"iid": 50791437,
"type": "mopCommandTemplate",
"reference": "laboris in pariatur",
"folder": "/"
}
],
"created": "2019-11-25T22:51:39.201Z",
"createdBy": {
"_id": "62a1f3d2ebedfc54e6e0065c",
"username": "laborum deserunt nulla pariatur",
"provenance": "Ut magna occaecat",
"missing": false
},
"lastUpdated": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": {
"_id": "Pronghorn",
"username": null,
"provenance": "non dolor proident deserunt veniam",
"missing": true
},
"versionHistory": [
{
"versionNumber": -92864913,
"commitMessage": "tempor mollit cupidatat",
"author": "eiusmod Excepteur sed consectetur quis",
"branchName": "enim Duis nisi qui cillum"
},
{
"versionNumber": 57162075,
"commitMessage": "voluptate Lorem veniam proident",
"author": "eiusmod labore dolor",
"branchName": "veniam in"
},
{
"versionNumber": 2004264,
"commitMessage": "pariatur sint exercitation elit fugiat",
"author": "eiusmod officia culpa qui",
"branchName": "sed"
}
],
"gitConfiguration": {
"connectionType": "GitHub",
"repositoryPath": "cillum",
"branchName": "in velit",
"projectPath": "pariatur id 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"
}
]
]
}
}
}
}
}