POST /wp-json/wp/v2/media

dateThe date the object was published, in the site's timezone.
date_gmtThe date the object was published, as GMT.
slugAn alphanumeric identifier for the object unique to its type.
statusA named status for the object.
One of: publish, future, draft, pending, private
titleThe title for the object.
authorThe ID for the author of the object.
comment_statusWhether or not comments are open on the object.
One of: open, closed
ping_statusWhether or not the object can be pinged.
One of: open, closed
metaMeta fields.
templateThe theme file to use to display the object.
alt_textAlternative text to display when attachment is not displayed.
captionThe attachment caption.
descriptionThe attachment description.
postThe 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

Request headers

Name Type Required Description
content-disposition String No

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. 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.
  3. Click Test request to test run your request to the API and see the API's response.