Guide

Block Tables REST API

Custom REST route for Flexible Table Block global options used by Power Table settings.

Base path: /wp-json/flexible-table-block/v1/

Source: src/table/class-api.php (FTB_NAMESPACE = flexible-table-block).

Auth summary

CapabilityMethods
edit_postsGET /options
edit_posts when global setting UI is enabled; otherwise administratorPOST /options, DELETE /options

Route index

MethodPathPurpose
GET/optionsRead options plus minified editor-scoped block_css
POST/optionsUpdate options
DELETE/optionsDelete options

GET /options

Requires edit_posts. Response includes settings from Settings::get_options() and a block_css string from Helper::get_block_css( '.editor-styles-wrapper ' ) (minified).

POST / DELETE /options

Permission depends on the show_global_setting option. When that UI is enabled, edit_posts is enough; otherwise the caller needs administrator.

Was this helpful?