Head request for all published Media
HEAD
/media
const url = 'https://app.mediamanager.io/api/v1/media';const options = {method: 'HEAD'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request HEAD \ --url https://app.mediamanager.io/api/v1/mediaReturn an empty response from the endpoint with the same headers as GET
Responses
Section titled “ Responses ”Get the response head which should contain no body