Content setting resources

Get content settings

GET /settings/content

Response

{
  "upload_file_types": [
    "pdf",
    "xls",
    "xlsx"
  ],
  "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.

Parameter Type Default Description
upload_file_types array [] Allowed upload file formats. Following image file formats are always allowed: 'jpg, jpeg, png, gif'.
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
}