Update a Premium
PUT {{baseUrl}}/api/Premium/:premiumId
Similar to other update methods in the API, excluding a property will remove it's value from the object. If you're only updating a single property, the entire model is still required.
Request Body
{"name"=>"<string>", "code"=>"<string>", "price"=>"<double>", "fairMarketValue"=>"<double>", "description"=>"<string>", "cost"=>"<double>", "inventoryCount"=>"<integer>", "isActive"=>"<boolean>", "customFields"=>[{"name"=>"<string>", "value"=>"<string>", "displayName"=>"<string>"}, {"name"=>"<string>", "value"=>"<string>", "displayName"=>"<string>"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"id":"\u003cinteger\u003e","name":"\u003cstring\u003e","code":"\u003cstring\u003e","description":"\u003cstring\u003e","price":"\u003cdouble\u003e","fairMarketValue":"\u003cdouble\u003e","cost":"\u003cdouble\u003e","inventoryCount":"\u003cinteger\u003e","isActive":"\u003cboolean\u003e","createDateTimeUtc":"\u003cdateTime\u003e","createdByUser":"\u003cstring\u003e","modifiedDateTimeUtc":"\u003cdateTime\u003e","modifiedByUser":"\u003cstring\u003e","customFields":[{"name":"\u003cstring\u003e","value":"\u003cstring\u003e","displayName":"\u003cstring\u003e"},{"name":"\u003cstring\u003e","value":"\u003cstring\u003e","displayName":"\u003cstring\u003e"}]}