Update Assignment API
This API is used to update assignments in module of course or batch in LMS
Request URL: (Self Paced Learning Course)
https://people.zoho.com/api/v1/courses/<courseId>/modules/<moduleId>/assignments?assignmentData={"name" : <name>, "maximumMarks" : <maximumMarks>, "submissionType" : <submissionType>, "lateSubmission" : <lateSubmission>, "submissionFrom" : <submissionFrom>, "submissionTo" : <submissionTo>, "description" : <description>, "isMandatory" : <isMandatory>, "lockUntil" : <lockUntil>, "gradeCategoryId":<GradeCategoryId>}
Request URL: (Blended Learning Course)
https://people.zoho.com/api/v1/courses/<courseId>/batches/<batchId>/modules/<moduleId>/assignments?assignmentData={"name" : <name>, "maximumMarks" : <maximumMarks>, "submissionType" : <submissionType>, "lateSubmission" : <lateSubmission>, "submissionFrom" : <submissionFrom>, "submissionTo" : <submissionTo>, "description" : <description>, "isMandatory" : <isMandatory>, "lockUntil" : <lockUntil>, "gradeCategoryId":<GradeCategoryId>}
Header:
Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf
Scope:
ZOHOPEOPLE.training.ALL
OR
ZOHOPEOPLE.training.UPDATE
Possible Operation Types:
ALL - Complete access to data
UPDATE - Only to update data
Method:
PATCH
Request Parameters
Parameters | Values Allowed | Default Value | Description |
*assignmentData | <parameters in JSON Object> | JSON Input |
Parameters | Values Allowed | Default Value | Description |
*name | <Batch name> | <Mandatory> | Specify the batch name |
*maximumMarks | <Marks in integer format> | <Mandatory> | Specify the assignment marks |
*submissionType | fileAttachment|text|noSubmission | <Mandatory> | Specify the submission type |
*submissionFrom | <submissionFrom date in DD-MM-YYYY format> | <Mandatory for blended learning courses> | Specify the submission from date |
*submissionTo | <submissionTo date in DD-MM-YYYY format> | <Mandatory for blended learning courses> | Specify the submissionTo |
lateSubmission | allow|doNotAllow | - | Specify if late submissions is allowed or not |
description | <description> | - | Specify the description |
isMandatory | true|false | - | Specify if the file is mandatory |
lcokUntil | <lockUntil date in DD-MM-YYYY format> | - | Specify the lockUntil date |
gradeCategoryId | <gradeCategoryId> | - | Specify the Grade category Id |
resources | <files> | - | Specify resources |
*mandatory parameters
Request
Copiedhttps://people.zoho.com/api/v1/courses/219225000000642002/modules/219225000000648001/assignments/219225000000648093?assignmentData={"name" : "Assignment API testing_update", "maximumMarks" : 65, "submissionType" : "text", "lateSubmission" : "doNotAllow", "submissionFrom" : "01-01-2022", "submissionTo" : "11-01-2021", "description" : "API testing", "isMandatory" : true, "lockUntil" : "27-12-2021", "gradeCategoryId":""}
Header
CopiedAuthorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf
Response
Copied{
"code": 200,
"assignment": {
"assignMark": "65",
"totalLearnersCount": 0,
"description": "Description for Assignment",
"resources": [],
"assignmentId": "219225000000648093",
"canUserDelete": true,
"lockUntil": "26-12-2021",
"gradeCategoryName": "",
"isLocked": true,
"gradeCategoryId": "",
"canUserEdit": true,
"moduleId": "219225000000648001",
"marksUpdatedLearnersCount": "0/0",
"assignmentName": "Assignment One_update"
},
"message": "success"
}