> For the complete documentation index, see [llms.txt](https://docs.defguard.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.defguard.net/for-developers/rest-api/core/settings/restore-default-branding-settings.md).

# Restore default branding settings

```json
{"openapi":"3.1.0","info":{"title":"defguard Core API","version":"2.0.3"},"tags":[{"name":"settings","description":"Instance and enterprise settings."}],"security":[{"cookie":[]},{"api_token":[]}],"components":{"securitySchemes":{"cookie":{"type":"apiKey","in":"cookie","name":"defguard_session"},"api_token":{"type":"http","scheme":"bearer"}},"schemas":{"Settings":{"allOf":[{"$ref":"#/components/schemas/SmtpSettings"},{"type":"object","required":["openid_enabled","wireguard_enabled","webhooks_enabled","worker_enabled","challenge_template","instance_name","main_logo_url","nav_logo_url","enrollment_vpn_step_optional","enrollment_use_welcome_message_as_email","enrollment_send_welcome_email","ldap_use_starttls","ldap_tls_verify_cert","ldap_sync_status","ldap_enabled","ldap_sync_enabled","ldap_is_authoritative","ldap_uses_ad","ldap_sync_account_status","ldap_sync_interval","ldap_user_auxiliary_obj_classes","ldap_sync_groups","ldap_remote_enrollment_enabled","ldap_remote_enrollment_send_invite","openid_create_account","openid_username_handling","gateway_disconnect_notifications_enabled","gateway_disconnect_notifications_inactivity_threshold","gateway_disconnect_notifications_reconnect_notification_enabled","defguard_url","default_admin_group_name","authentication_period_days","mfa_code_timeout_seconds","public_proxy_url","enable_stats_purge","stats_purge_frequency_hours","stats_purge_threshold_days","enrollment_token_timeout_hours","password_reset_token_timeout_hours","enrollment_session_timeout_minutes","password_reset_session_timeout_minutes"],"properties":{"authentication_period_days":{"type":"integer","format":"int32"},"challenge_template":{"type":"string"},"default_admin_group_name":{"type":"string"},"default_admin_id":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/i64"}]},"defguard_url":{"type":"string"},"enable_stats_purge":{"type":"boolean"},"enrollment_send_welcome_email":{"type":"boolean"},"enrollment_session_timeout_minutes":{"type":"integer","format":"int32"},"enrollment_token_timeout_hours":{"type":"integer","format":"int32"},"enrollment_use_welcome_message_as_email":{"type":"boolean"},"enrollment_vpn_step_optional":{"type":"boolean"},"enrollment_welcome_email":{"type":["string","null"]},"enrollment_welcome_email_subject":{"type":["string","null"]},"enrollment_welcome_message":{"type":["string","null"]},"gateway_disconnect_notifications_enabled":{"type":"boolean"},"gateway_disconnect_notifications_inactivity_threshold":{"type":"integer","format":"int32"},"gateway_disconnect_notifications_reconnect_notification_enabled":{"type":"boolean"},"instance_name":{"type":"string"},"ldap_bind_password":{"type":["string","null"]},"ldap_bind_username":{"type":["string","null"]},"ldap_enabled":{"type":"boolean"},"ldap_group_member_attr":{"type":["string","null"]},"ldap_group_obj_class":{"type":["string","null"]},"ldap_group_search_base":{"type":["string","null"]},"ldap_groupname_attr":{"type":["string","null"]},"ldap_is_authoritative":{"type":"boolean"},"ldap_member_attr":{"type":["string","null"]},"ldap_remote_enrollment_enabled":{"type":"boolean"},"ldap_remote_enrollment_send_invite":{"type":"boolean"},"ldap_sync_account_status":{"type":"boolean"},"ldap_sync_enabled":{"type":"boolean"},"ldap_sync_groups":{"type":"array","items":{"type":"string"}},"ldap_sync_interval":{"type":"integer","format":"int32"},"ldap_sync_status":{"$ref":"#/components/schemas/LdapSyncStatus"},"ldap_tls_verify_cert":{"type":"boolean"},"ldap_url":{"type":["string","null"]},"ldap_use_starttls":{"type":"boolean"},"ldap_user_auxiliary_obj_classes":{"type":"array","items":{"type":"string"}},"ldap_user_obj_class":{"type":["string","null"]},"ldap_user_rdn_attr":{"type":["string","null"]},"ldap_user_search_base":{"type":["string","null"]},"ldap_username_attr":{"type":["string","null"]},"ldap_uses_ad":{"type":"boolean"},"license":{"type":["string","null"]},"main_logo_url":{"type":"string"},"mfa_code_timeout_seconds":{"type":"integer","format":"int32"},"nav_logo_url":{"type":"string"},"openid_create_account":{"type":"boolean"},"openid_enabled":{"type":"boolean"},"openid_username_handling":{"$ref":"#/components/schemas/OpenIdUsernameHandling"},"password_reset_session_timeout_minutes":{"type":"integer","format":"int32"},"password_reset_token_timeout_hours":{"type":"integer","format":"int32"},"public_proxy_url":{"type":"string"},"secret_key":{"type":["string","null"]},"stats_purge_frequency_hours":{"type":"integer","format":"int32"},"stats_purge_threshold_days":{"type":"integer","format":"int32"},"webhooks_enabled":{"type":"boolean"},"wireguard_enabled":{"type":"boolean"},"worker_enabled":{"type":"boolean"}}}],"description":"Instance settings."},"SmtpSettings":{"type":"object","required":["smtp_encryption","smtp_authentication"],"properties":{"smtp_authentication":{"$ref":"#/components/schemas/SmtpAuthentication"},"smtp_encryption":{"$ref":"#/components/schemas/SmtpEncryption"},"smtp_oauth_client_id":{"type":["string","null"]},"smtp_oauth_client_secret":{"type":["string","null"]},"smtp_oauth_issuer_url":{"type":["string","null"]},"smtp_oauth_refresh_token":{"type":["string","null"]},"smtp_oauth_tenant_id":{"type":["string","null"]},"smtp_password":{"type":["string","null"]},"smtp_port":{"type":["integer","null"],"format":"int32"},"smtp_sender":{"type":["string","null"]},"smtp_server":{"type":["string","null"]},"smtp_user":{"type":["string","null"]}}},"SmtpAuthentication":{"type":"string","enum":["None","Login","XOAuth2"]},"SmtpEncryption":{"type":"string","enum":["None","StartTls","ImplicitTls"]},"i64":{"type":"integer","format":"int64"},"LdapSyncStatus":{"type":"string","enum":["InSync","OutOfSync"]},"OpenIdUsernameHandling":{"type":"string","enum":["RemoveForbidden","ReplaceForbidden","PruneEmailDomain"]},"ApiErrorResponse":{"type":"object","description":"Body returned with error responses.","required":["msg"],"properties":{"code":{"type":["string","null"],"description":"Machine-readable error code, returned for selected errors."},"msg":{"type":"string","description":"Human-readable error message."}}}}},"paths":{"/api/v1/settings/{id}":{"put":{"tags":["settings"],"summary":"Restore default branding settings","operationId":"set_default_branding","parameters":[{"name":"id","in":"path","description":"Not used.","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Instance settings, with the branding fields restored to defaults.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Settings"}}}},"401":{"description":"Session is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"403":{"description":"Requires admin privileges.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Unable to restore default branding settings.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}}}}
```
