Create Assignment API

This API is used to create 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.CREATE

Possible Operation Types:

ALL - Complete access to data
CREATE - Only to create data

Method:

POST

Request Parameters

ParametersValues AllowedDefault ValueDescription
*assignmentData <parameters in JSON Object> JSON Input

 

ParametersValues AllowedDefault ValueDescription
*name<Batch name><Mandatory>Specify the batch name
*maximumMarks<Marks in integer format><Mandatory>

Specify the assignment marks

*submissionTypefileAttachment|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<submisssionTo date in DD-MM-YYYY format><Mandatory for blended learning courses>Specify the submissionTo
lateSubmissionallow|doNotAllow-Specify if late submissions is allowed or not
description<description>-Specify the description
isMandatorytrue|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?assignmentData={"name" : "Assignment API testing", "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"
    },
    "message": "success"
}