League Tables
Endpoint: /wp-json/sportspress/v2/tables
Field Definitions
Identification Fields
Field | Description |
| Unique identifier for the object (integer, read-only) |
| Globally unique identifier (object, read-only) |
| Alphanumeric identifier unique to its type |
| URL to the object (string URI, read-only) |
Date and Time Fields
Field | Description |
| Publication date in site timezone (ISO 8601 datetime) |
| Publication date as GMT (ISO 8601 datetime) |
| Last modification date in site timezone (ISO 8601 datetime, read-only) |
| Last modification date as GMT (ISO 8601 datetime, read-only) |
Content Fields
Field | Description |
| The title for the league table object |
| The content for the league table object |
| The excerpt for the league table object |
Status and Access Fields
Field | Description |
| Named status for the object; one of |
| A password to protect access to the content and excerpt |
| Whether or not comments are open; |
| Whether or not the object can be pinged; |
Media and Metadata Fields
Field | Description |
| The ID for the author of the object (integer) |
| The ID of the featured media for the object (integer) |
| The order of the object in relation to other objects of its type (integer) |
Taxonomy Fields
Field | Description |
| The terms assigned to the object in the league taxonomy (array of term IDs) |
| The terms assigned to the object in the season taxonomy (array of term IDs) |
Table-Specific Fields
Field | Description |
| The full league table data including standings for all teams (array, read-only in view context) |
The data field returns the calculated standings array, including all configured column values for each team in the table. This is a computed field and is not directly writable.
Example Requests
List All League Tables
GET /wp-json/sportspress/v2/tables
Retrieve a Single League Table
GET /wp-json/sportspress/v2/tables/20
The response includes the data array with the full standings.
Create a League Table
POST /wp-json/sportspress/v2/tables
Content-Type: application/json{
"title": "Premier Division 2026",
"status": "publish",
"leagues": [5],
"seasons": [3]
}
