Update Specific Manufacturer API
Require Authentication
This API is used to update specific manufacturer for the company based on combination of deviceID and token.
URL
api/manageassets/updatemanufacturer/:manufacturerID
Required parameter (in URL)
- :manufacturerID «contains manufacturerID that want to be updated. It must be put in the URL, e.g: api/manageassets/updatemanufacturer/4»
Required parameter (POST)
- deviceID
- token
Optional parameter
- manufacturerName «if passed, value must not be empty.»
- manufacturerAddress1
- manufacturerAddress2
- manufacturerCity
- manufacturerState
- manufacturerCountry
- manufacturerPostCode
- manufacturerWebsite
- manufacturerPhone
- manufacturerFax
Example JSON Payload
{ "deviceID": "ABCD-EFGH-IJKL-MNOP", "token": "bb602ab13b8090268cd6e3bb9dfa39e2", "manufacturerName": "test manufacturer API edit", "manufacturerAddress1": "address 1 edit" }
Possible return HTTP status code
- 200
- 400
- 401
- 404
- 405
Return message
{ "status": "success", "message": { "manufacturerID": 4, "manufacturerName": "test manufacturer API edit", "manufacturerAddress1": "address 1 edit", "manufacturerAddress2": "", "manufacturerCity": "", "manufacturerState": "", "manufacturerCountry": "", "manufacturerPostCode": "", "manufacturerWebsite": "", "manufacturerPhone": "", "manufacturerFax": "", "createdDate": 1453325512, "createdByUserID": null, "total_pintypes": 0, "total_projectpins": 0 } }