Creates an instruction with given parameters

Params

Param name Description
instruction
required

Object containing information about the instruction to be created


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 POST -H "Content-Type:application/json" -H "X-Auth-Token:olezAZXGQn9MutnfNerKDQ"  -d '{"instruction":{"name":"Increase Pressure 20 PSI","definition":{"add_pressure":20},"description":"Increases pressure by 20 PSI"}}' https://api.datonis.io/api/v3/instructions

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