AnsweredAssumed Answered

Can't create or edit a task variable

Question asked by pivyas on Jul 8, 2013
Latest reply on Sep 27, 2013 by jestermonkey
I am using POST Method with the url http://localhost:8080/activiti-rest/service/runtime/tasks/97821/variables to create new variables with the request body being
[
  {
    "name" : "myTaskVariable",
    "scope" : "local",
    "type" : "string",
    "value" : "Hello my friend"
  }
]

but am not able to create it. I keep getting the error
{
    "errorMessage": "Request didn't cantain a list of variables to create.",
    "statusCode": 400
}

No error is found in the tomcat logs. With PUT method also, I am getting the same error. Even when using "http://localhost:8080/activiti-rest/service/runtime/executions/97188/variables", I get the same error.
I am using chrome extension POSTMAN to make the rest-requests. Tried to pass the request body as Text/JSON/XML/HTML.. but same error is produced. Any help will be great. Thanks!!!

Outcomes