Staff Schema

Endpoint: /wp-json/sportspress/v2/staff

Schema

The schema defines all the fields that exist for a staff object.

date
string, datetime (ISO8601)
The date the object was published, in the site's timezone.
Context: view, edit, embed
date_gmt
string, datetime (ISO8601)
The date the object was published, as GMT.
Context: view, edit
guid
object
The globally unique identifier for the object.
Read only
Context: view, edit
id
integer
Unique identifier for the object.
Read only
Context: view, edit, embed
link
string, uri
URL to the object.
Read only
Context: view, edit, embed
modified
string, datetime (ISO8601)
The date the object was last modified, in the site's timezone.
Read only
Context: view, edit
modified_gmt
string, datetime (ISO8601)
The date the object was last modified, as GMT.
Read only
Context: view, edit
password
string
A password to protect access to the event.
Context:  edit
slug
string
An alphanumeric identifier for the object unique to its type.
Context: view, edit, embed
status
string
A named status for the object.
Context:  edit
One of: publish, future, draft, pending, private
title
object
The title for the object.
Context: view, edit, embed
content
object
The content for the object.
Context: view, edit
author
integer
The id for the author of the object.
Context: view, edit, embed
excerpt
object
The excerpt for the object.
Context: view, edit, embed
featured_media
integer
The id of the featured media for the object.
Context: view, edit
comment_status
string
Whether or not comments are open on the object.
Context: view, edit
One of:  openclosed
ping_status
string
Whether or not the object can be pinged.
Context: view, edit
One of:  openclosed
menu_order
integer
The order of the object in relation to other object of its type.    
Context: view, edit
leagues
array
The terms assigned to the object in the league taxonomy.
Context: view, edit
seasons
array
The terms assigned to the object in the season taxonomy. 
Context: view, edit
roles
array
The terms assigned to the object in the role taxonomy. 
Context: view, edit
teams
array
The ids for the teams that the staff member belongs to.
Context: view, edit
current_teams
array
The ids for the staff member's current teams.
Context: view, edit
past_teams
array
The ids for the staff member's past teams.
Context: viewedit
nationalities
array
The 3-letter country codes for the staff member's nationalities.
Context:  vieweditembed

Still need help? Submit a Support Ticket Submit a Support Ticket