AnsweredAssumed Answered

Trying to access guests and created through courses?courseId

Question asked by re31640 on Jul 5, 2019
Latest reply on Jul 9, 2019 by re31640

REST API Question - 

 

I'm trying to access

allowGuests (boolean, optional): Whether guests (users with the role guest) are allowed access to the course. Defaults to true. ,

 

and 

 

created (string, read only): The date this course was created. ,

 


I've set the user privileges to view 'course.configure-properties.EXECUTE' -> Course/Organization Control Panel (Customization) > Properties)


I've tried calling this on our prodcution server (Release 3400.0.3-rel.33+7014650) - and Test MIG ( Release 3700.5.0-rel.14+eacb9cf)
neither return guests or created, though bizarrely production gives a guest URL... and both can be sorted by created.

Any hints on what I might have missed most gratefully received.

 

 

$urlroot.'v1/courses?courseId='.$code

returns this from our production instance (var_dump):


object(stdClass)#2 (11)
{
["id"]=> string(9) "_113431_1"
["courseId"]=> string(10) "SWM40_2019"
["name"]=> string(41) "2019 SWM40 - Algorithms and Computability"
["organization"]=> bool(false)
["ultraStatus"]=> string(7) "Classic"
["readOnly"]=> bool(false)
["availability"]=> object(stdClass)#3 (2)
{
["available"]=> string(3) "Yes"
["duration"]=> object(stdClass)#4 (1)
{
["type"]=> string(10) "Continuous"
}
}
["enrollment"]=> object(stdClass)#5 (1)
{
["type"]=> string(13) "InstructorLed"
}
["locale"]=> object(stdClass)#6 (1)
{
["force"]=> bool(false)
}
["externalAccessUrl"]=> string(99) "https://studentcentral.brighton.ac.uk/webapps/blackboard/execute/courseMain?course_id=_113431_1&sc="
["guestAccessUrl"]=> string(99) "https://studentcentral.brighton.ac.uk/webapps/blackboard/execute/courseMain?course_id=_113431_1&sc="
}

 

The same
v1/courses?courseId='.$code
against our Saas migration server gives less

 

object(stdClass)#2 (7)
{
["id"]=> string(9) "_113404_1"
["courseId"]=> string(10) "SWM40_2019"
["name"]=> string(41) "2019 SWM40 - Algorithms and Computability"
["organization"]=> bool(false)
["ultraStatus"]=> string(7) "Classic"
["readOnly"]=> bool(false)
["availability"]=> object(stdClass)#3 (2)
{
["available"]=> string(3) "Yes"
["duration"]=> object(stdClass)#4 (1)
{
["type"]=> string(10) "Continuous"
}
}
}

 

 

if I use $urlroot.'v2/courses?courseId='.$code

object(stdClass)#2 (7)
{
["id"]=> string(9) "_113404_1"
["courseId"]=> string(10) "SWM40_2019"
["name"]=> string(41) "2019 SWM40 - Algorithms and Computability"
["organization"]=> bool(false)
["ultraStatus"]=> string(7) "Classic"
["closedComplete"]=> bool(false)
["availability"]=> object(stdClass)#3 (2)
{
["available"]=> string(3) "Yes"
["duration"]=> object(stdClass)#4 (1)
{
["type"]=> string(10) "Continuous"
}
}
}

- which has closed complete instead of readOnly...

but no more data

 

I've looked manually and the data is there... 

Outcomes