AnsweredAssumed Answered

REST API Can't Change Tests?

Question asked by bj0069601 on Jun 28, 2018
Latest reply on Jul 12, 2018 by bj0069601


I'm in the process of making some shortcut additions to our Blackboard installation, and for this I'm using the REST API.

The shortcut I'm trying to add at the moment, is a button that allows instructors to change the avaiiability of a content item with one click (instead of using the editing menu).

I've gotten my sample to work perfectly, except when handling Tests. When I try to change the avilability of a Test Content Item (of any other field), I get the following error:

 

    "status": 403,
    "message": "Fields may not be changed after creation: [hasGradebookColumns]"

 

Is there a way to move around this? Or is it intentionally blocked?

 

 

 

For reference, I send the following request:

 

URL:

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

 

BODY:

{
    "availability": {
        "available": "No"
    }
}

 

HEADERS:

Authorization: Bearer <TOKEN>
Content-Type: application/json

Outcomes