Changed mimeType to mediaType so that it matches the json