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

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;price&quot;:&quot;\u003cdouble\u003e&quot;,&quot;fairMarketValue&quot;:&quot;\u003cdouble\u003e&quot;,&quot;cost&quot;:&quot;\u003cdouble\u003e&quot;,&quot;inventoryCount&quot;:&quot;\u003cinteger\u003e&quot;,&quot;isActive&quot;:&quot;\u003cboolean\u003e&quot;,&quot;createDateTimeUtc&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;createdByUser&quot;:&quot;\u003cstring\u003e&quot;,&quot;modifiedDateTimeUtc&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;modifiedByUser&quot;:&quot;\u003cstring\u003e&quot;,&quot;customFields&quot;:[{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003cstring\u003e&quot;,&quot;displayName&quot;:&quot;\u003cstring\u003e&quot;},{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003cstring\u003e&quot;,&quot;displayName&quot;:&quot;\u003cstring\u003e&quot;}]}