The schema defines all the fields that exist for a attachment object.
date string, datetime (ISO8601) |
The date the object was published, in the site’s timezone.
Context: |
date_gmt string, datetime (ISO8601) |
The date the object was published, as GMT.
Context: |
guid object |
The globally unique identifier for the object.
Read only Context: |
id integer |
Unique identifier for the object.
Read only Context: |
link string, uri |
URL to the object.
Read only Context: |
modified string, datetime (ISO8601) |
The date the object was last modified, in the site’s timezone.
Read only Context: |
modified_gmt string, datetime (ISO8601) |
The date the object was last modified, as GMT.
Read only Context: |
slug string |
An alphanumeric identifier for the object unique to its type.
Context: |
status string |
A named status for the object.
Context: One of: |
type string |
Type of Post for the object.
Read only Context: |
title object |
The title for the object.
Context: |
author integer |
The ID for the author of the object.
Context: |
comment_status string |
Whether or not comments are open on the object.
Context: One of: |
ping_status string |
Whether or not the object can be pinged.
Context: One of: |
meta object |
Meta fields.
Context: |
template string |
The theme file to use to display the object.
Context: |
alt_text string |
Alternative text to display when attachment is not displayed.
Context: |
caption object |
The attachment caption.
Context: |
description object |
The attachment description.
Context: |
media_type string |
Attachment type.
Read only Context: One of: |
mime_type string |
The attachment MIME type.
Read only Context: |
media_details object |
Details about the media file, specific to its type.
Read only Context: |
post integer |
The ID for the associated post of the attachment.
Context: |
source_url string, uri |
URL to the original attachment file.
Read only Context: |
$ curl -X OPTIONS -i http://demo.getawesomesupport.com/wp-json/wpas-api/v1/attachments