Schema

The schema defines all the fields that exist for a ticket_history 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

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

type
string

Type of Post for the object.

Read only

Context: view, edit, embed

password
string

A password to protect access to the content and excerpt.

Context: edit

content
object

The content for the object.

Context: view, edit, embed

Example Request

$ curl -X OPTIONS -i http://demo.getawesomesupport.com/wp-json/wpas-api/v1/tickets/<ticket_id>/history

List Ticket Historys

Arguments

ticket_id

Unique identifier for the ticket.

context

Scope under which the request is made; determines fields present in response.

Default: view

One of: view, embed, edit

page

Current page of the collection.

Default: 1

per_page

Maximum number of items to be returned in result set.

Default: 10

search

Limit results to those matching a string.

after

Limit response to posts published after a given ISO8601 compliant date.

before

Limit response to posts published before a given ISO8601 compliant date.

exclude

Ensure result set excludes specific IDs.

Default:

include

Limit result set to specific IDs.

Default:

offset

Offset the result set by a specific number of items.

order

Order sort attribute ascending or descending.

Default: desc

One of: asc, desc

orderby

Sort collection by object attribute.

Default: date

One of: author, date, id, include, modified, parent, relevance, slug, title

slug

Limit result set to posts with one or more specific slugs.

status

Limit result set to items assigned one or more statuses.

Default: any

Definition

GET /wpas-api/v1/tickets/<ticket_id>/history

Example Request

$ curl http://demo.getawesomesupport.com/wp-json/wpas-api/v1/tickets/<ticket_id>/history

Retrieve a Ticket History

Arguments

ticket_id

Unique identifier for the ticket.

id

Unique identifier for the history.

context

Scope under which the request is made; determines fields present in response.

Default: view

One of: view, embed, edit

password

The password for the post if it is password protected.

Definition

GET /wpas-api/v1/tickets/<ticket_id>/history/<id>

Example Request

$ curl http://demo.getawesomesupport.com/wp-json/wpas-api/v1/tickets/<ticket_id>/history/<id>