Catalog API Create Course with Listing Image

AlexeiB
Community Member

Hello 

I am trying to create Catalog entry though the API call. Course created successfully but there is no Listing image. (URL http://myfavoritehosting.edu/mywebapp/catalogimage.jpg is definitely valid and accessible) Any ideas or suggestions why?  

Here is my JSON:

{
"title": "My test course- Gmail3",
"description": "My test course- Gmail3 long description here",
"listing_path": "2020-21-gmail3",
"teaser": "It's gonna be great!",
"listing_image": "http://myfavoritehosting.edu/mywebapp/catalogimage.jpg",

"account_id": 9486,
"catalog": {
"id": 9486
},
"canvas_course": {
"id": 1566
},
"visibility": "listed",
"enrollment_open": true
}

 

Documentation says this:

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

Thank you!

Labels (1)
0 Likes