Help needed with JW Player API to update media file

Hi everyone,

I’m trying to use the JW Player API to update an existing media file, but I’m running into some difficulties. According to the JW Player Developer docs, I should be able to send a PUT request to https://api.jwplayer.com/v2/sites/{site_id}/media/{media_id}/reupload with JSON data specifying the new file.

Here’s what my request currently looks like:

PUT https://api.jwplayer.com/v2/sites/{site_id}/media/{media_id}/reupload
Content-Type: application/json

{
  "upload": {
    "method": "PUT",
    "file": "http://www.website.eu/podcast/SCOM00027743.mp3"
  }
}

I’ve included the proper authorization headers (my API key and secret) through my application’s configuration, but I still don’t see the media updating on JW Player’s dashboard, and the file doesn’t seem to be replaced.

Has anyone successfully used this endpoint before and can offer some guidance? Are there specific response codes or error messages I should look for, or any known quirks with the reupload endpoint? Any tips or sample code (even in cURL) would be greatly appreciated.

Thanks in advance!

Henrik

HI @Henrik_Poulsen,
What response do you get from the JW Player API when you run the put request?

Edit: in the config of the JW Player API Request module, you forgot to fill out the {site_id} and {media_id}

Both are required

Hi Julius

  • thanks :slight_smile:

In the screenshot, I did not fill out the IDs.

I got this from Make:

ConnectionError

ENOTFOUND: Service is temporarily unavailable.

Origin

So you got this error after filling out both IDs?

This means Make is unable to reach the external service. I don’t think there is much you can do about it except to try again later or contact support.

For technical issues or bugs like this, directly contacting support can often lead to a faster resolution. They have access to your specific account details, scenario and scenario logs, server-side logs, and internal tools and resources, which allows them to investigate more thoroughly than what you have access to. Additionally, sharing sensitive information about your account or scenario might not be suitable for an open forum discussion.

You can open a new ticket here, or if you are unable to login for some reason, you can create another new free account to access the ticketing system (which is only available to logged-in users). After submitting a new ticket, you will receive an automatic confirmation email with the subject “Ticket Created” in the subject. If you do not receive this, try sending the ticket again.

If you manage to get your issue resolved with support, we’d still love to hear about it! Sharing your solution on the forum can help others facing similar problems.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.