PUT | /api/products/{id} | Update a Product |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | path | string | No | |
Name | body | string | No | |
Description | body | string | No | |
Price | body | decimal | No | |
ProductType | body | string | No | |
Year | body | int? | No | |
ApplicationId | body | string | No | |
RequiredProductId | body | string | No | |
Scope | body | string | No | |
Feature | body | string | No | |
ChildProductIds | body | List<string> | No | |
VolumeDiscounts | body | Dictionary<int, decimal> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Message | form | string | No | |
Status | form | HttpStatusCode | No | |
ResponseStatus | form | ResponseStatus | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /api/products/{id} HTTP/1.1
Host: accounts.dev.healthmonix.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"id":"String","name":"String","description":"String","price":0,"productType":"String","year":0,"applicationId":"String","requiredProductId":"String","scope":"String","feature":"String","childProductIds":["String"],"volumeDiscounts":{"0":0}}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"message":"String","status":"Continue","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}