Content setting resources

Get content settings

GET /settings/content

Response

{
  "default_allowed_upload_file_types": [
    "7z",
    "avi",
    "csv",
    "doc",
    "docx",
    "mov",
    "mp3",
    "mp4",
    "odt",
    "pdf",
    "pps",
    "ppt",
    "pptx",
    "rar",
    "rtf",
    "txt",
    "xls",
    "xlsx",
    "zip",
    "jpg",
    "jpeg",
    "png",
    "gif"
  ],
  "upload_file_types_blacklist": [
    "xlsx",
    "txt"
  ],
  "allowed_upload_file_types": [
    "7z",
    "avi",
    "csv",
    "doc",
    "docx",
    "mov",
    "mp3",
    "mp4",
    "odt",
    "pdf",
    "pps",
    "ppt",
    "pptx",
    "rar",
    "rtf",
    "xls",
    "zip",
    "jpg",
    "jpeg",
    "png",
    "gif"
  ],
  "show_average_rating_to_user": false,
  "delete_solved_questions": true,
  "content_allowed_iframe_sources": [
    "www.youtube.com",
    "player.vimeo.com"
  ],
  "hide_tags": true,
  "content_allow_html_tables": true,
  "question_title_max_length": 100,
  "content_allow_raw_html_tags": true
}


Update content settings

PUT /settings/content

Note: If a setting key is omitted the setting is ignored. If the value for a setting is set to null the respective setting is reset to its default value.

default_allowed_upload_file_types cannot be altered - the default list will always be returned.

allowed_upload_file_types can only be altered by updating the blacklist.

allowed_upload_file_types = default_allowed_upload_file_types - upload_file_types_blacklist.

Parameter Type Default Description
upload_file_types_blacklist array [] Apart from the default list of file extensions that can be uploaded, files with these extensions cannot be uploaded as attachments.
show_average_rating_to_user boolean true Show average user rating in its activity stream.
delete_solved_questions boolean false Allowed to delete questions that already have solutions.
content_allowed_iframe_sources Array ["www.youtube.com", "player.vimeo.com"] Allows to embed sources from following domains in the content editor.
hide_tags boolean false Shows the tags of a question to the users.
content_allow_html_tables boolean false Allows to add html tables in the content editor.
content_allow_raw_html_tags boolean false Allows to edit html in the content editor.
question_title_max_length integer 100 The maximum allowed question title length is 191 characters.

Response

{
  "upload_file_types": [],
  "show_average_rating_to_user": true,
  "delete_solved_questions": false,
  "content_allowed_iframe_sources": [
    "www.youtube.com",
    "player.vimeo.com"
  ],
  "hide_tags": false,
  "content_allow_html_tables": false,
  "question_title_max_length": 100,
  "content_allow_raw_html_tags": false
}