Forum Discussion

eguo's avatar
eguo
Former Employee
9 years ago

Not able to use toggle endpoint to enable an ultra task

I am trying to use following toggle endpoint to enable or disable ultra task:

snap = REST POST
url = "https://elastic.snaplogic.com/api/1/rest/slsched/job/toggle%2F"+$snode_id
http entity = {"snode_id":$snode_id,"enabled":true}

I am getting:

{
  "error_entity": {
    "query_string": "",
    "path": "/api/1/rest/slsched/job/toggle/5935c7e1bc9ffa5b8bd6883e",
    "response_map": {
      "error_list": [
        {
          "message": "Expecting body argument for endpoint toggle_job: enabled"
        }
      ]
    },
    "http_status": "400 Bad Request",
    "http_status_code": 400
  }
}

What could I be doing wrong?

3 Replies