Updates an instruction with given parameters

Params

Param name Description
instruction
required

Object containing information about 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

Examples

Request
  curl -X PUT -H "Content-Type:application/json" -H "X-Auth-Token:olezAZXGQn9MutnfNerKDQ"  -d '{"instruction":{"name":"Increase Pressure 10 PSI","definition":{"add_pressure":10},"description":"Increases pressure by 10 PSI"}}' https://api.datonis.io/api/v3/instructions/2ab8dfe1b4

Response (containing details of the instruction updated)
{
  "instruction": {
    "definition": {
      "add_pressure": 10
    },
    "description": "Increases pressure by 10 PSI",
    "instruction_key": "2ab8dfe1b4",
    "name": "Increase Pressure 10 PSI",
    "created_at": 1448430636,
    "updated_at": 1448430747
  }
}