use update instead of Put
@@ -43,7 +43,11 @@ func (api *API) GetAPIShieldConfiguration(ctx context.Context, rc *ResourceConta
return asResponse.Result, asResponse.ResultInfo, nil
}
-func (api *API) PutAPIShieldConfiguration(ctx context.Context, rc *ResourceContainer, apiShieldData APIShield) (Response, error) {
+type UpdateAPIShieldParams {
+ AuthIdCharacteristics []AuthIdCharacteristics `json:"auth_id_characteristics"`
+}
+
+func (api *API) UpdateAPIShieldConfiguration(ctx context.Context, rc *ResourceContainer, params UpdateAPIShieldParams) (Response, error) {
uri := fmt.Sprintf("/zones/%s/api_gateway/configuration", rc.Identifier)
data, err := json.Marshal(apiShieldData)
