`/wp/v2/settings`

Namespace: wp/v2
Route: /wp/v2/settings

Routes

  • Collection: /wp/v2/settings

HTTP Methods

Collection methods: GET, POST, PUT, PATCH

Request Parameters

Collection GET

None.

Collection POST, PUT, PATCH

ParameterTypeRequiredDefaultDescription
active_templatesobjectfalse
public_post_preview_expiration_timeintegerfalseDefault expiration time in seconds.
titlestringfalseSite title.
descriptionstringfalseSite tagline.
timezonestringfalseA city in the same timezone as you.
date_formatstringfalseA date format for all date strings.
time_formatstringfalseA time format for all time strings.
start_of_weekintegerfalseA day number of the week that the week should start on.
languagestringfalseWordPress locale code.
use_smiliesbooleanfalseConvert emoticons like 🙂 and 😛 to graphics on display.
default_categoryintegerfalseDefault post category.
default_post_formatstringfalseDefault post format.
posts_per_pageintegerfalseBlog pages show at most.
show_on_frontstringfalseWhat to show on the front page
page_on_frontintegerfalseThe ID of the page that should be displayed on the front page
page_for_postsintegerfalseThe ID of the page that should display the latest posts
default_ping_statusstringfalseAllow link notifications from other blogs (pingbacks and trackbacks) on new articles.
default_comment_statusstringfalseAllow people to submit comments on new posts.
site_logointegerfalseSite logo.
site_iconintegerfalseSite icon.
cookie_consent_templatestringfalse
Blogroll RecommendationsarrayfalseSite Recommendations

Response Schema (Item)

FieldTypeDescription
active_templatesobject
public_post_preview_expiration_timeintegerDefault expiration time in seconds.
titlestringSite title.
descriptionstringSite tagline.
timezonestringA city in the same timezone as you.
date_formatstringA date format for all date strings.
time_formatstringA time format for all time strings.
start_of_weekintegerA day number of the week that the week should start on.
languagestringWordPress locale code.
use_smiliesbooleanConvert emoticons like 🙂 and 😛 to graphics on display.
default_categoryintegerDefault post category.
default_post_formatstringDefault post format.
posts_per_pageintegerBlog pages show at most.
show_on_frontstringWhat to show on the front page
page_on_frontintegerThe ID of the page that should be displayed on the front page
page_for_postsintegerThe ID of the page that should display the latest posts
default_ping_statusstringAllow link notifications from other blogs (pingbacks and trackbacks) on new articles.
default_comment_statusstringAllow people to submit comments on new posts.
site_logointegerSite logo.
site_iconintegerSite icon.
cookie_consent_templatestring
Blogroll RecommendationsarraySite Recommendations

Authentication

  • Read/Write: manage_options.

Example Requests

bash
curl -X GET "https://wordpress.org/news/wp-json/wp/v2/settings"
bash
curl -X POST "https://wordpress.org/news/wp-json/wp/v2/settings" 
  -H 'Authorization: Basic <app-password>' 
  -H 'Content-Type: application/json' 
  -d '{"title":"Example"}'

Example Response (trimmed)

json
{
  "id": 1,
  "_links": {
    "self": [{ "href": "/wp/v2/settings/1" }]
  }
}