curl --request POST \
--url https://api.alpha-1edtech.ai/ims/oneroster/gradebook/v1p2/lineItems/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"lineItem": {
"title": "<string>",
"assignDate": "2023-11-07T05:31:56Z",
"dueDate": "2023-11-07T05:31:56Z",
"class": {
"sourcedId": "<string>"
},
"school": {
"sourcedId": "<string>"
},
"category": {
"sourcedId": "<string>"
},
"sourcedId": "<string>",
"status": "active",
"dateLastModified": "2023-11-07T05:31:56Z",
"metadata": {},
"description": "<string>",
"gradingPeriod": {
"sourcedId": "<string>"
},
"academicSession": {
"sourcedId": "<string>"
},
"scoreScale": {
"sourcedId": "<string>"
},
"resultValueMin": 123,
"resultValueMax": 123,
"learningObjectiveSet": [
{
"source": "<string>",
"learningObjectiveIds": [
"<string>"
]
}
]
}
}
'{
"sourcedIdPairs": {
"suppliedSourcedId": "<string>",
"allocatedSourcedId": "<string>"
}
}To create a new Line Item. The responding system must return the set of sourcedIds that have been allocated to the newly created Line Item records.
curl --request POST \
--url https://api.alpha-1edtech.ai/ims/oneroster/gradebook/v1p2/lineItems/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"lineItem": {
"title": "<string>",
"assignDate": "2023-11-07T05:31:56Z",
"dueDate": "2023-11-07T05:31:56Z",
"class": {
"sourcedId": "<string>"
},
"school": {
"sourcedId": "<string>"
},
"category": {
"sourcedId": "<string>"
},
"sourcedId": "<string>",
"status": "active",
"dateLastModified": "2023-11-07T05:31:56Z",
"metadata": {},
"description": "<string>",
"gradingPeriod": {
"sourcedId": "<string>"
},
"academicSession": {
"sourcedId": "<string>"
},
"scoreScale": {
"sourcedId": "<string>"
},
"resultValueMin": 123,
"resultValueMax": 123,
"learningObjectiveSet": [
{
"source": "<string>",
"learningObjectiveIds": [
"<string>"
]
}
]
}
}
'{
"sourcedIdPairs": {
"suppliedSourcedId": "<string>",
"allocatedSourcedId": "<string>"
}
}The access token received from the authorization server in the OAuth 2.0 flow.
Represents a line item.
Show child attributes
Line item successfully created
Show child attributes