Jump to: navigation, search

Modify Package

Method

PUT

Syntax

 
/grs/v1/tenant/{tenantId}/businessnode/{nodeId}/package/{packageId}

Request Body

 
{   
   "businessName":"New Business Name",
   "description":"New Description",
   "templates":[   
      {   
         "name":"XYZ",
         "version":1
      },
  {   
         "name":"AnotherTemplate",
         "version":2
      }
   ]
}

Response Body

 
{   
   "name":"XYZ",
   "type":"samples",
  "businessName":"New Business Name",
   "description":"New Description",
   "templates":[   
      {   
         "name":"SamplePackage",
         "version":1
      },
 
  {   
         "name":"AnotherTemplate",
         "version":2
      }
   ]
 
}

HTTP Status Code

  • 200 OK—Response body provided
  • 401 Unauthorized—APIToken not valid
  • 403 Forbidden—User does not have permission for the specified tenant or business node, or does not have proper permission to perform this operation.
  • 422 - Unprocessable Entity - Field Validation Error
[+]Show
  • 1005—templates—specified template: {templatename} version: {version} not found
  • 1006—businessName—business name already in use
  • 503—Service Unavailable

Notes

User must have MODIFY_PACKAGE permission. User can modify the following fields:

  • businessName
  • description
  • templates

Any other fields modified will be ignored.

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on May 16, 2017, at 00:20.