Awesome Support Developer Documentation

Update A Ticket

Arguments

id Unique identifier for the object.
date The date the object was published, in the site’s timezone.
date_gmt The date the object was published, as GMT.
slug An alphanumeric identifier for the object unique to its type.
status A named status for the object.

One of: publish, future, draft, pending, private, in-progress, failed, wc-active, wc-switched, wc-expired, wc-pending-cancel, wc-pending, wc-processing, wc-on-hold, wc-completed, wc-cancelled, wc-refunded, wc-failed, queued, processing, hold, read, unread, wcm-active, wcm-free_trial, wcm-delayed, wcm-complimentary, wcm-pending, wcm-paused, wcm-expired, wcm-cancelled

title The title for the object.
content The content for the object.
ticket-tag The terms assigned to the object in the ticket-tag taxonomy.
product The terms assigned to the object in the product taxonomy.
department The terms assigned to the object in the department taxonomy.
ticket_priority The terms assigned to the object in the ticket_priority taxonomy.
ticket_channel The terms assigned to the object in the ticket_channel taxonomy.
state Limit result set to tickets in the specified state.
author The ID for the author of the object. Set to 0 for all authors.
assignee The agent assigned to this ticket. Set to 0 for all assignees.
secondary-assignee The secondary assignee for this ticket
tertiary-assignee The tertiary assignee for this ticket
customer-reply-count The number of customer replies to this ticket
agent-reply-count The number of agent replies to this ticket
total-reply-count The number of total replies to this ticket
time-calculated The gross time calculated for ticket in minutes
time-adjustments The time adjustments for ticket in minutes
time-adjustments-type The type of time adjustment, positive or negative.
time-notes The notes for the time

Definition

POST /wpas-api/v1/tickets/<id>

Example Request

$ curl -X POST http://awesomesupport.dev/wp-json -d '{"title":"My New Title"}'

Share: