You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I send POST /eox-core/api/v1/enrollment/ with this data
{
"username": "Yves",
"course_id": "course-v1:edX+DemoX+Demo_Course",
"mode": "audit",
"is_active": "True",
"force": "True",
"enrollment_attributes": [
{
"namespace": "credit",
"name": "provider_id",
"value": "institution_name"
}
]
}
I get
{
"mode": [
"This field is required."
]
}
It seems to me that mode = serializers.ChoiceField(choices=["audit", "honor", "verified"], default="audit")
is missing from class EdxappCourseEnrollmentQuerySerializer(EdxappCourseEnrollmentSerializer):
am I wrong or I'm missing something?
The text was updated successfully, but these errors were encountered:
Describe the bug
When I send POST /eox-core/api/v1/enrollment/ with this data
{
"username": "Yves",
"course_id": "course-v1:edX+DemoX+Demo_Course",
"mode": "audit",
"is_active": "True",
"force": "True",
"enrollment_attributes": [
{
"namespace": "credit",
"name": "provider_id",
"value": "institution_name"
}
]
}
I get
{
"mode": [
"This field is required."
]
}
It seems to me that mode = serializers.ChoiceField(choices=["audit", "honor", "verified"], default="audit")
is missing from class EdxappCourseEnrollmentQuerySerializer(EdxappCourseEnrollmentSerializer):
am I wrong or I'm missing something?
The text was updated successfully, but these errors were encountered: