From 9c637654aa4bfd4cc41de851bf4ac3980c2ffdda Mon Sep 17 00:00:00 2001 From: Manuel Laflamme Date: Thu, 1 Sep 2022 14:06:56 -0400 Subject: [PATCH] Use PUT to update process variable instead of POST --- process-instance.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/process-instance.go b/process-instance.go index d101d12..8f2e783 100644 --- a/process-instance.go +++ b/process-instance.go @@ -451,11 +451,7 @@ func (p *ProcessInstance) ModifyProcessVariables(id string, req ReqModifyProcess // UpdateProcessVariable sets a variable of a given process instance by id. func (p *ProcessInstance) UpdateProcessVariable(by QueryProcessInstanceVariableBy, req ReqProcessVariable) error { - res, err := p.client.doPostJson(by.String(), nil, req) - if res != nil { - res.Body.Close() - } - return err + return p.client.doPutJson(by.String(), nil, req) } // Delete deletes a running process instance by id.