Create Line Item
The Assignment & Grades endpoint tools call to create a grade line. You never call this — LTIAAS relays it to your Service URL as a LINEITEMS_POST service request.
Path Parameters
The URL-encoded context identifier — the same context value you supplied when starting the launch.
Request Body required
- 201
- 400
- 401
- 403
Line item created
Schema
Your stable identifier for this grade line.
Present when the grade line belongs to a specific activity.
Present when the grade line carries a tool-defined tag.
{
"id": "412",
"label": "My first grade line",
"scoreMaximum": 99,
"resourceLinkId": "412",
"tag": "new_tag"
}
One or more request parameters were missing or malformed.
Schema
- Array [
- ]
details object
errors object[]
One entry per field that failed validation.
{
"status": 400,
"error": "Bad Request",
"details": {
"errors": [
{
"field": "clientId",
"message": "Missing 'clientId' parameter."
}
]
}
}
The Authorization header was missing, malformed, or carried the wrong key.
Schema
details object
Context for the failure. Always carries a message code; the other keys depend on what went wrong.
Context for the failure. Always carries a message code; the other keys depend on what went wrong.
{
"status": 403,
"error": "Forbidden",
"details": {
"message": "INACTIVE_SERVICE",
"description": "string"
}
}
{
"status": 401,
"error": "Unauthorized",
"details": {
"message": "INVALID_BEARER_AUTHORIZATION_HEADER",
"description": "Invalid API Key for account."
}
}
The LTI® service this endpoint depends on is not enabled on your account.
Schema
details object
Context for the failure. Always carries a message code; the other keys depend on what went wrong.
Context for the failure. Always carries a message code; the other keys depend on what went wrong.
{
"status": 403,
"error": "Forbidden",
"details": {
"message": "INACTIVE_SERVICE",
"description": "string"
}
}
{
"status": 403,
"error": "Forbidden",
"details": {
"message": "INACTIVE_SERVICE",
"service": "Deep Linking"
}
}
