Previously it was serializing the course_key directly, which is not interpreted correctly by the API.
course_key
course