Update Offline Test API
This API is used to update offline test in modules of course or batch in LMS
Request URL: (Self Paced Course)
https://people.zoho.com/api/v1/courses/<courseId>/modules<moduleId>/offlineTests/<offlineTestId>?offlineTestData = {"name" : <name>, "marks" : <marks>, "duration" : <duration>, "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>/offlineTests/<offlineTestId>?offlineTestData = {"name" : <name>, "marks" : <marks>, "duration" : <duration>, "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 |
offlineTestData | <parameters in JSON Object> | JSON Input |
Parameters | Values Allowed | Default Value | Description |
name | <File name> | <Mandatory> | Specify the file name |
marks | <Marks in Integer format> | <Mandatory> | Specify the offline test marks |
duration | <Duration in minutes> | <Mandatory> | Specify the duration |
isMandatory | true|false | true | Specify if the file is mandatory |
lockUntil | <lockUntil date in DD-MM-YYYY format> | - | Specify the lockUntil date |
gradeCategoryId | <Grade category id> | - | Specify the Grade category id |
resources | <files> | - | Specify resources |
Request
Copiedhttps://people.zoho.com/api/v1/courses/219225000000642002/modules/219225000000648001/offlineTests/219225000000648059?offlineTestData={"name" : "Offline test API Testing_Update", "marks" : 45, "duration" : 35, "description" : "Nothing to describe", "isMandatory" : true,"lockUntil" : "27-12-2021", "gradeCategoryId" : ""}
Header
CopiedAuthorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxx9be93.9b8xxxxxxf
Response
Copied{
"code": 200,
"message": "success",
"offlineTest": {
"totalLearnersCount": 0,
"description": "Description for Offline Test",
"resources": [],
"canUserDelete": true,
"duration": "35 Mins",
"isMandatoryTest": true,
"lockUntil": "26-12-2021",
"gradeCategoryName": "",
"completedLearnersCount": 0,
"isLocked": true,
"gradeCategoryId": "",
"testId": "219225000000648059",
"canUserEdit": true,
"moduleId": "219225000000648001",
"testMark": "45",
"testName": "Offline test one_Update"
}
}