Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Add Certificate Template API


    Code Block
    languagejs
    POST /course/batch/cert/v1/template
    
    Request :      
    
    {
             "params": {
            
        "params": {},
         
           "request": {
                     "courseId": "do_12347787978775440",
          
              "batchId" :  "2364563546476343",          // optional field
         
               "certificateName": "100PercentCompletionCertificate",
    
                     "filters": {
                         "status": "2",
    
                        "assessmentScore": {
         
                      "<": "0.8"
      
                      }
                            },
                     "metadata"template": {
                       "issuer": {
     
                        "name": "Gujarat Council of Educational Research and Training",
        
                     "url": "https://gcert.gujarat.gov.in/gcert/",
       
                      "publicKey": [
                                  "7",
          
                           "8"
              
                       ]
     
                            },
         
                "signatoryList": [
    
                            {
                             "name": "CEO Gujarat",
                             "id": "CEO",
    
                            "designation": "CEO",
                             "image": "https://cdn.pixabay.com/photo/2014/11/09/08/06/signature-523237__340.jpg"
            
                    }
    
                        ],
                    "keys": {
                        "id": "9"
      
                   },
                   "htmlTemplate": "https://drive.google.com/uc?authuser=1&id=1ryB71i0Oqn2c3aqf9N6Lwvet-MZKytoM&export=download",
                   "notifyTemplate": {
                       "subject": "Course completion certificate for Course 03092019 Course",
                       "stateImgUrl": "https://sunbirddev.blob.core.windows.net/orgemailtemplate/img/File-0128212938260643843.png",
                       "regardsperson": "Chairperson",
                       "regards": "Minister of Gujarat",
     
                     "emailTemplateType": "defaultCertTemp"
                    }
    
            }
     
        }   
    }     



  • Delete  Certificate Template API

    Code Block
    DELETE  /course/batch/cert/v1/template
    
    Request : 
                       {
                         "params": { },
                         "request":{
                                 "courseId": "do_12347787978775440",
                                 "batchId" :  "2364563546476343",          // optional field
                                 "certificateName": "Merit-Certificate"
                               }
                       }


                 

  • Get Certificate List API

    Code Block
    POST  /course/batch/cert/v1/template/list
      
    Request : 
                       {
                         "params": { },
                         "request":{
                                 "courseId": "do_12347787978775440",
                                 "batchId" :  "2364563546476343",          // optional field 
                               }
                       }
    
    
    


...