v1

latestOpenAPI 3.1.02026-07-24111290748.0 KB
Account

Create a setting

Create a setting for the current account.

post/api/account/settings

Request body

{"stackTrail":"paths:/api/account/settings:post:requestBody:content:application/json:schema:properties:data","oasType":"schema","type":"unknown","example":{"timezone":"UTC","business_hours":{"days":"1,2,3,4,5","from_time":"09:00","to_time":"22:00"}}}
typestring required

Example request

{
  "data": {
    "timezone": "UTC",
    "business_hours": {
      "days": "1,2,3,4,5",
      "from_time": "09:00",
      "to_time": "22:00"
    }
  },
  "type": "business-hours"
}

Response

Created setting

OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR

Example response

{
  "id": 987,
  "data": {
    "send_survey_for_chat": true,
    "send_survey_for_email": true,
    "send_survey_for_contact_form": true,
    "send_survey_for_help_center": true,
    "survey_email_html": "<div>Hi {{ticket.customer.firstname}},<br>How would you rate the help that our team provided? <br> {{satisfaction_survey_url}}</div>",
    "survey_email_text": "Hi {{ticket.customer.firstname}},\nHow would you rate the help that our team provided? {{satisfaction_survey_url}}",
    "survey_interval": 24
  },
  "type": "satisfaction-surveys"
}