Summary
Update a prebuilt
Description
Update a prebuilt in IAP.
Route
PUT /prebuilts/:id
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
id |
string |
yes |
The object id of the selected prebuilt. |
prebuilt |
object |
yes |
The data for a prebuilt. |
Copied to Clipboard
{
"prebuilt": {
"metadata": {
"name": "@itentialopensource/cisco-nx-upgrade",
"version": "0.1.0",
"description": "A basic description",
"author": "Itential Artifacts",
"license": "Apache-2.0",
"repository": {
"type": "git",
"hostname": "gitlab.com",
"path": "/itentialopensource/pre-built-automations"
},
"keywords": [
"Itential",
"Itential"
],
"gitlabId": 17866482
},
"manifest": {
"bundleName": "aggregateFunctions",
"artifacts": [
{
"id": "5e5ea3bd16da51d52b4a8f9f",
"name": "aggregateFunctions",
"type": "golden-config",
"location": "/bundles/workflows/IAP Test Artifact Workflow.json"
},
{
"id": "5e5ea3bd16da51d52b4a8f9f",
"name": "aggregateFunctions",
"type": "mop-template",
"location": "/bundles/workflows/IAP Test Artifact Workflow.json"
},
{
"id": "5e5ea3bd16da51d52b4a8f9f",
"name": "aggregateFunctions",
"type": "golden-config",
"location": "/bundles/workflows/IAP Test Artifact Workflow.json"
},
{
"id": "5e5ea3bd16da51d52b4a8f9f",
"name": "aggregateFunctions",
"type": "template",
"location": "/bundles/workflows/IAP Test Artifact Workflow.json"
}
],
"fingerprint": "5e84f892c5eab11ec2eee16d",
"createdEpoch": "1585772690392"
},
"bundles": [
{
"type": "integration"
},
{
"type": "golden-config"
},
{
"type": "template"
},
{
"type": "integration-model"
}
],
"readme": "example of readme"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"prebuilt": {
"title": "prebuilt",
"$ref": "prebuilts-schema"
}
},
"required": [
"prebuilt"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The output of the prebuilt update process. |
Copied to Clipboard
{
"status": "Created",
"message": "A sample success message",
"data": {
"metadata": {
"name": "@itentialopensource/cisco-nx-upgrade",
"version": "0.1.0",
"description": "A basic description",
"author": "Itential Artifacts",
"license": "Apache-2.0",
"repository": {
"type": "git",
"hostname": "gitlab.com",
"path": "/itentialopensource/pre-built-automations"
},
"keywords": [
"Itential",
"Itential",
"Itential",
"Itential",
"Itential"
],
"gitlabId": 17866482
},
"manifest": {
"bundleName": "aggregateFunctions",
"artifacts": [
{
"id": "5e5ea3bd16da51d52b4a8f9f",
"name": "aggregateFunctions",
"type": "integration",
"location": "/bundles/workflows/IAP Test Artifact Workflow.json"
},
{
"id": "5e5ea3bd16da51d52b4a8f9f",
"name": "aggregateFunctions",
"type": "golden-config",
"location": "/bundles/workflows/IAP Test Artifact Workflow.json"
}
],
"fingerprint": "5e84f892c5eab11ec2eee16d",
"createdEpoch": "1585772690392"
},
"bundles": [
{
"type": "template"
},
{
"type": "golden-config"
},
{
"type": "workflow"
},
{
"type": "integration-model"
}
],
"readme": "example of readme"
}
}