In fact, this should be:

```ruby
    def flag( worker_id, reason = nil, persist = false )
      params = {
        :reason => reason,
        :persist => persist
      }
      connection.put( "#{resource_uri}/#{worker_id}/flag", :body => params, :headers => { "Content-Length" => "0" } )
    end
```