PATCH Pipeline API

It would be nice to patch specific things within the yaml using the Update pipeline. I am trying to update just the agent tag, but finding something like this doesn’t seem to exist on your platforms API.

This is an interesting idea!

I’m not sure how easily we could achieve it in practice – because the YAML is fundamentally an arbitrary string, and we can’t {deserialize, edit, reserialize} without losing things like YAML anchors (and comments).

But it’s definitely worth exploring; I can see how it would make a variety of incremental changes much easier for an API client.

I tried doing it by retrieving the configuration yaml from the api, altered the target string with sed then tried to insert it back in via update pipeline API but I think I need to escape some characters and quotes.