Delete An Attachment

Arguments id Unique identifier for the object. force Whether to bypass trash and force deletion. Definition DELETE /wpas-api/v1/attachments/<id> Example Request $ curl -X DELETE...

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...

Create An Attachment

Arguments 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,...

Retrieve An Attachment

Arguments id Unique identifier for the object. context Scope under which the request is made; determines fields present in response. Default: view One of: view, embed, edit Definition GET /wpas-api/v1/attachments/<id> Example Request $ curl...

List Attachments

Arguments 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...