AnsweredAssumed Answered

Changing image title using REST

Question asked by bj0069601 on Aug 29, 2018

Hi there,

 

I'm currently developing some UX improvements for use on our Blackboard installation. One of the improvements, is a way for instructors to quickly edit the title and/or content of a content item.

 

To do this, I have created a JavaScript Hack Package, that uses the REST API to update the values after the user is done editing. This works fine for most content, but images!

 

I think I have narrowed the issue down to the image content item using the resource/x-bb-image contenthandler. This handler does not appear to be supported (Data Types for contentHandler), , as trying to PATCH the title returns this error: "Content handler is not known or not supported. resource/x-bb-image".

 

Is there any way that I can get around this issue? E.g. by tricking it into using another content handler?

 

Using Postman, I use the following PATCH request:

 

http://localhost:9876/learn/api/public/v1/courses/_3_1/contents/_25_1

OAuth2 authorization

Content-Type: application/json

Body: { "title": "New Title" }

 

Outcomes