Setting the HTTP request type

Last update: 2024-06-24
  • Created for:
  • User
    Admin
    Developer

The request body for all Media Collection API requests must be in JSON format, so you should set the content request type in your player. For example, in JavaScript you would set the Content-Type request header as follows:

httpRequest.setRequestHeader('Content-Type', 'application/json');

On this page