AnsweredAssumed Answered

Course Membership Error 400

Question asked by ajdinmasic on Jun 5, 2019
Latest reply on Jun 5, 2019 by ajdinmasic

Hello,

 

I am trying to create a course membership however, I keep getting this error: 

{

   "status":400,

   "message":"Unable to set read-only fields: [userId, courseId]"

}

 

The JSON that I'm sending to Blackboard via PUT request:
{

   "userId": "externalId:<externalId>",

   "courseId": "externalId:<externalId>",

   "availability": {

      "available": "No"

   },

   "courseRoleId": "Instructor"

}

 

The link that I'm sending it to:

domain.com/learn/api/public/v1/courses/externalId:<externalId>/users/externalId:<externalId>

My initial thought was that the user wasn't in the Blackboard system but I verified this specific user and course are both in the system.

 

Does anybody have any ideas as to why I'm getting this error? I'm not trying to set the userId and courseId I'm just trying to assign a course membership.

Outcomes