Hello,
When I am trying to create a single resource using External tool then it working properly using LTI.
Process:Course->add a resource->select content->external tool
Then using LTI 1.1 it creates single content properly.
But when I am sending multiple content requests using LTI then content not created.
Can you please help me with this?
How to create multiple resources at a time using LTI 1.1 in moodle, Is there any different setting?
Please find below my LTI 1.1 JSON content item sample for 2 content item request and single item request:
{
- "@context": "http://purl.imsglobal.org/ctx/lti/v1/ContentItem",
- "@graph": [
- {
- "@type": "LtiLinkItem",
- "@id": "test123 - Lesson 02 Quiz",
- "text": "test123 - Lesson 02 Quiz",
- "mediaType": "application/vnd.ims.lti.v1.ltilink",
- "title": "test123 - Lesson 02 Quiz",
- "lineItem": {
- "@type": "LineItem",
- "label": "test123 - Lesson 02 Quiz",
- "reportingMethod": "res:totalScore",
- "scoreConstraints": {
- "@type": "NumericLimits",
- "totalMaximum": 100
- "custom": {
- "lti_app_resource_id": 3988
- {
- "@type": "LtiLinkItem",
- "@id": "test123 - Lesson 03 Quiz",
- "text": "test123 - Lesson 03 Quiz",
- "mediaType": "application/vnd.ims.lti.v1.ltilink",
- "title": "test123 - Lesson 03 Quiz",
- "lineItem": {
- "@type": "LineItem",
- "label": "test123 - Lesson 03 Quiz",
- "reportingMethod": "res:totalScore",
- "scoreConstraints": {
- "@type": "NumericLimits",
- "totalMaximum": 100
- "custom": {
- "lti_app_resource_id": 3989
- {
========================================
Single request, its working properly
{
- "@context": "http://purl.imsglobal.org/ctx/lti/v1/ContentItem",
- "@graph": [
- {
- "@type": "LtiLinkItem",
- "@id": "quiz123 - ECS01 Quiz",
- "text": "quiz123 - ECS01 Quiz",
- "mediaType": "application/vnd.ims.lti.v1.ltilink",
- "title": "quiz123 - ECS01 Quiz",
- "lineItem": {
- "@type": "LineItem",
- "label": "quiz123 - ECS01 Quiz",
- "reportingMethod": "res:totalScore",
- "scoreConstraints": {
- "@type": "NumericLimits",
- "totalMaximum": 100
- "custom": {
- "lti_app_resource_id": 3997
- {