cancel
Showing results for 
Search instead for 
Did you mean: 

Put Method not supported on 'runtime/tasks/{taskId}/variables'

dataexpert
Champ in-the-making
Champ in-the-making
HI, i have a problem on update/insert variable of a task. On user guide there is a section that say if i want to insert new variables to task i have to use method Post, and if i wants to update variables that already exist i have to use Put.
But i get error 405 method put not supported.
Can someone help me please?

Thanks
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
Can you post the full url you are hitting and the json you are using?

dataexpert
Champ in-the-making
Champ in-the-making
PUT method with "runtime/tasks/{taskId}/variables"
request body is
[
  {
    "name" : "myTaskVariable",
    "scope" : "local",
    "type" : "string",
    "value" : "Hello my friend"
  },
  {

  }
]
this should insert new variable to a task or update already existing variable, not?

trademak
Star Contributor
Star Contributor
It should be runtime/tasks/{taskId}/variables/{variableName}

Best regards,