Updates an instruction with given parameters
Param name | Description |
---|---|
instruction required |
Map containing details of the instruction to be updated Value: Must be a Hash |
pretty optional |
Return a pretty formatted response if true, Default is false Value: Must be a Boolean |
Request curl -X PUT -H "Content-Type:application/json" -H "X-Auth-Token:olezAZXGQn9MutnfNerKDQ" -d '{"instruction":{"name":"Increase Pressure 30 PSI","definition":{"add_pressure":30},"description":"Increases pressure by 30 PSI"}}' https://api.datonis.io/api/v2/instructions/2bbdt86783 Response (containing details of the instruction updated) { "instruction": { "created_at": 1425297763, "updated_at": 1425297763, "definition": { "add_pressure": 30 }, "description": "Increases pressure by 30 PSI", "instruction_key": "2bbdt86783", "name": "Increase Pressure 30 PSI" } }