Title: Global_Styles
Published: April 26, 2023
Last modified: October 14, 2026

---

# Global_Styles

## In this article

 * [Schema](https://developer.wordpress.org/rest-api/reference/wp_global_styles/?output_format=md#schema)
 * [Retrieve a Global_Styles](https://developer.wordpress.org/rest-api/reference/wp_global_styles/?output_format=md#retrieve-a-global_styles)
    - [Definition & Example Request](https://developer.wordpress.org/rest-api/reference/wp_global_styles/?output_format=md#definition-example-request)
    - [Arguments](https://developer.wordpress.org/rest-api/reference/wp_global_styles/?output_format=md#arguments)
 * [Update a Global_Styles](https://developer.wordpress.org/rest-api/reference/wp_global_styles/?output_format=md#update-a-global_styles)
    - [Arguments](https://developer.wordpress.org/rest-api/reference/wp_global_styles/?output_format=md#arguments-2)
    - [Definition](https://developer.wordpress.org/rest-api/reference/wp_global_styles/?output_format=md#definition)
    - [Example Request](https://developer.wordpress.org/rest-api/reference/wp_global_styles/?output_format=md#example-request)

## 󠀁[Schema](https://developer.wordpress.org/rest-api/reference/wp_global_styles/?output_format=md#schema)󠁿

The schema defines all the fields that exist within a global_styles record. Any 
response from these endpoints can be expected to contain the fields below unless
the `_filter` query parameter is used or the schema field only appears in a specific
context.

 |   `id`  |   ID of global styles config.

 JSON data type: string

Read only

Context: `embed`, `view`, `edit`

  |  
 |   `styles`  |   Global styles.

 JSON data type: object

Context: `view`, `edit`

  |  
 |   `settings`  |   Global settings.

 JSON data type: object

Context: `view`, `edit`

  |  
 |   `title`  |   Title of the global styles variation.

 JSON data type: object or string

Context: `embed`, `view`, `edit`

  |

## 󠀁[Retrieve a Global_Styles](https://developer.wordpress.org/rest-api/reference/wp_global_styles/?output_format=md#retrieve-a-global_styles)󠁿

### 󠀁[Definition & Example Request](https://developer.wordpress.org/rest-api/reference/wp_global_styles/?output_format=md#definition-example-request)󠁿

 `GET /wp/v2/global-styles/<id>`

 Query this endpoint to retrieve a specific global_styles record.

 `$ curl https://example.com/wp-json/wp/v2/global-styles/<id>`

### 󠀁[Arguments](https://developer.wordpress.org/rest-api/reference/wp_global_styles/?output_format=md#arguments)󠁿

 |   `id`  |   The id of a template  |

## 󠀁[Update a Global_Styles](https://developer.wordpress.org/rest-api/reference/wp_global_styles/?output_format=md#update-a-global_styles)󠁿

### 󠀁[Arguments](https://developer.wordpress.org/rest-api/reference/wp_global_styles/?output_format=md#arguments-2)󠁿

 |   `[styles](https://developer.wordpress.org/rest-api/reference/wp_global_styles/?output_format=md#schema-styles)`  |   Global styles.  |  
 |   `[settings](https://developer.wordpress.org/rest-api/reference/wp_global_styles/?output_format=md#schema-settings)`  |   Global settings.  |  
 |   `[title](https://developer.wordpress.org/rest-api/reference/wp_global_styles/?output_format=md#schema-title)`  |   Title of the global styles variation.  |

### 󠀁[Definition](https://developer.wordpress.org/rest-api/reference/wp_global_styles/?output_format=md#definition)󠁿

 `POST /wp/v2/global-styles/<id>`

### 󠀁[Example Request](https://developer.wordpress.org/rest-api/reference/wp_global_styles/?output_format=md#example-request)󠁿

First published

April 26, 2023

Last updated

October 14, 2026

Edit article

[ Improve it on GitHub: Global_Styles ](https://github.com/WP-API/docs/edit/master/reference/wp_global_styles.md)

Changelog

[ See list of changes: Global_Styles ](https://github.com/WP-API/docs/commits/master/reference/wp_global_styles.md)

[  Previous: Editor Blocks](https://developer.wordpress.org/rest-api/reference/blocks/)

[  Next: Media](https://developer.wordpress.org/rest-api/reference/media/)