curl --request POST \
--url https://api.alpha-1edtech.ai/ims/oneroster/resources/v1p2/resources/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"resource": {
"title": "<string>",
"vendorResourceId": "<string>",
"sourcedId": "<string>",
"status": "active",
"dateLastModified": "2023-11-07T05:31:56Z",
"metadata": {
"fail_fast": {
"consecutive_failures": 3,
"stagnation_limit": 5
}
},
"roles": [
"primary"
],
"importance": "primary",
"vendorId": "<string>",
"applicationId": "<string>"
}
}
'{
"sourcedIdPairs": {
"suppliedSourcedId": "<string>",
"allocatedSourcedId": "<string>"
}
}To create a new resource. The responding system must return the set of sourcedIds that have been allocated to the newly created resource record.
curl --request POST \
--url https://api.alpha-1edtech.ai/ims/oneroster/resources/v1p2/resources/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"resource": {
"title": "<string>",
"vendorResourceId": "<string>",
"sourcedId": "<string>",
"status": "active",
"dateLastModified": "2023-11-07T05:31:56Z",
"metadata": {
"fail_fast": {
"consecutive_failures": 3,
"stagnation_limit": 5
}
},
"roles": [
"primary"
],
"importance": "primary",
"vendorId": "<string>",
"applicationId": "<string>"
}
}
'{
"sourcedIdPairs": {
"suppliedSourcedId": "<string>",
"allocatedSourcedId": "<string>"
}
}