Account

Create a setting

Changed on

Create a setting for the current account.

post/api/account/settings

Request

Request body

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

Changes

    • breaking

      added to the response body oneOf list for the response status

    • info

      added billing-product-hard-limits mapping keys to the response discriminator for the response status