Skip to content

Commit

Permalink
Merge pull request cloudflare#228 from SteveGoldthorpe-Work/sg-fix-lo…
Browse files Browse the repository at this point in the history
…ckdown-update

add id to UpdateZoneLockdown POST uri cloudflare#227
  • Loading branch information
patryk authored Sep 10, 2018
2 parents cf07055 + 96d0f7a commit 4636758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lockdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (api *API) CreateZoneLockdown(zoneID string, ld ZoneLockdown) (*ZoneLockdow
//
// API reference: https://api.cloudflare.com/#zone-ZoneLockdown-update-ZoneLockdown-rule
func (api *API) UpdateZoneLockdown(zoneID string, id string, ld ZoneLockdown) (*ZoneLockdownResponse, error) {
uri := "/zones/" + zoneID + "/firewall/lockdowns"
uri := "/zones/" + zoneID + "/firewall/lockdowns/" + id
res, err := api.makeRequest("PUT", uri, ld)
if err != nil {
return nil, errors.Wrap(err, errMakeRequestError)
Expand Down

0 comments on commit 4636758

Please sign in to comment.