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": 2242377,
"type": "transformation",
"reference": "incididunt ea voluptate",
"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": "adipisicing minim ex",
"data": [
{
"_id": "62a1f3d2ebedfc54e6e0065c",
"iid": 97051597,
"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": "4321abcdef694aa79dae47ad",
"role": "editor",
"missing": false,
"username": "minim anim eu in est",
"name": "anim aliquip amet",
"provenance": "irure tempor ad"
},
{
"type": "group",
"reference": "5cb7b531d06cceb89fd21b1c",
"role": "viewer",
"missing": false,
"username": "pariatur",
"name": "nulla Lorem sint tempor do",
"provenance": "aute Duis pariatur non id"
},
{
"type": "account",
"reference": "4321abcdef694aa79dae47ad",
"role": "editor",
"missing": true,
"username": "Ut occaecat",
"name": "ex fugiat eu",
"provenance": "Excepteur"
}
],
"accessControl": {
"read": [
"dolore laboris dolor",
"sed",
"dolor fugiat laboris commodo",
"occaecat dolor magna cupidatat",
"sit voluptate proident adipisicing"
],
"write": [
"consequat ullamco veniam labore dolore",
"tempor",
"commodo eiusmod"
],
"execute": [
"esse dolor dolore Lorem eu",
"amet ut non velit",
"occaecat minim deserunt sit",
"ut sed"
],
"manage": [
"laboris ipsum aute",
"sint ad dolore minim eu"
]
},
"componentIidIndex": 92104479,
"components": [
{
"iid": 27110066,
"type": "mopCommandTemplate",
"reference": "irure amet ullamco velit",
"folder": "/"
}
],
"created": "2019-11-25T22:51:39.201Z",
"createdBy": {
"_id": "Pronghorn",
"username": null,
"provenance": "nostrud aliquip dolor ullamco",
"missing": false
},
"lastUpdated": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": {
"_id": "Pronghorn",
"username": "nulla culpa nisi amet",
"provenance": "proident Lorem occaecat",
"missing": true
},
"versionHistory": [
{
"versionNumber": -70069859,
"commitMessage": "ad non tempor",
"author": "nisi cupidatat ad qui veniam",
"branchName": "ex culpa"
},
{
"versionNumber": 15583023,
"commitMessage": "ex",
"author": "in exercitation sed",
"branchName": "ea laborum"
},
{
"versionNumber": -40811678,
"commitMessage": "cupidatat ipsum",
"author": "dolor",
"branchName": "aliqua"
},
{
"versionNumber": -23207576,
"commitMessage": "ipsum magna anim sit",
"author": "ex aliqua ut culpa deserunt",
"branchName": "reprehenderit adipisicing"
}
],
"gitConfiguration": {
"connectionType": "GitHub",
"repositoryPath": "mollit cillum adipisicing",
"branchName": "sunt deserunt Lorem minim",
"projectPath": "ex in cupidatat"
}
}
],
"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"
}
]
]
}
}
}
}
}