Awesome Support Developer Documentation

Update An Attachment

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.
author The ID for the author of the object.
comment_status Whether or not comments are open on the object.

One of: open, closed

ping_status Whether or not the object can be pinged.

One of: open, closed

meta Meta fields.
template The theme file to use to display the object.
alt_text Alternative text to display when attachment is not displayed.
caption The attachment caption.
description The attachment description.
post The ID for the associated post of the attachment.

Definition

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

Example Request

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

 

Share: