curl --request POST \
--url https://api.alpha-1edtech.ai/ims/oneroster/rostering/v1p2/courses/component-resources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"componentResource": {
"sourcedId": "<string>",
"status": "active",
"courseComponent": {
"sourcedId": "<string>"
},
"resource": {
"sourcedId": "<string>"
},
"title": "<string>",
"dateLastModified": "2023-11-07T05:31:56Z",
"metadata": {},
"sortOrder": 0,
"lessonType": "powerpath-100"
}
}
'{
"sourcedIdPairs": {
"suppliedSourcedId": "<string>",
"allocatedSourcedId": "<string>"
}
}To create a new Component Resource. The responding system must return the set of sourcedIds that have been allocated to the newly created componentResource record.
curl --request POST \
--url https://api.alpha-1edtech.ai/ims/oneroster/rostering/v1p2/courses/component-resources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"componentResource": {
"sourcedId": "<string>",
"status": "active",
"courseComponent": {
"sourcedId": "<string>"
},
"resource": {
"sourcedId": "<string>"
},
"title": "<string>",
"dateLastModified": "2023-11-07T05:31:56Z",
"metadata": {},
"sortOrder": 0,
"lessonType": "powerpath-100"
}
}
'{
"sourcedIdPairs": {
"suppliedSourcedId": "<string>",
"allocatedSourcedId": "<string>"
}
}The access token received from the authorization server in the OAuth 2.0 flow.
Represents a resource associated with a course component.
Show child attributes
Created Component Resource Successfully
Show child attributes