// Update a specific Export Configuration.
Update a specific Export Configuration.
// Update a specific Export Configuration .
func (c *DefaultApiService) UpdateExportConfiguration(ResourceType string, params *UpdateExportConfigurationParams) (*BulkexportsV1ExportConfiguration, error) {
	path := "/v1/Exports/{ResourceType}/Configuration"
	path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1)
	data := url.Values{}
	headers := make(map[string]interface{})
	if params != nil && params.Enabled != nil {
		data.Set("Enabled", fmt.Sprint(*params.Enabled))
	}
	if params != nil && params.WebhookMethod != nil {
		data.Set("WebhookMethod", *params.WebhookMethod)
	}
	if params != nil && params.WebhookUrl != nil {
		data.Set("WebhookUrl", *params.WebhookUrl)
	}
	resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()
	ps := &BulkexportsV1ExportConfiguration{}
	if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
		return nil, err
	}
	return ps, err
}
func ( c * DefaultApiService ) UpdateExportConfiguration ( ResourceType string , params * UpdateExportConfigurationParams ) ( * BulkexportsV1ExportConfiguration , error ) { path := " " path = strings . Replace ( path , " " + " " + " " , ResourceType , - 1 ) data := url . Values { } headers := make ( map [ string ] interface { } ) if params != nil && params . Enabled != nil { data . Set ( " " , fmt . Sprint ( * params . Enabled ) ) } if params != nil && params . WebhookMethod != nil { data . Set ( " " , * params . WebhookMethod ) } if params != nil && params . WebhookUrl != nil { data . Set ( " " , * params . WebhookUrl ) } resp , err := c . requestHandler . Post ( c . baseURL + path , data , headers ) if err != nil { return nil , err } defer resp . Body . Close ( ) ps := & BulkexportsV1ExportConfiguration { } if err := json . NewDecoder ( resp . Body ) . Decode ( ps ) ; err != nil { return nil , err } return ps , err }
Update a specific Export Configuration.
Update a specific Export Configuration .