SiteSettingsService#

class SiteSettingsService[source]#

Methods

get_all

Get the settings for this CodeGrade instance.

patch

Update the settings for this CodeGrade instance.

get_all(*, only_frontend=False, extra_parameters=None)[source]#

Get the settings for this CodeGrade instance.

Parameters:
  • only_frontend (bool) – Get only the frontend settings.

  • extra_parameters (Optional[Mapping[str, Union[str, bool, int, float]]]) – The extra query parameters you might want to add. By default no extra query parameters are added.

Returns:

The site settings for this instance.

Return type:

AllSiteSettings | FrontendSiteSettings

patch(json_body, *, extra_parameters=None)[source]#

Update the settings for this CodeGrade instance.

Parameters:
Returns:

The updated site settings.

Return type:

AllSiteSettings