func (c *Client) UpdateSiteConfiguration(config *schema.SiteConfiguration) error {
	input, err := jsoniter.Marshal(config)
	if err != nil {
		return errors.Wrap(err, "marshal configuration")
	}

	const query = `
mutation UpdateSiteConfiguration($input: String!) {
	updateSiteConfiguration(lastID: 0, input: $input)
}
`
	variables := map[string]interface{}{
		"input": string(input),
	}
	err = c.GraphQL("", query, variables, nil)
	if err != nil {
		return errors.Wrap(err, "request GraphQL")
	}
	return nil
}
// UpdateSiteConfiguration updates site configuration.
//
// This method requires the authenticated user to be a site admin.
UpdateSiteConfiguration updates site configuration.

This method requires the authenticated user to be a site admin.
// UpdateSiteConfiguration updates site configuration . // // This method requires the authenticated user to be a site admin .
func (c *Client) UpdateSiteConfiguration(config *schema.SiteConfiguration) error {
	input, err := jsoniter.Marshal(config)
	if err != nil {
		return errors.Wrap(err, "marshal configuration")
	}
	const query = `
mutation UpdateSiteConfiguration($input: String!) {
	updateSiteConfiguration(lastID: 0, input: $input)
}
`
	variables := map[string]interface{}{
		"input": string(input),
	}
	err = c.GraphQL("", query, variables, nil)
	if err != nil {
		return errors.Wrap(err, "request GraphQL")
	}
	return nil
}
func ( c * Client ) UpdateSiteConfiguration ( config * schema . SiteConfiguration ) error { input , err := jsoniter . Marshal ( config ) if err != nil { return errors . Wrap ( err , " " ) } const query = `
mutation UpdateSiteConfiguration($input: String!) {
	updateSiteConfiguration(lastID: 0, input: $input)
}
` variables := map [ string ] interface { } { " " : string ( input ) , } err = c . GraphQL ( " " , query , variables , nil ) if err != nil { return errors . Wrap ( err , " " ) } return nil }
UpdateSiteConfiguration updates site configuration.
UpdateSiteConfiguration updates site configuration .