Chilkat Online Tools

DataFlex / Support API / Update Account Settings

Back to Collection Items

Use ChilkatAx-win32.pkg

Procedure Test
    Handle hoHttp
    Boolean iSuccess
    Variant vResp
    Handle hoResp
    Variant vSbResponseBody
    Handle hoSbResponseBody
    Handle hoJResp
    Integer iRespStatusCode
    String sName
    String sUrl
    String sStrVal
    String sIn523
    String sEstc
    String sAdvanced_analytics
    String sAgent_forwarding
    String sAllow_ccs
    String sAllow_email_template_customization
    String sAutomatic_answers
    String sBcc_archiving
    String sBenchmark_opt_out
    String sBusiness_hours
    String sChat
    String sChat_about_my_ticket
    String sCsat_reason_code
    String sCustom_dkim_domain
    String sCustomer_context_as_default
    String sCustomer_satisfaction
    String sDynamic_contents
    String sExplore
    String sExplore_on_support_ent_plan
    String sExplore_on_support_pro_plan
    String sFacebook
    String sFacebook_login
    String sFallback_composer
    String sForum_analytics
    String sGood_data_and_explore
    String sGoogle_login
    String sInsights
    String sIs_abusive
    String sLight_agents
    String sMarkdown
    String sOn_hold_status
    String sRich_content_in_emails
    String sSandbox
    String sSatisfaction_prediction
    String sSuspended_ticket_notification
    String sTicket_forms
    String sTicket_tagging
    String sTopic_suggestion
    String sTwitter
    String sTwitter_login
    String sUser_org_fields
    String sUser_tagging
    String sVoice
    String sAgent_workspace
    String sAw_self_serve_migration_enabled
    String sFocus_mode
    String sIdle_timeout_enabled
    String sUnified_agent_statuses
    String sAccepted_api_agreement
    String sApi_password_access
    String sApi_token_access
    String sCreate_private
    String sCreate_public
    String sUse
    String sBackend
    String sFavicon_url
    String sHeader_color
    String sHeader_logo_url
    String sPage_background_color
    String sTab_background_color
    String sText_color
    String sDefault_brand_id
    String sRequire_brand_on_new_tickets
    String sCdn_provider
    String sFallback_cdn_provider
    String sAvailable
    String sEnabled
    String sIntegrated
    String sMaximum_request_count
    String sWelcome_message
    String sShow_chat_tooltip
    String sXsell_source
    String sGooddata_advanced_analyticsEnabled
    String sHas_google_apps
    String sHas_google_apps_admin
    String sCheck_group_name_uniqueness
    String sAttachment_size
    String sPod_id
    String sPrefer_lotus
    String sReporting
    String sAccount_size
    String sChecklist_onboarding_version
    String sOnboarding_segments
    String sProduct_sign_up
    String sAutorouting_tag
    String sRoutingEnabled
    String sMax_email_capacity
    String sMax_messaging_capacity
    String sReassignment_messaging_enabled
    String sReassignment_messaging_timeout
    String sReassignment_talk_timeout
    String sMacro_most_used
    String sMacro_order
    String sUsing_skill_based_routing
    String sEmail_channel
    String sMsteams_channel
    String sShow_in_context_panel
    String sSlack_channel
    String sTickets_channel
    String sForum
    String sRule_usage
    String sSearch
    String sRaw_ticket_forms_instructions
    String sTicket_forms_instructions
    String sAccepted_new_collaboration_tos
    String sAgent_collision
    String sAgent_ticket_deletion
    String sAllow_group_reset
    String sAssign_default_organization
    String sAssign_tickets_upon_solve
    String sAuto_updated_ccs_followers_rules
    String sCollaboration
    String sComments_public_by_default
    String sEmail_attachments
    String sEmoji_autocompletion
    String sFollower_and_email_cc_collaborations
    String sHas_color_text
    String sIs_first_comment_private_enabled
    String sLight_agent_email_ccs_allowed
    String sList_empty_views
    String sList_newest_comments_first
    String sMarkdown_ticket_comments
    String sMaximum_personal_views_to_list
    String sPrivate_attachments
    String sRich_text_comments
    String sStatus_hold
    String sTagging
    String sTicketsUsing_skill_based_routing
    String sShorten_url
    String sAgent_created_welcome_emails
    String sEnd_user_phone_number_validation
    String sHave_gravatars_enabled
    String sLanguage_selection
    String sMultiple_organizations
    String sUserTagging
    String sTime_zone_selection
    String sAgent_confirmation_when_forwarding
    String sAgent_wrap_up_after_calls
    String sVoiceEnabled
    String sLogging
    String sMaximum_queue_size
    String sMaximum_queue_wait_time
    String sOnly_during_business_hours
    String sOutbound_enabled
    String sRecordings_public
    String sUk_mobile_forwarding
    Integer i
    Integer iCount_i
    String sTemp1
    Boolean bTemp1

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

    Get Create (RefClass(cComChilkatHttp)) To hoHttp
    If (Not(IsComObjectCreated(hoHttp))) Begin
        Send CreateComObject of hoHttp
    End

    Set ComBasicAuth Of hoHttp To True
    Set ComLogin Of hoHttp To "login"
    Set ComPassword Of hoHttp To "password"

    Send ComSetRequestHeader To hoHttp "Accept" "application/json"

    Get ComQuickRequest Of hoHttp "PUT" "https://example.zendesk.com/api/v2/account/settings" To vResp
    If (IsComObject(vResp)) Begin
        Get Create (RefClass(cComChilkatHttpResponse)) To hoResp
        Set pvComObject Of hoResp To vResp
    End
    Get ComLastMethodSuccess Of hoHttp To bTemp1
    If (bTemp1 = False) Begin
        Get ComLastErrorText Of hoHttp To sTemp1
        Showln sTemp1
        Procedure_Return
    End

    Get Create (RefClass(cComChilkatStringBuilder)) To hoSbResponseBody
    If (Not(IsComObjectCreated(hoSbResponseBody))) Begin
        Send CreateComObject of hoSbResponseBody
    End
    Get pvComObject of hoSbResponseBody to vSbResponseBody
    Get ComGetBodySb Of hoResp vSbResponseBody To iSuccess

    Get Create (RefClass(cComChilkatJsonObject)) To hoJResp
    If (Not(IsComObjectCreated(hoJResp))) Begin
        Send CreateComObject of hoJResp
    End
    Get pvComObject of hoSbResponseBody to vSbResponseBody
    Get ComLoadSb Of hoJResp vSbResponseBody To iSuccess
    Set ComEmitCompact Of hoJResp To False

    Showln "Response Body:"
    Get ComEmit Of hoJResp To sTemp1
    Showln sTemp1

    Get ComStatusCode Of hoResp To iRespStatusCode
    Showln "Response Status Code = " iRespStatusCode
    If (iRespStatusCode >= 400) Begin
        Showln "Response Header:"
        Get ComHeader Of hoResp To sTemp1
        Showln sTemp1
        Showln "Failed."
        Send Destroy of hoResp
        Procedure_Return
    End

    Send Destroy of hoResp

    // 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

    Get ComStringOf Of hoJResp "settings.active_features.advanced_analytics" To sAdvanced_analytics
    Get ComStringOf Of hoJResp "settings.active_features.agent_forwarding" To sAgent_forwarding
    Get ComStringOf Of hoJResp "settings.active_features.allow_ccs" To sAllow_ccs
    Get ComStringOf Of hoJResp "settings.active_features.allow_email_template_customization" To sAllow_email_template_customization
    Get ComStringOf Of hoJResp "settings.active_features.automatic_answers" To sAutomatic_answers
    Get ComStringOf Of hoJResp "settings.active_features.bcc_archiving" To sBcc_archiving
    Get ComStringOf Of hoJResp "settings.active_features.benchmark_opt_out" To sBenchmark_opt_out
    Get ComStringOf Of hoJResp "settings.active_features.business_hours" To sBusiness_hours
    Get ComStringOf Of hoJResp "settings.active_features.chat" To sChat
    Get ComStringOf Of hoJResp "settings.active_features.chat_about_my_ticket" To sChat_about_my_ticket
    Get ComStringOf Of hoJResp "settings.active_features.csat_reason_code" To sCsat_reason_code
    Get ComStringOf Of hoJResp "settings.active_features.custom_dkim_domain" To sCustom_dkim_domain
    Get ComStringOf Of hoJResp "settings.active_features.customer_context_as_default" To sCustomer_context_as_default
    Get ComStringOf Of hoJResp "settings.active_features.customer_satisfaction" To sCustomer_satisfaction
    Get ComStringOf Of hoJResp "settings.active_features.dynamic_contents" To sDynamic_contents
    Get ComStringOf Of hoJResp "settings.active_features.explore" To sExplore
    Get ComStringOf Of hoJResp "settings.active_features.explore_on_support_ent_plan" To sExplore_on_support_ent_plan
    Get ComStringOf Of hoJResp "settings.active_features.explore_on_support_pro_plan" To sExplore_on_support_pro_plan
    Get ComStringOf Of hoJResp "settings.active_features.facebook" To sFacebook
    Get ComStringOf Of hoJResp "settings.active_features.facebook_login" To sFacebook_login
    Get ComStringOf Of hoJResp "settings.active_features.fallback_composer" To sFallback_composer
    Get ComStringOf Of hoJResp "settings.active_features.forum_analytics" To sForum_analytics
    Get ComStringOf Of hoJResp "settings.active_features.good_data_and_explore" To sGood_data_and_explore
    Get ComStringOf Of hoJResp "settings.active_features.google_login" To sGoogle_login
    Get ComStringOf Of hoJResp "settings.active_features.insights" To sInsights
    Get ComStringOf Of hoJResp "settings.active_features.is_abusive" To sIs_abusive
    Get ComStringOf Of hoJResp "settings.active_features.light_agents" To sLight_agents
    Get ComStringOf Of hoJResp "settings.active_features.markdown" To sMarkdown
    Get ComStringOf Of hoJResp "settings.active_features.on_hold_status" To sOn_hold_status
    Get ComStringOf Of hoJResp "settings.active_features.rich_content_in_emails" To sRich_content_in_emails
    Get ComStringOf Of hoJResp "settings.active_features.sandbox" To sSandbox
    Get ComStringOf Of hoJResp "settings.active_features.satisfaction_prediction" To sSatisfaction_prediction
    Get ComStringOf Of hoJResp "settings.active_features.suspended_ticket_notification" To sSuspended_ticket_notification
    Get ComStringOf Of hoJResp "settings.active_features.ticket_forms" To sTicket_forms
    Get ComStringOf Of hoJResp "settings.active_features.ticket_tagging" To sTicket_tagging
    Get ComStringOf Of hoJResp "settings.active_features.topic_suggestion" To sTopic_suggestion
    Get ComStringOf Of hoJResp "settings.active_features.twitter" To sTwitter
    Get ComStringOf Of hoJResp "settings.active_features.twitter_login" To sTwitter_login
    Get ComStringOf Of hoJResp "settings.active_features.user_org_fields" To sUser_org_fields
    Get ComStringOf Of hoJResp "settings.active_features.user_tagging" To sUser_tagging
    Get ComStringOf Of hoJResp "settings.active_features.voice" To sVoice
    Get ComStringOf Of hoJResp "settings.agents.agent_workspace" To sAgent_workspace
    Get ComStringOf Of hoJResp "settings.agents.aw_self_serve_migration_enabled" To sAw_self_serve_migration_enabled
    Get ComStringOf Of hoJResp "settings.agents.focus_mode" To sFocus_mode
    Get ComStringOf Of hoJResp "settings.agents.idle_timeout_enabled" To sIdle_timeout_enabled
    Get ComStringOf Of hoJResp "settings.agents.unified_agent_statuses" To sUnified_agent_statuses
    Get ComStringOf Of hoJResp "settings.api.accepted_api_agreement" To sAccepted_api_agreement
    Get ComStringOf Of hoJResp "settings.api.api_password_access" To sApi_password_access
    Get ComStringOf Of hoJResp "settings.api.api_token_access" To sApi_token_access
    Get ComStringOf Of hoJResp "settings.apps.create_private" To sCreate_private
    Get ComStringOf Of hoJResp "settings.apps.create_public" To sCreate_public
    Get ComStringOf Of hoJResp "settings.apps.use" To sUse
    Get ComStringOf Of hoJResp "settings.billing.backend" To sBackend
    Get ComStringOf Of hoJResp "settings.branding.favicon_url" To sFavicon_url
    Get ComStringOf Of hoJResp "settings.branding.header_color" To sHeader_color
    Get ComStringOf Of hoJResp "settings.branding.header_logo_url" To sHeader_logo_url
    Get ComStringOf Of hoJResp "settings.branding.page_background_color" To sPage_background_color
    Get ComStringOf Of hoJResp "settings.branding.tab_background_color" To sTab_background_color
    Get ComStringOf Of hoJResp "settings.branding.text_color" To sText_color
    Get ComStringOf Of hoJResp "settings.brands.default_brand_id" To sDefault_brand_id
    Get ComStringOf Of hoJResp "settings.brands.require_brand_on_new_tickets" To sRequire_brand_on_new_tickets
    Get ComStringOf Of hoJResp "settings.cdn.cdn_provider" To sCdn_provider
    Get ComStringOf Of hoJResp "settings.cdn.fallback_cdn_provider" To sFallback_cdn_provider
    Get ComStringOf Of hoJResp "settings.chat.available" To sAvailable
    Get ComStringOf Of hoJResp "settings.chat.enabled" To sEnabled
    Get ComStringOf Of hoJResp "settings.chat.integrated" To sIntegrated
    Get ComStringOf Of hoJResp "settings.chat.maximum_request_count" To sMaximum_request_count
    Get ComStringOf Of hoJResp "settings.chat.welcome_message" To sWelcome_message
    Get ComStringOf Of hoJResp "settings.cross_sell.show_chat_tooltip" To sShow_chat_tooltip
    Get ComStringOf Of hoJResp "settings.cross_sell.xsell_source" To sXsell_source
    Get ComStringOf Of hoJResp "settings.gooddata_advanced_analytics.enabled" To sGooddata_advanced_analyticsEnabled
    Get ComStringOf Of hoJResp "settings.google_apps.has_google_apps" To sHas_google_apps
    Get ComStringOf Of hoJResp "settings.google_apps.has_google_apps_admin" To sHas_google_apps_admin
    Get ComStringOf Of hoJResp "settings.groups.check_group_name_uniqueness" To sCheck_group_name_uniqueness
    Get ComStringOf Of hoJResp "settings.limits.attachment_size" To sAttachment_size
    Get ComStringOf Of hoJResp "settings.lotus.pod_id" To sPod_id
    Get ComStringOf Of hoJResp "settings.lotus.prefer_lotus" To sPrefer_lotus
    Get ComStringOf Of hoJResp "settings.lotus.reporting" To sReporting
    Get ComStringOf Of hoJResp "settings.metrics.account_size" To sAccount_size
    Get ComStringOf Of hoJResp "settings.onboarding.checklist_onboarding_version" To sChecklist_onboarding_version
    Get ComStringOf Of hoJResp "settings.onboarding.onboarding_segments" To sOnboarding_segments
    Get ComStringOf Of hoJResp "settings.onboarding.product_sign_up" To sProduct_sign_up
    Get ComStringOf Of hoJResp "settings.routing.autorouting_tag" To sAutorouting_tag
    Get ComStringOf Of hoJResp "settings.routing.enabled" To sRoutingEnabled
    Get ComStringOf Of hoJResp "settings.routing.max_email_capacity" To sMax_email_capacity
    Get ComStringOf Of hoJResp "settings.routing.max_messaging_capacity" To sMax_messaging_capacity
    Get ComStringOf Of hoJResp "settings.routing.reassignment_messaging_enabled" To sReassignment_messaging_enabled
    Get ComStringOf Of hoJResp "settings.routing.reassignment_messaging_timeout" To sReassignment_messaging_timeout
    Get ComStringOf Of hoJResp "settings.routing.reassignment_talk_timeout" To sReassignment_talk_timeout
    Get ComStringOf Of hoJResp "settings.rule.macro_most_used" To sMacro_most_used
    Get ComStringOf Of hoJResp "settings.rule.macro_order" To sMacro_order
    Get ComStringOf Of hoJResp "settings.rule.using_skill_based_routing" To sUsing_skill_based_routing
    Get ComStringOf Of hoJResp "settings.side_conversations.email_channel" To sEmail_channel
    Get ComStringOf Of hoJResp "settings.side_conversations.msteams_channel" To sMsteams_channel
    Get ComStringOf Of hoJResp "settings.side_conversations.show_in_context_panel" To sShow_in_context_panel
    Get ComStringOf Of hoJResp "settings.side_conversations.slack_channel" To sSlack_channel
    Get ComStringOf Of hoJResp "settings.side_conversations.tickets_channel" To sTickets_channel
    Get ComStringOf Of hoJResp "settings.statistics.forum" To sForum
    Get ComStringOf Of hoJResp "settings.statistics.rule_usage" To sRule_usage
    Get ComStringOf Of hoJResp "settings.statistics.search" To sSearch
    Get ComStringOf Of hoJResp "settings.ticket_form.raw_ticket_forms_instructions" To sRaw_ticket_forms_instructions
    Get ComStringOf Of hoJResp "settings.ticket_form.ticket_forms_instructions" To sTicket_forms_instructions
    Get ComStringOf Of hoJResp "settings.tickets.accepted_new_collaboration_tos" To sAccepted_new_collaboration_tos
    Get ComStringOf Of hoJResp "settings.tickets.agent_collision" To sAgent_collision
    Get ComStringOf Of hoJResp "settings.tickets.agent_ticket_deletion" To sAgent_ticket_deletion
    Get ComStringOf Of hoJResp "settings.tickets.allow_group_reset" To sAllow_group_reset
    Get ComStringOf Of hoJResp "settings.tickets.assign_default_organization" To sAssign_default_organization
    Get ComStringOf Of hoJResp "settings.tickets.assign_tickets_upon_solve" To sAssign_tickets_upon_solve
    Get ComStringOf Of hoJResp "settings.tickets.auto_updated_ccs_followers_rules" To sAuto_updated_ccs_followers_rules
    Get ComStringOf Of hoJResp "settings.tickets.collaboration" To sCollaboration
    Get ComStringOf Of hoJResp "settings.tickets.comments_public_by_default" To sComments_public_by_default
    Get ComStringOf Of hoJResp "settings.tickets.email_attachments" To sEmail_attachments
    Get ComStringOf Of hoJResp "settings.tickets.emoji_autocompletion" To sEmoji_autocompletion
    Get ComStringOf Of hoJResp "settings.tickets.follower_and_email_cc_collaborations" To sFollower_and_email_cc_collaborations
    Get ComStringOf Of hoJResp "settings.tickets.has_color_text" To sHas_color_text
    Get ComStringOf Of hoJResp "settings.tickets.is_first_comment_private_enabled" To sIs_first_comment_private_enabled
    Get ComStringOf Of hoJResp "settings.tickets.light_agent_email_ccs_allowed" To sLight_agent_email_ccs_allowed
    Get ComStringOf Of hoJResp "settings.tickets.list_empty_views" To sList_empty_views
    Get ComStringOf Of hoJResp "settings.tickets.list_newest_comments_first" To sList_newest_comments_first
    Get ComStringOf Of hoJResp "settings.tickets.markdown_ticket_comments" To sMarkdown_ticket_comments
    Get ComStringOf Of hoJResp "settings.tickets.maximum_personal_views_to_list" To sMaximum_personal_views_to_list
    Get ComStringOf Of hoJResp "settings.tickets.private_attachments" To sPrivate_attachments
    Get ComStringOf Of hoJResp "settings.tickets.rich_text_comments" To sRich_text_comments
    Get ComStringOf Of hoJResp "settings.tickets.status_hold" To sStatus_hold
    Get ComStringOf Of hoJResp "settings.tickets.tagging" To sTagging
    Get ComStringOf Of hoJResp "settings.tickets.using_skill_based_routing" To sTicketsUsing_skill_based_routing
    Get ComStringOf Of hoJResp "settings.twitter.shorten_url" To sShorten_url
    Get ComStringOf Of hoJResp "settings.user.agent_created_welcome_emails" To sAgent_created_welcome_emails
    Get ComStringOf Of hoJResp "settings.user.end_user_phone_number_validation" To sEnd_user_phone_number_validation
    Get ComStringOf Of hoJResp "settings.user.have_gravatars_enabled" To sHave_gravatars_enabled
    Get ComStringOf Of hoJResp "settings.user.language_selection" To sLanguage_selection
    Get ComStringOf Of hoJResp "settings.user.multiple_organizations" To sMultiple_organizations
    Get ComStringOf Of hoJResp "settings.user.tagging" To sUserTagging
    Get ComStringOf Of hoJResp "settings.user.time_zone_selection" To sTime_zone_selection
    Get ComStringOf Of hoJResp "settings.voice.agent_confirmation_when_forwarding" To sAgent_confirmation_when_forwarding
    Get ComStringOf Of hoJResp "settings.voice.agent_wrap_up_after_calls" To sAgent_wrap_up_after_calls
    Get ComStringOf Of hoJResp "settings.voice.enabled" To sVoiceEnabled
    Get ComStringOf Of hoJResp "settings.voice.logging" To sLogging
    Get ComStringOf Of hoJResp "settings.voice.maximum_queue_size" To sMaximum_queue_size
    Get ComStringOf Of hoJResp "settings.voice.maximum_queue_wait_time" To sMaximum_queue_wait_time
    Get ComStringOf Of hoJResp "settings.voice.only_during_business_hours" To sOnly_during_business_hours
    Get ComStringOf Of hoJResp "settings.voice.outbound_enabled" To sOutbound_enabled
    Get ComStringOf Of hoJResp "settings.voice.recordings_public" To sRecordings_public
    Get ComStringOf Of hoJResp "settings.voice.uk_mobile_forwarding" To sUk_mobile_forwarding
    Move 0 To i
    Get ComSizeOfArray Of hoJResp "settings.cdn.hosts" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "settings.cdn.hosts[i].name" To sName
        Get ComStringOf Of hoJResp "settings.cdn.hosts[i].url" To sUrl
        Move (i + 1) To i
    Loop

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "settings.localization.locale_ids" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "settings.localization.locale_ids[i]" To sStrVal
        Move (i + 1) To i
    Loop

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "settings.rule.skill_based_filtered_views" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "settings.rule.skill_based_filtered_views[i].in523" To sIn523
        Get ComStringOf Of hoJResp "settings.rule.skill_based_filtered_views[i].estc" To sEstc
        Move (i + 1) To i
    Loop

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "settings.ticket_sharing_partners.support_addresses" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "settings.ticket_sharing_partners.support_addresses[i]" To sStrVal
        Move (i + 1) To i
    Loop



End_Procedure

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}"
    }
  ]
}