Catalog API Create Course with Listing Image

alexei-bezpaltc
Community Explorer

I am trying to create a Catalog entry though the API call. It created successfully but there is no Listing image.

Documentation says: course[listing_image] : URL or file upload for the image to be shown with this listing : String.

I'm trying to use URL and verified it is definitely valid and accessible. 

Alternatively, what do they mean by "file upload"?

Any ideas or suggestions? Here is my JSON:

{
    "title": "My test course",
    "description": "My test course- long description here",
    "listing_path": "2020-21-myTestCourse",
    "listing_image": "http://myfavoritehosting.edu/mywebapp/catalogimage.jpg",
    "teaser": "It's gonna be great!",
    "account_id": 9486,
    "catalog": {
        "id": 9486
    },
    "canvas_course": {
        "id": 1566
    },
    "visibility": "listed",
    "enrollment_open": true
}

 Thank you!

Labels (2)
0 Likes