unicodeCpp / Support API / Update Account Settings
Back to Collection Items
#include <CkHttpW.h>
#include <CkHttpResponseW.h>
#include <CkStringBuilderW.h>
#include <CkJsonObjectW.h>
void ChilkatSample(void)
{
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
CkHttpW http;
bool success;
http.put_BasicAuth(true);
http.put_Login(L"login");
http.put_Password(L"password");
http.SetRequestHeader(L"Accept",L"application/json");
CkHttpResponseW *resp = http.QuickRequest(L"PUT",L"https://example.zendesk.com/api/v2/account/settings");
if (http.get_LastMethodSuccess() == false) {
wprintf(L"%s\n",http.lastErrorText());
return;
}
CkStringBuilderW sbResponseBody;
resp->GetBodySb(sbResponseBody);
CkJsonObjectW jResp;
jResp.LoadSb(sbResponseBody);
jResp.put_EmitCompact(false);
wprintf(L"Response Body:\n");
wprintf(L"%s\n",jResp.emit());
int respStatusCode = resp->get_StatusCode();
wprintf(L"Response Status Code = %d\n",respStatusCode);
if (respStatusCode >= 400) {
wprintf(L"Response Header:\n");
wprintf(L"%s\n",resp->header());
wprintf(L"Failed.\n");
delete resp;
return;
}
delete resp;
// 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
// Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.
const wchar_t *name = 0;
const wchar_t *url = 0;
const wchar_t *strVal = 0;
const wchar_t *in523 = 0;
const wchar_t *estc = 0;
const wchar_t *Advanced_analytics = jResp.stringOf(L"settings.active_features.advanced_analytics");
const wchar_t *Agent_forwarding = jResp.stringOf(L"settings.active_features.agent_forwarding");
const wchar_t *Allow_ccs = jResp.stringOf(L"settings.active_features.allow_ccs");
const wchar_t *Allow_email_template_customization = jResp.stringOf(L"settings.active_features.allow_email_template_customization");
const wchar_t *Automatic_answers = jResp.stringOf(L"settings.active_features.automatic_answers");
const wchar_t *Bcc_archiving = jResp.stringOf(L"settings.active_features.bcc_archiving");
const wchar_t *Benchmark_opt_out = jResp.stringOf(L"settings.active_features.benchmark_opt_out");
const wchar_t *Business_hours = jResp.stringOf(L"settings.active_features.business_hours");
const wchar_t *Chat = jResp.stringOf(L"settings.active_features.chat");
const wchar_t *Chat_about_my_ticket = jResp.stringOf(L"settings.active_features.chat_about_my_ticket");
const wchar_t *Csat_reason_code = jResp.stringOf(L"settings.active_features.csat_reason_code");
const wchar_t *Custom_dkim_domain = jResp.stringOf(L"settings.active_features.custom_dkim_domain");
const wchar_t *Customer_context_as_default = jResp.stringOf(L"settings.active_features.customer_context_as_default");
const wchar_t *Customer_satisfaction = jResp.stringOf(L"settings.active_features.customer_satisfaction");
const wchar_t *Dynamic_contents = jResp.stringOf(L"settings.active_features.dynamic_contents");
const wchar_t *Explore = jResp.stringOf(L"settings.active_features.explore");
const wchar_t *Explore_on_support_ent_plan = jResp.stringOf(L"settings.active_features.explore_on_support_ent_plan");
const wchar_t *Explore_on_support_pro_plan = jResp.stringOf(L"settings.active_features.explore_on_support_pro_plan");
const wchar_t *Facebook = jResp.stringOf(L"settings.active_features.facebook");
const wchar_t *Facebook_login = jResp.stringOf(L"settings.active_features.facebook_login");
const wchar_t *Fallback_composer = jResp.stringOf(L"settings.active_features.fallback_composer");
const wchar_t *Forum_analytics = jResp.stringOf(L"settings.active_features.forum_analytics");
const wchar_t *Good_data_and_explore = jResp.stringOf(L"settings.active_features.good_data_and_explore");
const wchar_t *Google_login = jResp.stringOf(L"settings.active_features.google_login");
const wchar_t *Insights = jResp.stringOf(L"settings.active_features.insights");
const wchar_t *Is_abusive = jResp.stringOf(L"settings.active_features.is_abusive");
const wchar_t *Light_agents = jResp.stringOf(L"settings.active_features.light_agents");
const wchar_t *Markdown = jResp.stringOf(L"settings.active_features.markdown");
const wchar_t *On_hold_status = jResp.stringOf(L"settings.active_features.on_hold_status");
const wchar_t *Rich_content_in_emails = jResp.stringOf(L"settings.active_features.rich_content_in_emails");
const wchar_t *Sandbox = jResp.stringOf(L"settings.active_features.sandbox");
const wchar_t *Satisfaction_prediction = jResp.stringOf(L"settings.active_features.satisfaction_prediction");
const wchar_t *Suspended_ticket_notification = jResp.stringOf(L"settings.active_features.suspended_ticket_notification");
const wchar_t *Ticket_forms = jResp.stringOf(L"settings.active_features.ticket_forms");
const wchar_t *Ticket_tagging = jResp.stringOf(L"settings.active_features.ticket_tagging");
const wchar_t *Topic_suggestion = jResp.stringOf(L"settings.active_features.topic_suggestion");
const wchar_t *Twitter = jResp.stringOf(L"settings.active_features.twitter");
const wchar_t *Twitter_login = jResp.stringOf(L"settings.active_features.twitter_login");
const wchar_t *User_org_fields = jResp.stringOf(L"settings.active_features.user_org_fields");
const wchar_t *User_tagging = jResp.stringOf(L"settings.active_features.user_tagging");
const wchar_t *Voice = jResp.stringOf(L"settings.active_features.voice");
const wchar_t *Agent_workspace = jResp.stringOf(L"settings.agents.agent_workspace");
const wchar_t *Aw_self_serve_migration_enabled = jResp.stringOf(L"settings.agents.aw_self_serve_migration_enabled");
const wchar_t *Focus_mode = jResp.stringOf(L"settings.agents.focus_mode");
const wchar_t *Idle_timeout_enabled = jResp.stringOf(L"settings.agents.idle_timeout_enabled");
const wchar_t *Unified_agent_statuses = jResp.stringOf(L"settings.agents.unified_agent_statuses");
const wchar_t *Accepted_api_agreement = jResp.stringOf(L"settings.api.accepted_api_agreement");
const wchar_t *Api_password_access = jResp.stringOf(L"settings.api.api_password_access");
const wchar_t *Api_token_access = jResp.stringOf(L"settings.api.api_token_access");
const wchar_t *Create_private = jResp.stringOf(L"settings.apps.create_private");
const wchar_t *Create_public = jResp.stringOf(L"settings.apps.create_public");
const wchar_t *Use = jResp.stringOf(L"settings.apps.use");
const wchar_t *Backend = jResp.stringOf(L"settings.billing.backend");
const wchar_t *Favicon_url = jResp.stringOf(L"settings.branding.favicon_url");
const wchar_t *Header_color = jResp.stringOf(L"settings.branding.header_color");
const wchar_t *Header_logo_url = jResp.stringOf(L"settings.branding.header_logo_url");
const wchar_t *Page_background_color = jResp.stringOf(L"settings.branding.page_background_color");
const wchar_t *Tab_background_color = jResp.stringOf(L"settings.branding.tab_background_color");
const wchar_t *Text_color = jResp.stringOf(L"settings.branding.text_color");
const wchar_t *Default_brand_id = jResp.stringOf(L"settings.brands.default_brand_id");
const wchar_t *Require_brand_on_new_tickets = jResp.stringOf(L"settings.brands.require_brand_on_new_tickets");
const wchar_t *Cdn_provider = jResp.stringOf(L"settings.cdn.cdn_provider");
const wchar_t *Fallback_cdn_provider = jResp.stringOf(L"settings.cdn.fallback_cdn_provider");
const wchar_t *Available = jResp.stringOf(L"settings.chat.available");
const wchar_t *Enabled = jResp.stringOf(L"settings.chat.enabled");
const wchar_t *Integrated = jResp.stringOf(L"settings.chat.integrated");
const wchar_t *Maximum_request_count = jResp.stringOf(L"settings.chat.maximum_request_count");
const wchar_t *Welcome_message = jResp.stringOf(L"settings.chat.welcome_message");
const wchar_t *Show_chat_tooltip = jResp.stringOf(L"settings.cross_sell.show_chat_tooltip");
const wchar_t *Xsell_source = jResp.stringOf(L"settings.cross_sell.xsell_source");
const wchar_t *Gooddata_advanced_analyticsEnabled = jResp.stringOf(L"settings.gooddata_advanced_analytics.enabled");
const wchar_t *Has_google_apps = jResp.stringOf(L"settings.google_apps.has_google_apps");
const wchar_t *Has_google_apps_admin = jResp.stringOf(L"settings.google_apps.has_google_apps_admin");
const wchar_t *Check_group_name_uniqueness = jResp.stringOf(L"settings.groups.check_group_name_uniqueness");
const wchar_t *Attachment_size = jResp.stringOf(L"settings.limits.attachment_size");
const wchar_t *Pod_id = jResp.stringOf(L"settings.lotus.pod_id");
const wchar_t *Prefer_lotus = jResp.stringOf(L"settings.lotus.prefer_lotus");
const wchar_t *Reporting = jResp.stringOf(L"settings.lotus.reporting");
const wchar_t *Account_size = jResp.stringOf(L"settings.metrics.account_size");
const wchar_t *Checklist_onboarding_version = jResp.stringOf(L"settings.onboarding.checklist_onboarding_version");
const wchar_t *Onboarding_segments = jResp.stringOf(L"settings.onboarding.onboarding_segments");
const wchar_t *Product_sign_up = jResp.stringOf(L"settings.onboarding.product_sign_up");
const wchar_t *Autorouting_tag = jResp.stringOf(L"settings.routing.autorouting_tag");
const wchar_t *RoutingEnabled = jResp.stringOf(L"settings.routing.enabled");
const wchar_t *Max_email_capacity = jResp.stringOf(L"settings.routing.max_email_capacity");
const wchar_t *Max_messaging_capacity = jResp.stringOf(L"settings.routing.max_messaging_capacity");
const wchar_t *Reassignment_messaging_enabled = jResp.stringOf(L"settings.routing.reassignment_messaging_enabled");
const wchar_t *Reassignment_messaging_timeout = jResp.stringOf(L"settings.routing.reassignment_messaging_timeout");
const wchar_t *Reassignment_talk_timeout = jResp.stringOf(L"settings.routing.reassignment_talk_timeout");
const wchar_t *Macro_most_used = jResp.stringOf(L"settings.rule.macro_most_used");
const wchar_t *Macro_order = jResp.stringOf(L"settings.rule.macro_order");
const wchar_t *Using_skill_based_routing = jResp.stringOf(L"settings.rule.using_skill_based_routing");
const wchar_t *Email_channel = jResp.stringOf(L"settings.side_conversations.email_channel");
const wchar_t *Msteams_channel = jResp.stringOf(L"settings.side_conversations.msteams_channel");
const wchar_t *Show_in_context_panel = jResp.stringOf(L"settings.side_conversations.show_in_context_panel");
const wchar_t *Slack_channel = jResp.stringOf(L"settings.side_conversations.slack_channel");
const wchar_t *Tickets_channel = jResp.stringOf(L"settings.side_conversations.tickets_channel");
const wchar_t *Forum = jResp.stringOf(L"settings.statistics.forum");
const wchar_t *Rule_usage = jResp.stringOf(L"settings.statistics.rule_usage");
const wchar_t *Search = jResp.stringOf(L"settings.statistics.search");
const wchar_t *Raw_ticket_forms_instructions = jResp.stringOf(L"settings.ticket_form.raw_ticket_forms_instructions");
const wchar_t *Ticket_forms_instructions = jResp.stringOf(L"settings.ticket_form.ticket_forms_instructions");
const wchar_t *Accepted_new_collaboration_tos = jResp.stringOf(L"settings.tickets.accepted_new_collaboration_tos");
const wchar_t *Agent_collision = jResp.stringOf(L"settings.tickets.agent_collision");
const wchar_t *Agent_ticket_deletion = jResp.stringOf(L"settings.tickets.agent_ticket_deletion");
const wchar_t *Allow_group_reset = jResp.stringOf(L"settings.tickets.allow_group_reset");
const wchar_t *Assign_default_organization = jResp.stringOf(L"settings.tickets.assign_default_organization");
const wchar_t *Assign_tickets_upon_solve = jResp.stringOf(L"settings.tickets.assign_tickets_upon_solve");
const wchar_t *Auto_updated_ccs_followers_rules = jResp.stringOf(L"settings.tickets.auto_updated_ccs_followers_rules");
const wchar_t *Collaboration = jResp.stringOf(L"settings.tickets.collaboration");
const wchar_t *Comments_public_by_default = jResp.stringOf(L"settings.tickets.comments_public_by_default");
const wchar_t *Email_attachments = jResp.stringOf(L"settings.tickets.email_attachments");
const wchar_t *Emoji_autocompletion = jResp.stringOf(L"settings.tickets.emoji_autocompletion");
const wchar_t *Follower_and_email_cc_collaborations = jResp.stringOf(L"settings.tickets.follower_and_email_cc_collaborations");
const wchar_t *Has_color_text = jResp.stringOf(L"settings.tickets.has_color_text");
const wchar_t *Is_first_comment_private_enabled = jResp.stringOf(L"settings.tickets.is_first_comment_private_enabled");
const wchar_t *Light_agent_email_ccs_allowed = jResp.stringOf(L"settings.tickets.light_agent_email_ccs_allowed");
const wchar_t *List_empty_views = jResp.stringOf(L"settings.tickets.list_empty_views");
const wchar_t *List_newest_comments_first = jResp.stringOf(L"settings.tickets.list_newest_comments_first");
const wchar_t *Markdown_ticket_comments = jResp.stringOf(L"settings.tickets.markdown_ticket_comments");
const wchar_t *Maximum_personal_views_to_list = jResp.stringOf(L"settings.tickets.maximum_personal_views_to_list");
const wchar_t *Private_attachments = jResp.stringOf(L"settings.tickets.private_attachments");
const wchar_t *Rich_text_comments = jResp.stringOf(L"settings.tickets.rich_text_comments");
const wchar_t *Status_hold = jResp.stringOf(L"settings.tickets.status_hold");
const wchar_t *Tagging = jResp.stringOf(L"settings.tickets.tagging");
const wchar_t *TicketsUsing_skill_based_routing = jResp.stringOf(L"settings.tickets.using_skill_based_routing");
const wchar_t *Shorten_url = jResp.stringOf(L"settings.twitter.shorten_url");
const wchar_t *Agent_created_welcome_emails = jResp.stringOf(L"settings.user.agent_created_welcome_emails");
const wchar_t *End_user_phone_number_validation = jResp.stringOf(L"settings.user.end_user_phone_number_validation");
const wchar_t *Have_gravatars_enabled = jResp.stringOf(L"settings.user.have_gravatars_enabled");
const wchar_t *Language_selection = jResp.stringOf(L"settings.user.language_selection");
const wchar_t *Multiple_organizations = jResp.stringOf(L"settings.user.multiple_organizations");
const wchar_t *UserTagging = jResp.stringOf(L"settings.user.tagging");
const wchar_t *Time_zone_selection = jResp.stringOf(L"settings.user.time_zone_selection");
const wchar_t *Agent_confirmation_when_forwarding = jResp.stringOf(L"settings.voice.agent_confirmation_when_forwarding");
const wchar_t *Agent_wrap_up_after_calls = jResp.stringOf(L"settings.voice.agent_wrap_up_after_calls");
const wchar_t *VoiceEnabled = jResp.stringOf(L"settings.voice.enabled");
const wchar_t *Logging = jResp.stringOf(L"settings.voice.logging");
const wchar_t *Maximum_queue_size = jResp.stringOf(L"settings.voice.maximum_queue_size");
const wchar_t *Maximum_queue_wait_time = jResp.stringOf(L"settings.voice.maximum_queue_wait_time");
const wchar_t *Only_during_business_hours = jResp.stringOf(L"settings.voice.only_during_business_hours");
const wchar_t *Outbound_enabled = jResp.stringOf(L"settings.voice.outbound_enabled");
const wchar_t *Recordings_public = jResp.stringOf(L"settings.voice.recordings_public");
const wchar_t *Uk_mobile_forwarding = jResp.stringOf(L"settings.voice.uk_mobile_forwarding");
int i = 0;
int count_i = jResp.SizeOfArray(L"settings.cdn.hosts");
while (i < count_i) {
jResp.put_I(i);
name = jResp.stringOf(L"settings.cdn.hosts[i].name");
url = jResp.stringOf(L"settings.cdn.hosts[i].url");
i = i + 1;
}
i = 0;
count_i = jResp.SizeOfArray(L"settings.localization.locale_ids");
while (i < count_i) {
jResp.put_I(i);
strVal = jResp.stringOf(L"settings.localization.locale_ids[i]");
i = i + 1;
}
i = 0;
count_i = jResp.SizeOfArray(L"settings.rule.skill_based_filtered_views");
while (i < count_i) {
jResp.put_I(i);
in523 = jResp.stringOf(L"settings.rule.skill_based_filtered_views[i].in523");
estc = jResp.stringOf(L"settings.rule.skill_based_filtered_views[i].estc");
i = i + 1;
}
i = 0;
count_i = jResp.SizeOfArray(L"settings.ticket_sharing_partners.support_addresses");
while (i < count_i) {
jResp.put_I(i);
strVal = jResp.stringOf(L"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}"
}
]
}