PUT api/Packages

Edit package

Request Information

URI Parameters

None.

Body Parameters

PackagesModels
NameDescriptionTypeAdditional information
ID

Package unique identifier

integer

Required

Cost

decimal number

None.

Description

string

None.

Enabled

boolean

Required

Name

string

Required

StorageLimit

In Gb

decimal number

None.

isGlacierRestoreLimit

boolean

Required

RestoreLimit

In Gb

decimal number

None.

GlacierRestoreType

Only for Amazon to Glacier accounts. Notes: 'Standard' = default value. 'No' = Do not restore files from Glacier

GlacierRestoreType

None.

UseRestoreLimit

User restore limit. Default value is 'false'

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Cost": 2.0,
  "Description": "sample string 3",
  "Enabled": true,
  "Name": "sample string 5",
  "StorageLimit": 6.1,
  "isGlacierRestoreLimit": true,
  "RestoreLimit": 1.1,
  "GlacierRestoreType": 0,
  "UseRestoreLimit": true
}

application/xml, text/xml

Sample:
<PackagesModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBSAPImvc.Engine.Models">
  <Cost>2</Cost>
  <Description>sample string 3</Description>
  <Enabled>true</Enabled>
  <GlacierRestoreType>Standard</GlacierRestoreType>
  <ID>1</ID>
  <Name>sample string 5</Name>
  <RestoreLimit>1.1</RestoreLimit>
  <StorageLimit>6.1</StorageLimit>
  <UseRestoreLimit>true</UseRestoreLimit>
  <isGlacierRestoreLimit>true</isGlacierRestoreLimit>
</PackagesModels>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.