Resolving "Not acceptable format: json" error (HTTP code 406) in batch operations