POST /wp-json/wp/v2/media/{mediaId}

idUnique identifier for the object.
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.

Servers

Path parameters

Name Type Required Description
mediaId String Yes

Query parameters

Name Type Required Description
caption 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.