PATCH api/package/{id}
The purpose of this method is update selected packaged details of a specified package
Error messages
- 404/NotFound - Package with id x not found - Specified ID is not assigned to any packages
- 409/Conflict - Name must have a value - Specify a name
- 409/Conflict - Package name already exists- Name already exists. Specify a new name for the package.
- 409/Conflict - Consumer customers already using this package - Consumer customers are on this package therefore package can be changed from being a consumer package
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | The ID of the package to be updated | integer |
Required |
Body Parameters
PackageName | Description | Type | Additional information |
---|---|---|---|
Name | The name of the new package | string |
None. |
IsConsumer | Indicates whether the package is a consumer package | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "IsConsumer": true }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.