Hi Aravind, i have tried editing pipeline config using PUT method and i am sending the Json on the basis of output i had using GETmethod for one pipeline but it is throwing an error while validating Json. below is the command i am using
$putResponse = D:\temp\curl.exe -X PUT -u 'test:****' -H 'Accept: application/vnd.go.cd.v4+json' -H 'Content-Type: application/json' -H 'If-Match: "********"' 'http://********:8153/go/api/admin/pipelines/testpipe' -d $text Request you to please help on this. Regards, Nitesh On Mon, Jan 11, 2021 at 4:51 PM Aravind SV <[email protected]> wrote: > Materials are part of a pipeline and so, they are updated using the “Edit > pipeline config” API call: > https://api.gocd.org/current/#edit-pipeline-config > > You’ll need to do a GET and then a PUT with an If-Match header based on > the GET response: > https://developer.mozilla.org/en-US/docs/Web/HTTP/Conditional_requests > -- Thanks&Regards Nitesh kumar -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CAKns_UktJ7vbxjgE_Ahu7qTmVz10xYivHVyke8PzaRLmGruP6A%40mail.gmail.com.
