I think a POST request would be appropriate here even though jenkins supports a GET call. The request would be like this:
```ruby
@client.api_post_request("/job/#{job_name}/#{build_num}/toggleLogKeep")
```