Setting the HTTP request type

Last update: 2022-11-11
  • Created for:
  • User

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