Chilkat Online Tools

Swift3 / Support API / Update Account Settings

Back to Collection Items

func chilkatTest() {
    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    let http = CkoHttp()!
    var success: Bool

    http.basicAuth = true
    http.login = "login"
    http.password = "password"

    http.setRequestHeader("Accept", value: "application/json")

    var resp: CkoHttpResponse? = http.quickRequest("PUT", url: "https://example.zendesk.com/api/v2/account/settings")
    if http.lastMethodSuccess == false {
        print("\(http.lastErrorText!)")
        return
    }

    let sbResponseBody = CkoStringBuilder()!
    resp!.getBodySb(sbResponseBody)

    let jResp = CkoJsonObject()!
    jResp.loadSb(sbResponseBody)
    jResp.emitCompact = false

    print("Response Body:")
    print("\(jResp.emit()!)")

    var respStatusCode: Int = resp!.statusCode.intValue
    print("Response Status Code = \(respStatusCode)")
    if respStatusCode >= 400 {
        print("Response Header:")
        print("\(resp!.header!)")
        print("Failed.")
        resp = nil
        return
    }

    resp = nil

    // Sample JSON response:
    // (Sample code for parsing the JSON response is shown below)

    // {
    //   "settings": {
    //     "active_features": {
    //       "advanced_analytics": "<boolean>",
    //       "agent_forwarding": "<boolean>",
    //       "allow_ccs": "<boolean>",
    //       "allow_email_template_customization": "<boolean>",
    //       "automatic_answers": "<boolean>",
    //       "bcc_archiving": "<boolean>",
    //       "benchmark_opt_out": "<boolean>",
    //       "business_hours": "<boolean>",
    //       "chat": "<boolean>",
    //       "chat_about_my_ticket": "<boolean>",
    //       "csat_reason_code": "<boolean>",
    //       "custom_dkim_domain": "<boolean>",
    //       "customer_context_as_default": "<boolean>",
    //       "customer_satisfaction": "<boolean>",
    //       "dynamic_contents": "<boolean>",
    //       "explore": "<boolean>",
    //       "explore_on_support_ent_plan": "<boolean>",
    //       "explore_on_support_pro_plan": "<boolean>",
    //       "facebook": "<boolean>",
    //       "facebook_login": "<boolean>",
    //       "fallback_composer": "<boolean>",
    //       "forum_analytics": "<boolean>",
    //       "good_data_and_explore": "<boolean>",
    //       "google_login": "<boolean>",
    //       "insights": "<boolean>",
    //       "is_abusive": "<boolean>",
    //       "light_agents": "<boolean>",
    //       "markdown": "<boolean>",
    //       "on_hold_status": "<boolean>",
    //       "rich_content_in_emails": "<boolean>",
    //       "sandbox": "<boolean>",
    //       "satisfaction_prediction": "<boolean>",
    //       "suspended_ticket_notification": "<boolean>",
    //       "ticket_forms": "<boolean>",
    //       "ticket_tagging": "<boolean>",
    //       "topic_suggestion": "<boolean>",
    //       "twitter": "<boolean>",
    //       "twitter_login": "<boolean>",
    //       "user_org_fields": "<boolean>",
    //       "user_tagging": "<boolean>",
    //       "voice": "<boolean>"
    //     },
    //     "agents": {
    //       "agent_workspace": "<boolean>",
    //       "aw_self_serve_migration_enabled": "<boolean>",
    //       "focus_mode": "<boolean>",
    //       "idle_timeout_enabled": "<boolean>",
    //       "unified_agent_statuses": "<boolean>"
    //     },
    //     "api": {
    //       "accepted_api_agreement": "<boolean>",
    //       "api_password_access": "<string>",
    //       "api_token_access": "<string>"
    //     },
    //     "apps": {
    //       "create_private": "<boolean>",
    //       "create_public": "<boolean>",
    //       "use": "<boolean>"
    //     },
    //     "billing": {
    //       "backend": "<string>"
    //     },
    //     "branding": {
    //       "favicon_url": "<string>",
    //       "header_color": "<string>",
    //       "header_logo_url": "<string>",
    //       "page_background_color": "<string>",
    //       "tab_background_color": "<string>",
    //       "text_color": "<string>"
    //     },
    //     "brands": {
    //       "default_brand_id": "<integer>",
    //       "require_brand_on_new_tickets": "<boolean>"
    //     },
    //     "cdn": {
    //       "cdn_provider": "<string>",
    //       "fallback_cdn_provider": "<string>",
    //       "hosts": [
    //         {
    //           "name": "<string>",
    //           "url": "<string>"
    //         },
    //         {
    //           "name": "<string>",
    //           "url": "<string>"
    //         }
    //       ]
    //     },
    //     "chat": {
    //       "available": "<boolean>",
    //       "enabled": "<boolean>",
    //       "integrated": "<boolean>",
    //       "maximum_request_count": "<integer>",
    //       "welcome_message": "<string>"
    //     },
    //     "cross_sell": {
    //       "show_chat_tooltip": "<boolean>",
    //       "xsell_source": "<string>"
    //     },
    //     "gooddata_advanced_analytics": {
    //       "enabled": "<boolean>"
    //     },
    //     "google_apps": {
    //       "has_google_apps": "<boolean>",
    //       "has_google_apps_admin": "<boolean>"
    //     },
    //     "groups": {
    //       "check_group_name_uniqueness": "<boolean>"
    //     },
    //     "limits": {
    //       "attachment_size": "<integer>"
    //     },
    //     "localization": {
    //       "locale_ids": [
    //         "<integer>",
    //         "<integer>"
    //       ]
    //     },
    //     "lotus": {
    //       "pod_id": "<integer>",
    //       "prefer_lotus": "<boolean>",
    //       "reporting": "<boolean>"
    //     },
    //     "metrics": {
    //       "account_size": "<string>"
    //     },
    //     "onboarding": {
    //       "checklist_onboarding_version": "<integer>",
    //       "onboarding_segments": "<string>",
    //       "product_sign_up": "<string>"
    //     },
    //     "routing": {
    //       "autorouting_tag": "<string>",
    //       "enabled": "<boolean>",
    //       "max_email_capacity": "<integer>",
    //       "max_messaging_capacity": "<integer>",
    //       "reassignment_messaging_enabled": "<boolean>",
    //       "reassignment_messaging_timeout": "<integer>",
    //       "reassignment_talk_timeout": "<integer>"
    //     },
    //     "rule": {
    //       "macro_most_used": "<boolean>",
    //       "macro_order": "<string>",
    //       "skill_based_filtered_views": [
    //         {
    //           "in523": 60303840.72385332
    //         },
    //         {
    //           "estc": "eu aliquip id"
    //         }
    //       ],
    //       "using_skill_based_routing": "<boolean>"
    //     },
    //     "side_conversations": {
    //       "email_channel": "<boolean>",
    //       "msteams_channel": "<boolean>",
    //       "show_in_context_panel": "<boolean>",
    //       "slack_channel": "<boolean>",
    //       "tickets_channel": "<boolean>"
    //     },
    //     "statistics": {
    //       "forum": "<boolean>",
    //       "rule_usage": "<boolean>",
    //       "search": "<boolean>"
    //     },
    //     "ticket_form": {
    //       "raw_ticket_forms_instructions": "<string>",
    //       "ticket_forms_instructions": "<string>"
    //     },
    //     "ticket_sharing_partners": {
    //       "support_addresses": [
    //         "<string>",
    //         "<string>"
    //       ]
    //     },
    //     "tickets": {
    //       "accepted_new_collaboration_tos": "<boolean>",
    //       "agent_collision": "<boolean>",
    //       "agent_ticket_deletion": "<boolean>",
    //       "allow_group_reset": "<boolean>",
    //       "assign_default_organization": "<boolean>",
    //       "assign_tickets_upon_solve": "<boolean>",
    //       "auto_updated_ccs_followers_rules": "<boolean>",
    //       "collaboration": "<boolean>",
    //       "comments_public_by_default": "<boolean>",
    //       "email_attachments": "<boolean>",
    //       "emoji_autocompletion": "<boolean>",
    //       "follower_and_email_cc_collaborations": "<boolean>",
    //       "has_color_text": "<boolean>",
    //       "is_first_comment_private_enabled": "<boolean>",
    //       "light_agent_email_ccs_allowed": "<boolean>",
    //       "list_empty_views": "<boolean>",
    //       "list_newest_comments_first": "<boolean>",
    //       "markdown_ticket_comments": "<boolean>",
    //       "maximum_personal_views_to_list": "<integer>",
    //       "private_attachments": "<boolean>",
    //       "rich_text_comments": "<boolean>",
    //       "status_hold": "<boolean>",
    //       "tagging": "<boolean>",
    //       "using_skill_based_routing": "<boolean>"
    //     },
    //     "twitter": {
    //       "shorten_url": "<string>"
    //     },
    //     "user": {
    //       "agent_created_welcome_emails": "<boolean>",
    //       "end_user_phone_number_validation": "<boolean>",
    //       "have_gravatars_enabled": "<boolean>",
    //       "language_selection": "<boolean>",
    //       "multiple_organizations": "<boolean>",
    //       "tagging": "<boolean>",
    //       "time_zone_selection": "<boolean>"
    //     },
    //     "voice": {
    //       "agent_confirmation_when_forwarding": "<boolean>",
    //       "agent_wrap_up_after_calls": "<boolean>",
    //       "enabled": "<boolean>",
    //       "logging": "<boolean>",
    //       "maximum_queue_size": "<integer>",
    //       "maximum_queue_wait_time": "<integer>",
    //       "only_during_business_hours": "<boolean>",
    //       "outbound_enabled": "<boolean>",
    //       "recordings_public": "<boolean>",
    //       "uk_mobile_forwarding": "<boolean>"
    //     }
    //   }
    // }

    // Sample code for parsing the JSON response...
    // Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

    var name: String?
    var url: String?
    var strVal: String?
    var in523: String?
    var estc: String?

    var Advanced_analytics: String? = jResp.string(of: "settings.active_features.advanced_analytics")
    var Agent_forwarding: String? = jResp.string(of: "settings.active_features.agent_forwarding")
    var Allow_ccs: String? = jResp.string(of: "settings.active_features.allow_ccs")
    var Allow_email_template_customization: String? = jResp.string(of: "settings.active_features.allow_email_template_customization")
    var Automatic_answers: String? = jResp.string(of: "settings.active_features.automatic_answers")
    var Bcc_archiving: String? = jResp.string(of: "settings.active_features.bcc_archiving")
    var Benchmark_opt_out: String? = jResp.string(of: "settings.active_features.benchmark_opt_out")
    var Business_hours: String? = jResp.string(of: "settings.active_features.business_hours")
    var Chat: String? = jResp.string(of: "settings.active_features.chat")
    var Chat_about_my_ticket: String? = jResp.string(of: "settings.active_features.chat_about_my_ticket")
    var Csat_reason_code: String? = jResp.string(of: "settings.active_features.csat_reason_code")
    var Custom_dkim_domain: String? = jResp.string(of: "settings.active_features.custom_dkim_domain")
    var Customer_context_as_default: String? = jResp.string(of: "settings.active_features.customer_context_as_default")
    var Customer_satisfaction: String? = jResp.string(of: "settings.active_features.customer_satisfaction")
    var Dynamic_contents: String? = jResp.string(of: "settings.active_features.dynamic_contents")
    var Explore: String? = jResp.string(of: "settings.active_features.explore")
    var Explore_on_support_ent_plan: String? = jResp.string(of: "settings.active_features.explore_on_support_ent_plan")
    var Explore_on_support_pro_plan: String? = jResp.string(of: "settings.active_features.explore_on_support_pro_plan")
    var Facebook: String? = jResp.string(of: "settings.active_features.facebook")
    var Facebook_login: String? = jResp.string(of: "settings.active_features.facebook_login")
    var Fallback_composer: String? = jResp.string(of: "settings.active_features.fallback_composer")
    var Forum_analytics: String? = jResp.string(of: "settings.active_features.forum_analytics")
    var Good_data_and_explore: String? = jResp.string(of: "settings.active_features.good_data_and_explore")
    var Google_login: String? = jResp.string(of: "settings.active_features.google_login")
    var Insights: String? = jResp.string(of: "settings.active_features.insights")
    var Is_abusive: String? = jResp.string(of: "settings.active_features.is_abusive")
    var Light_agents: String? = jResp.string(of: "settings.active_features.light_agents")
    var Markdown: String? = jResp.string(of: "settings.active_features.markdown")
    var On_hold_status: String? = jResp.string(of: "settings.active_features.on_hold_status")
    var Rich_content_in_emails: String? = jResp.string(of: "settings.active_features.rich_content_in_emails")
    var Sandbox: String? = jResp.string(of: "settings.active_features.sandbox")
    var Satisfaction_prediction: String? = jResp.string(of: "settings.active_features.satisfaction_prediction")
    var Suspended_ticket_notification: String? = jResp.string(of: "settings.active_features.suspended_ticket_notification")
    var Ticket_forms: String? = jResp.string(of: "settings.active_features.ticket_forms")
    var Ticket_tagging: String? = jResp.string(of: "settings.active_features.ticket_tagging")
    var Topic_suggestion: String? = jResp.string(of: "settings.active_features.topic_suggestion")
    var Twitter: String? = jResp.string(of: "settings.active_features.twitter")
    var Twitter_login: String? = jResp.string(of: "settings.active_features.twitter_login")
    var User_org_fields: String? = jResp.string(of: "settings.active_features.user_org_fields")
    var User_tagging: String? = jResp.string(of: "settings.active_features.user_tagging")
    var Voice: String? = jResp.string(of: "settings.active_features.voice")
    var Agent_workspace: String? = jResp.string(of: "settings.agents.agent_workspace")
    var Aw_self_serve_migration_enabled: String? = jResp.string(of: "settings.agents.aw_self_serve_migration_enabled")
    var Focus_mode: String? = jResp.string(of: "settings.agents.focus_mode")
    var Idle_timeout_enabled: String? = jResp.string(of: "settings.agents.idle_timeout_enabled")
    var Unified_agent_statuses: String? = jResp.string(of: "settings.agents.unified_agent_statuses")
    var Accepted_api_agreement: String? = jResp.string(of: "settings.api.accepted_api_agreement")
    var Api_password_access: String? = jResp.string(of: "settings.api.api_password_access")
    var Api_token_access: String? = jResp.string(of: "settings.api.api_token_access")
    var Create_private: String? = jResp.string(of: "settings.apps.create_private")
    var Create_public: String? = jResp.string(of: "settings.apps.create_public")
    var Use: String? = jResp.string(of: "settings.apps.use")
    var Backend: String? = jResp.string(of: "settings.billing.backend")
    var Favicon_url: String? = jResp.string(of: "settings.branding.favicon_url")
    var Header_color: String? = jResp.string(of: "settings.branding.header_color")
    var Header_logo_url: String? = jResp.string(of: "settings.branding.header_logo_url")
    var Page_background_color: String? = jResp.string(of: "settings.branding.page_background_color")
    var Tab_background_color: String? = jResp.string(of: "settings.branding.tab_background_color")
    var Text_color: String? = jResp.string(of: "settings.branding.text_color")
    var Default_brand_id: String? = jResp.string(of: "settings.brands.default_brand_id")
    var Require_brand_on_new_tickets: String? = jResp.string(of: "settings.brands.require_brand_on_new_tickets")
    var Cdn_provider: String? = jResp.string(of: "settings.cdn.cdn_provider")
    var Fallback_cdn_provider: String? = jResp.string(of: "settings.cdn.fallback_cdn_provider")
    var Available: String? = jResp.string(of: "settings.chat.available")
    var Enabled: String? = jResp.string(of: "settings.chat.enabled")
    var Integrated: String? = jResp.string(of: "settings.chat.integrated")
    var Maximum_request_count: String? = jResp.string(of: "settings.chat.maximum_request_count")
    var Welcome_message: String? = jResp.string(of: "settings.chat.welcome_message")
    var Show_chat_tooltip: String? = jResp.string(of: "settings.cross_sell.show_chat_tooltip")
    var Xsell_source: String? = jResp.string(of: "settings.cross_sell.xsell_source")
    var Gooddata_advanced_analyticsEnabled: String? = jResp.string(of: "settings.gooddata_advanced_analytics.enabled")
    var Has_google_apps: String? = jResp.string(of: "settings.google_apps.has_google_apps")
    var Has_google_apps_admin: String? = jResp.string(of: "settings.google_apps.has_google_apps_admin")
    var Check_group_name_uniqueness: String? = jResp.string(of: "settings.groups.check_group_name_uniqueness")
    var Attachment_size: String? = jResp.string(of: "settings.limits.attachment_size")
    var Pod_id: String? = jResp.string(of: "settings.lotus.pod_id")
    var Prefer_lotus: String? = jResp.string(of: "settings.lotus.prefer_lotus")
    var Reporting: String? = jResp.string(of: "settings.lotus.reporting")
    var Account_size: String? = jResp.string(of: "settings.metrics.account_size")
    var Checklist_onboarding_version: String? = jResp.string(of: "settings.onboarding.checklist_onboarding_version")
    var Onboarding_segments: String? = jResp.string(of: "settings.onboarding.onboarding_segments")
    var Product_sign_up: String? = jResp.string(of: "settings.onboarding.product_sign_up")
    var Autorouting_tag: String? = jResp.string(of: "settings.routing.autorouting_tag")
    var RoutingEnabled: String? = jResp.string(of: "settings.routing.enabled")
    var Max_email_capacity: String? = jResp.string(of: "settings.routing.max_email_capacity")
    var Max_messaging_capacity: String? = jResp.string(of: "settings.routing.max_messaging_capacity")
    var Reassignment_messaging_enabled: String? = jResp.string(of: "settings.routing.reassignment_messaging_enabled")
    var Reassignment_messaging_timeout: String? = jResp.string(of: "settings.routing.reassignment_messaging_timeout")
    var Reassignment_talk_timeout: String? = jResp.string(of: "settings.routing.reassignment_talk_timeout")
    var Macro_most_used: String? = jResp.string(of: "settings.rule.macro_most_used")
    var Macro_order: String? = jResp.string(of: "settings.rule.macro_order")
    var Using_skill_based_routing: String? = jResp.string(of: "settings.rule.using_skill_based_routing")
    var Email_channel: String? = jResp.string(of: "settings.side_conversations.email_channel")
    var Msteams_channel: String? = jResp.string(of: "settings.side_conversations.msteams_channel")
    var Show_in_context_panel: String? = jResp.string(of: "settings.side_conversations.show_in_context_panel")
    var Slack_channel: String? = jResp.string(of: "settings.side_conversations.slack_channel")
    var Tickets_channel: String? = jResp.string(of: "settings.side_conversations.tickets_channel")
    var Forum: String? = jResp.string(of: "settings.statistics.forum")
    var Rule_usage: String? = jResp.string(of: "settings.statistics.rule_usage")
    var Search: String? = jResp.string(of: "settings.statistics.search")
    var Raw_ticket_forms_instructions: String? = jResp.string(of: "settings.ticket_form.raw_ticket_forms_instructions")
    var Ticket_forms_instructions: String? = jResp.string(of: "settings.ticket_form.ticket_forms_instructions")
    var Accepted_new_collaboration_tos: String? = jResp.string(of: "settings.tickets.accepted_new_collaboration_tos")
    var Agent_collision: String? = jResp.string(of: "settings.tickets.agent_collision")
    var Agent_ticket_deletion: String? = jResp.string(of: "settings.tickets.agent_ticket_deletion")
    var Allow_group_reset: String? = jResp.string(of: "settings.tickets.allow_group_reset")
    var Assign_default_organization: String? = jResp.string(of: "settings.tickets.assign_default_organization")
    var Assign_tickets_upon_solve: String? = jResp.string(of: "settings.tickets.assign_tickets_upon_solve")
    var Auto_updated_ccs_followers_rules: String? = jResp.string(of: "settings.tickets.auto_updated_ccs_followers_rules")
    var Collaboration: String? = jResp.string(of: "settings.tickets.collaboration")
    var Comments_public_by_default: String? = jResp.string(of: "settings.tickets.comments_public_by_default")
    var Email_attachments: String? = jResp.string(of: "settings.tickets.email_attachments")
    var Emoji_autocompletion: String? = jResp.string(of: "settings.tickets.emoji_autocompletion")
    var Follower_and_email_cc_collaborations: String? = jResp.string(of: "settings.tickets.follower_and_email_cc_collaborations")
    var Has_color_text: String? = jResp.string(of: "settings.tickets.has_color_text")
    var Is_first_comment_private_enabled: String? = jResp.string(of: "settings.tickets.is_first_comment_private_enabled")
    var Light_agent_email_ccs_allowed: String? = jResp.string(of: "settings.tickets.light_agent_email_ccs_allowed")
    var List_empty_views: String? = jResp.string(of: "settings.tickets.list_empty_views")
    var List_newest_comments_first: String? = jResp.string(of: "settings.tickets.list_newest_comments_first")
    var Markdown_ticket_comments: String? = jResp.string(of: "settings.tickets.markdown_ticket_comments")
    var Maximum_personal_views_to_list: String? = jResp.string(of: "settings.tickets.maximum_personal_views_to_list")
    var Private_attachments: String? = jResp.string(of: "settings.tickets.private_attachments")
    var Rich_text_comments: String? = jResp.string(of: "settings.tickets.rich_text_comments")
    var Status_hold: String? = jResp.string(of: "settings.tickets.status_hold")
    var Tagging: String? = jResp.string(of: "settings.tickets.tagging")
    var TicketsUsing_skill_based_routing: String? = jResp.string(of: "settings.tickets.using_skill_based_routing")
    var Shorten_url: String? = jResp.string(of: "settings.twitter.shorten_url")
    var Agent_created_welcome_emails: String? = jResp.string(of: "settings.user.agent_created_welcome_emails")
    var End_user_phone_number_validation: String? = jResp.string(of: "settings.user.end_user_phone_number_validation")
    var Have_gravatars_enabled: String? = jResp.string(of: "settings.user.have_gravatars_enabled")
    var Language_selection: String? = jResp.string(of: "settings.user.language_selection")
    var Multiple_organizations: String? = jResp.string(of: "settings.user.multiple_organizations")
    var UserTagging: String? = jResp.string(of: "settings.user.tagging")
    var Time_zone_selection: String? = jResp.string(of: "settings.user.time_zone_selection")
    var Agent_confirmation_when_forwarding: String? = jResp.string(of: "settings.voice.agent_confirmation_when_forwarding")
    var Agent_wrap_up_after_calls: String? = jResp.string(of: "settings.voice.agent_wrap_up_after_calls")
    var VoiceEnabled: String? = jResp.string(of: "settings.voice.enabled")
    var Logging: String? = jResp.string(of: "settings.voice.logging")
    var Maximum_queue_size: String? = jResp.string(of: "settings.voice.maximum_queue_size")
    var Maximum_queue_wait_time: String? = jResp.string(of: "settings.voice.maximum_queue_wait_time")
    var Only_during_business_hours: String? = jResp.string(of: "settings.voice.only_during_business_hours")
    var Outbound_enabled: String? = jResp.string(of: "settings.voice.outbound_enabled")
    var Recordings_public: String? = jResp.string(of: "settings.voice.recordings_public")
    var Uk_mobile_forwarding: String? = jResp.string(of: "settings.voice.uk_mobile_forwarding")
    var i: Int = 0
    var count_i: Int = jResp.size(ofArray: "settings.cdn.hosts").intValue
    while i < count_i {
        jResp.i = i
        name = jResp.string(of: "settings.cdn.hosts[i].name")
        url = jResp.string(of: "settings.cdn.hosts[i].url")
        i = i + 1
    }

    i = 0
    count_i = jResp.size(ofArray: "settings.localization.locale_ids").intValue
    while i < count_i {
        jResp.i = i
        strVal = jResp.string(of: "settings.localization.locale_ids[i]")
        i = i + 1
    }

    i = 0
    count_i = jResp.size(ofArray: "settings.rule.skill_based_filtered_views").intValue
    while i < count_i {
        jResp.i = i
        in523 = jResp.string(of: "settings.rule.skill_based_filtered_views[i].in523")
        estc = jResp.string(of: "settings.rule.skill_based_filtered_views[i].estc")
        i = i + 1
    }

    i = 0
    count_i = jResp.size(ofArray: "settings.ticket_sharing_partners.support_addresses").intValue
    while i < count_i {
        jResp.i = i
        strVal = jResp.string(of: "settings.ticket_sharing_partners.support_addresses[i]")
        i = i + 1
    }


}

Curl Command

curl  -u login:password -X PUT
	-H "Accept: application/json"
https://example.zendesk.com/api/v2/account/settings

Postman Collection Item JSON

{
  "name": "Update Account Settings",
  "request": {
    "method": "PUT",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/v2/account/settings",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v2",
        "account",
        "settings"
      ]
    },
    "description": "Updates settings for the account. See [JSON Format](#json-format) above for the settings you can update.\n\n#### Allowed For\n\n* Admins\n"
  },
  "response": [
    {
      "name": "Success response",
      "originalRequest": {
        "method": "PUT",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v2/account/settings",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "account",
            "settings"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"settings\": {\n    \"active_features\": {\n      \"advanced_analytics\": \"<boolean>\",\n      \"agent_forwarding\": \"<boolean>\",\n      \"allow_ccs\": \"<boolean>\",\n      \"allow_email_template_customization\": \"<boolean>\",\n      \"automatic_answers\": \"<boolean>\",\n      \"bcc_archiving\": \"<boolean>\",\n      \"benchmark_opt_out\": \"<boolean>\",\n      \"business_hours\": \"<boolean>\",\n      \"chat\": \"<boolean>\",\n      \"chat_about_my_ticket\": \"<boolean>\",\n      \"csat_reason_code\": \"<boolean>\",\n      \"custom_dkim_domain\": \"<boolean>\",\n      \"customer_context_as_default\": \"<boolean>\",\n      \"customer_satisfaction\": \"<boolean>\",\n      \"dynamic_contents\": \"<boolean>\",\n      \"explore\": \"<boolean>\",\n      \"explore_on_support_ent_plan\": \"<boolean>\",\n      \"explore_on_support_pro_plan\": \"<boolean>\",\n      \"facebook\": \"<boolean>\",\n      \"facebook_login\": \"<boolean>\",\n      \"fallback_composer\": \"<boolean>\",\n      \"forum_analytics\": \"<boolean>\",\n      \"good_data_and_explore\": \"<boolean>\",\n      \"google_login\": \"<boolean>\",\n      \"insights\": \"<boolean>\",\n      \"is_abusive\": \"<boolean>\",\n      \"light_agents\": \"<boolean>\",\n      \"markdown\": \"<boolean>\",\n      \"on_hold_status\": \"<boolean>\",\n      \"rich_content_in_emails\": \"<boolean>\",\n      \"sandbox\": \"<boolean>\",\n      \"satisfaction_prediction\": \"<boolean>\",\n      \"suspended_ticket_notification\": \"<boolean>\",\n      \"ticket_forms\": \"<boolean>\",\n      \"ticket_tagging\": \"<boolean>\",\n      \"topic_suggestion\": \"<boolean>\",\n      \"twitter\": \"<boolean>\",\n      \"twitter_login\": \"<boolean>\",\n      \"user_org_fields\": \"<boolean>\",\n      \"user_tagging\": \"<boolean>\",\n      \"voice\": \"<boolean>\"\n    },\n    \"agents\": {\n      \"agent_workspace\": \"<boolean>\",\n      \"aw_self_serve_migration_enabled\": \"<boolean>\",\n      \"focus_mode\": \"<boolean>\",\n      \"idle_timeout_enabled\": \"<boolean>\",\n      \"unified_agent_statuses\": \"<boolean>\"\n    },\n    \"api\": {\n      \"accepted_api_agreement\": \"<boolean>\",\n      \"api_password_access\": \"<string>\",\n      \"api_token_access\": \"<string>\"\n    },\n    \"apps\": {\n      \"create_private\": \"<boolean>\",\n      \"create_public\": \"<boolean>\",\n      \"use\": \"<boolean>\"\n    },\n    \"billing\": {\n      \"backend\": \"<string>\"\n    },\n    \"branding\": {\n      \"favicon_url\": \"<string>\",\n      \"header_color\": \"<string>\",\n      \"header_logo_url\": \"<string>\",\n      \"page_background_color\": \"<string>\",\n      \"tab_background_color\": \"<string>\",\n      \"text_color\": \"<string>\"\n    },\n    \"brands\": {\n      \"default_brand_id\": \"<integer>\",\n      \"require_brand_on_new_tickets\": \"<boolean>\"\n    },\n    \"cdn\": {\n      \"cdn_provider\": \"<string>\",\n      \"fallback_cdn_provider\": \"<string>\",\n      \"hosts\": [\n        {\n          \"name\": \"<string>\",\n          \"url\": \"<string>\"\n        },\n        {\n          \"name\": \"<string>\",\n          \"url\": \"<string>\"\n        }\n      ]\n    },\n    \"chat\": {\n      \"available\": \"<boolean>\",\n      \"enabled\": \"<boolean>\",\n      \"integrated\": \"<boolean>\",\n      \"maximum_request_count\": \"<integer>\",\n      \"welcome_message\": \"<string>\"\n    },\n    \"cross_sell\": {\n      \"show_chat_tooltip\": \"<boolean>\",\n      \"xsell_source\": \"<string>\"\n    },\n    \"gooddata_advanced_analytics\": {\n      \"enabled\": \"<boolean>\"\n    },\n    \"google_apps\": {\n      \"has_google_apps\": \"<boolean>\",\n      \"has_google_apps_admin\": \"<boolean>\"\n    },\n    \"groups\": {\n      \"check_group_name_uniqueness\": \"<boolean>\"\n    },\n    \"limits\": {\n      \"attachment_size\": \"<integer>\"\n    },\n    \"localization\": {\n      \"locale_ids\": [\n        \"<integer>\",\n        \"<integer>\"\n      ]\n    },\n    \"lotus\": {\n      \"pod_id\": \"<integer>\",\n      \"prefer_lotus\": \"<boolean>\",\n      \"reporting\": \"<boolean>\"\n    },\n    \"metrics\": {\n      \"account_size\": \"<string>\"\n    },\n    \"onboarding\": {\n      \"checklist_onboarding_version\": \"<integer>\",\n      \"onboarding_segments\": \"<string>\",\n      \"product_sign_up\": \"<string>\"\n    },\n    \"routing\": {\n      \"autorouting_tag\": \"<string>\",\n      \"enabled\": \"<boolean>\",\n      \"max_email_capacity\": \"<integer>\",\n      \"max_messaging_capacity\": \"<integer>\",\n      \"reassignment_messaging_enabled\": \"<boolean>\",\n      \"reassignment_messaging_timeout\": \"<integer>\",\n      \"reassignment_talk_timeout\": \"<integer>\"\n    },\n    \"rule\": {\n      \"macro_most_used\": \"<boolean>\",\n      \"macro_order\": \"<string>\",\n      \"skill_based_filtered_views\": [\n        {\n          \"in523\": 60303840.72385332\n        },\n        {\n          \"estc\": \"eu aliquip id\"\n        }\n      ],\n      \"using_skill_based_routing\": \"<boolean>\"\n    },\n    \"side_conversations\": {\n      \"email_channel\": \"<boolean>\",\n      \"msteams_channel\": \"<boolean>\",\n      \"show_in_context_panel\": \"<boolean>\",\n      \"slack_channel\": \"<boolean>\",\n      \"tickets_channel\": \"<boolean>\"\n    },\n    \"statistics\": {\n      \"forum\": \"<boolean>\",\n      \"rule_usage\": \"<boolean>\",\n      \"search\": \"<boolean>\"\n    },\n    \"ticket_form\": {\n      \"raw_ticket_forms_instructions\": \"<string>\",\n      \"ticket_forms_instructions\": \"<string>\"\n    },\n    \"ticket_sharing_partners\": {\n      \"support_addresses\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    \"tickets\": {\n      \"accepted_new_collaboration_tos\": \"<boolean>\",\n      \"agent_collision\": \"<boolean>\",\n      \"agent_ticket_deletion\": \"<boolean>\",\n      \"allow_group_reset\": \"<boolean>\",\n      \"assign_default_organization\": \"<boolean>\",\n      \"assign_tickets_upon_solve\": \"<boolean>\",\n      \"auto_updated_ccs_followers_rules\": \"<boolean>\",\n      \"collaboration\": \"<boolean>\",\n      \"comments_public_by_default\": \"<boolean>\",\n      \"email_attachments\": \"<boolean>\",\n      \"emoji_autocompletion\": \"<boolean>\",\n      \"follower_and_email_cc_collaborations\": \"<boolean>\",\n      \"has_color_text\": \"<boolean>\",\n      \"is_first_comment_private_enabled\": \"<boolean>\",\n      \"light_agent_email_ccs_allowed\": \"<boolean>\",\n      \"list_empty_views\": \"<boolean>\",\n      \"list_newest_comments_first\": \"<boolean>\",\n      \"markdown_ticket_comments\": \"<boolean>\",\n      \"maximum_personal_views_to_list\": \"<integer>\",\n      \"private_attachments\": \"<boolean>\",\n      \"rich_text_comments\": \"<boolean>\",\n      \"status_hold\": \"<boolean>\",\n      \"tagging\": \"<boolean>\",\n      \"using_skill_based_routing\": \"<boolean>\"\n    },\n    \"twitter\": {\n      \"shorten_url\": \"<string>\"\n    },\n    \"user\": {\n      \"agent_created_welcome_emails\": \"<boolean>\",\n      \"end_user_phone_number_validation\": \"<boolean>\",\n      \"have_gravatars_enabled\": \"<boolean>\",\n      \"language_selection\": \"<boolean>\",\n      \"multiple_organizations\": \"<boolean>\",\n      \"tagging\": \"<boolean>\",\n      \"time_zone_selection\": \"<boolean>\"\n    },\n    \"voice\": {\n      \"agent_confirmation_when_forwarding\": \"<boolean>\",\n      \"agent_wrap_up_after_calls\": \"<boolean>\",\n      \"enabled\": \"<boolean>\",\n      \"logging\": \"<boolean>\",\n      \"maximum_queue_size\": \"<integer>\",\n      \"maximum_queue_wait_time\": \"<integer>\",\n      \"only_during_business_hours\": \"<boolean>\",\n      \"outbound_enabled\": \"<boolean>\",\n      \"recordings_public\": \"<boolean>\",\n      \"uk_mobile_forwarding\": \"<boolean>\"\n    }\n  }\n}"
    }
  ]
}