Staff
Endpoint: /wp-json/sportspress/v2/staff
Field Definitions
Date and Time Fields
Field | Description |
| Publication date in site timezone (ISO 8601 format) |
| Publication date as GMT (ISO 8601 format) |
| Last modification date in site timezone (read-only) |
| Last modification date as GMT (read-only) |
Identification Fields
Field | Description |
| Unique identifier for the object (integer, read-only) |
| Globally unique identifier (read-only) |
| Alphanumeric identifier unique to its type |
| URL to the object (read-only) |
Content Fields
Field | Description |
| The staff member's name |
| The staff member's biography or description |
| A brief summary for the staff member |
| The ID for the author of the object |
| The ID of the featured media (photo) for the object |
Status and Access Fields
Field | Description |
| Named status for the object; one of |
| A password to protect access to the content and excerpt (edit context only) |
| Whether or not comments are open; |
| Whether or not the object can be pinged; |
Order Fields
Field | Description |
| The order of the object in relation to other objects of its type |
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) |
| The terms assigned to the object in the role taxonomy (staff jobs, array of term IDs) |
Staff-Specific Fields
Field | Description |
| 3-letter country codes for the staff member's nationalities (array of strings) |
| The IDs of all teams the staff member is associated with (array — current and past) |
| The IDs of the staff member's current active team associations (array) |
| The IDs of the staff member's historical team associations (array) |
Fields operate within different contexts (view, edit, embed) that control accessibility and visibility depending on the use case. Fields such as guid, id, link, and modification timestamps are read-only.
Example Requests
List All Staff
GET /wp-json/sportspress/v2/staff
Retrieve a Single Staff Member
GET /wp-json/sportspress/v2/staff/77
Create a Staff Member
POST /wp-json/sportspress/v2/staff
Content-Type: application/json{
"title": "Jane Doe",
"status": "publish",
"nationalities": ["gbr"],
"current_teams": [10],
"roles": [8],
"leagues": [5],
"seasons": [3]
}Update a Staff Member's Teams
PUT /wp-json/sportspress/v2/staff/77
Content-Type: application/json{
"current_teams": [10, 12],
"past_teams": [9]
}
