AnsweredAssumed Answered

Creating an attempt on a column without associated content

Question asked by ji0079770 on Jul 9, 2019
Latest reply on Jul 18, 2019 by Peter Love

Hi,

 

Recently we are facing some issues with the Attempts API. In particular, we the API allows to create a new column not associated with any course content (actually, the "contentId" field is ready only), using the /api/public/v2/courses/{courseId}/gradebook/columns endpoint, but for some reason (well, due to an internal validation), we get the following error when creating an attempt on that column:

[ERROR] Error Id: 2514c38f9aef4c9797fa036682b3bf85 - java.lang.IllegalArgumentException: Course content not found
at blackboard.webapps.gradebook.publicapi.v1.ColumnContentValidatorPubV1.validateCanCreateOrUpdateAttemptColumn(ColumnContentValidatorPubV1.java:67)
at blackboard.webapps.gradebook.publicapi.v1.ColumnContentValidatorPubV1.validateCanCreateAttempt(ColumnContentValidatorPubV1.java:44)
at blackboard.webapps.gradebook.publicapi.v2.ColumnAttemptsRestServicePubV2.createColumnAttempt(ColumnAttemptsRestServicePubV2.java:294)

 

which is obviously wronly validated, as the content ID is always null (it's a readonly field at column creation time). What are we missing here? I guess it's an API issue. What do you think?

 

Thanks

Outcomes