|  Developer
Updated on June 23, 2022

hub.scenes.action.block.test

  • Version: 1.0
  • Classes: UI
  • Title: Scene manager categories
  • Description: Test action block workability
Edit
Field Type Required Description
block JsonObject + action block for scene
Edit
Field Type Required Description
httpAnswerCode int response code of http request
Edit
Code Message Data
-32600 Bad request,
-32600 Wrong params,
-32500 Scene is ill formed. Can’t parse then block
-32500 Scene is failed. There is no such method
Edit
Here is it an example of usage:
Edit
				
					{
   "id":"_ID_",
   "jsonrpc":"2.0",
   "method":"hub.scenes.action.block.test",
   "params":{
      "block":{
         "blockOptions":{
            "method":{
               "name":"sendHttpRequest",
               "args":{
                  "url":"url",
                  "request":"request"
               }
            }
         },
         "blockType":"then",
         "fields":[
            {
               "name":"url",
               "type":"string",
               "value":"https://ezlo.com/"
            },
            {
               "name":"request",
               "type":"string",
               "value":"POST"
            }
         ]
      }
   }
}				
			
Edit
				
					{
     "error": null,
     "id": "ID",
     "result": {
         "httpAnswerCode":200
     }
}