Managing scripts using Rest APIs
Device ID mapping script
Following are the sample URLs to perform different actions:
- 
                    Upload curl -X POST "http://<Hostname>/rest/mqtt/script/deviceid-mapping" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "file=@DeviceIdMapper.zip;type=application/x-zip-compressed"
- 
                    Get http://<hostname>/rest/mqtt/script/<scriptName>
- 
                    Delete http://<hostname>/rest/mqtt/script/<scriptName>
Topic and payload mapping scripts
Following are the sample URLs to perform different actions:
        
    - 
                    Upload curl -X POST "http://shashimqtt/rest/mqtt/script/scriptupload" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "file=@GenericSensor_codec.zip;type=application/x-zip-compressed" -F "data={"manufacturer":"Generic","model":"Sensor","name":"upload-test"}"
- 
                    Get /rest/mqtt/script/scriptdownload/{manufacturer}/{model}
- 
                    Delete http://<hostname>/rest/mqtt/script/<scriptName>