POST /wp-json/wp/v2/media
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 |
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. |
Multiple different ways to do this. The way I illustrate here is:
Set the Content-Type
to the image file type.
Set Content-Disposition
to ```form-data;filename="YOUR-FILENAME.FILE_TYPE"
Set the binary to the file you wish to upload.
Servers
- https://{baseUrl}
Request headers
Name | Type | Required | Description |
---|---|---|---|
content-disposition |
String | No |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.