The schema defines all the fields that exist for a attachment object.
datestring, datetime (ISO8601) |
The date the object was published, in the site’s timezone.
Context: |
date_gmtstring, datetime (ISO8601) |
The date the object was published, as GMT.
Context: |
guidobject |
The globally unique identifier for the object.
Read only Context: |
idinteger |
Unique identifier for the object.
Read only Context: |
linkstring, uri |
URL to the object.
Read only Context: |
modifiedstring, datetime (ISO8601) |
The date the object was last modified, in the site’s timezone.
Read only Context: |
modified_gmtstring, datetime (ISO8601) |
The date the object was last modified, as GMT.
Read only Context: |
slugstring |
An alphanumeric identifier for the object unique to its type.
Context: |
statusstring |
A named status for the object.
Context: One of: |
typestring |
Type of Post for the object.
Read only Context: |
titleobject |
The title for the object.
Context: |
authorinteger |
The ID for the author of the object.
Context: |
comment_statusstring |
Whether or not comments are open on the object.
Context: One of: |
ping_statusstring |
Whether or not the object can be pinged.
Context: One of: |
metaobject |
Meta fields.
Context: |
templatestring |
The theme file to use to display the object.
Context: |
alt_textstring |
Alternative text to display when attachment is not displayed.
Context: |
captionobject |
The attachment caption.
Context: |
descriptionobject |
The attachment description.
Context: |
media_typestring |
Attachment type.
Read only Context: One of: |
mime_typestring |
The attachment MIME type.
Read only Context: |
media_detailsobject |
Details about the media file, specific to its type.
Read only Context: |
postinteger |
The ID for the associated post of the attachment.
Context: |
source_urlstring, uri |
URL to the original attachment file.
Read only Context: |
$ curl -X OPTIONS -i http://demo.getawesomesupport.com/wp-json/wpas-api/v1/attachments