Add New Manufacturer API
Require Authentication
This API is used to add new manufacturer for the company based on combination of deviceID and token.
URL
api/manageassets/addmanufacturer
Required parameter (POST)
- deviceID
- token
- manufacturerName «contains manufacturer name»
Optional parameter
- manufacturerAddress1
- manufacturerAddress2
- manufacturerCity
- manufacturerState
- manufacturerCountry
- manufacturerPostCode
- manufacturerWebsite
- manufacturerPhone
- manufacturerFax
Example JSON Payload
{ "deviceID": "ABCD-EFGH-IJKL-MNOP", "token": "bb602ab13b8090268cd6e3bb9dfa39e2", "manufacturerName": "test manufacturer API", "manufacturerAddress1": "address 1" }
Possible return HTTP status code
- 201
- 400
- 401
- 405
Return message, contains newly created asset category
{ "status": "success", "message": { "manufacturerID": 4, "manufacturerName": "test manufacturer API", "manufacturerAddress1": "address 1", "manufacturerAddress2": "", "manufacturerCity": "", "manufacturerState": "", "manufacturerCountry": "", "manufacturerPostCode": "", "manufacturerWebsite": "", "manufacturerPhone": "", "manufacturerFax": "", "createdDate": 1453324902, "createdByUserID": 3, "total_pintypes": 0, "total_projectpins": 0 } }