Creates an instruction with given parameters

Params

Param name Description
instruction
required

Map containing details of 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/v2/instructions

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