APIs
Last updated
Was this helpful?
Last updated
Was this helpful?
Refer to **** the below various API documentation related to all the different APIs that are being consumed with in all the batch jobs.
POST
This API gives the collection summary, like the total number of enrolments, completion count, count of certificates issued.
request*
Object
filters*
Object
Search filters
collectionId*
String
Id of the collection
batchId*
String
Id of the batch
group_by
String Array
"state", "dist"
intervals
String
2019-09-23T00:00:00.000Z/2019-09-24T00:00:00.000Z"
StartDate - Batch Start Date and Default EndDate - Current Date
This API will internally call ‘/dataset/v1/request/submit’ API in SB-Obsrv ‘On Demand Data Exhaust API’, to submit the on demand exhaust job request. The job status will be in the submitted state.Â
/api/course/v1/jobrequest/submit
User token
{{auth_token}}
API key
{{kong_api_key}}
application/json
Organisation id of the requestor
{{organisation_id}}
UserId of the requester - ORG_ADMIN, COURSE_MENTOR
{{requested_user_id}}
{"request":{"tag":"do_2137002173427875841205_01370023185341644821","requestedBy":"fca2925f-1eee-4654-9177-fece3fd6afc9","dataset":"response-exhaust","output_format":"csv","encryptionKey":"encryption-keyencryption-keyencryption-keyencryption-keyencryption-key","datasetConfig":{"batchId":"01370023185341644821"}}}
No body
This API will internally call ‘/dataset/v1/request/list API in Obsrv ‘On Demand Data Exhaust API’, to list all the requests that are specific to a tag
/api/course/v1/jobrequest/list/{tag}
User token
{{auth_token}}
API Key
{{kong_api_key}}
application/json
Organisation id of the requestor
{{organisation_id}}
UserId of the requester - ORG_ADMIN, COURSE_MENTOR
{{requested_user_id}}
No body
This API allows you to attach certificate templates.
/course/batch/cert/v1/template/add
The Content Type entity is the media type of the resource.Possible media types can be Application/json
The timestamp at which the Add certificate template request was sent.
A unique ID that identifies the request, in case the same API is executed multiple times.
The access token of the registered user sending the given API request. This is an alphanumeric string.
To make use of the API, you require authorization. Raise a request to the administrator for the use of the API. You will receive the authorization key. Specify the key received here.
Represents an API uniquely
Represents the version of the API which was used
Represents the EPOCH (UTC) timestamp in milliseconds since EPOCH
This API is associated with detaching certificate templates.
/course/batch/cert/v1/template/remove
The Content Type entity is the media type of the resource.Possible media types can be Application/json
The timestamp at which the remove certificate template request was sent.
A unique ID that identifies the request in case the same API is executed multiple times.
The access token of the registered user sending the given API request. This is an alphanumeric string.
To make use of the API, you require authorization. Raise a request to the administrator for the use of the API. You will receive the authorization key. Specify the key received here.
Represents an API uniquely
Represents the version of the API which was used
Represents the EPOCH (UTC) timestamp in milliseconds since EPOCH
This API is associated with creating a new page. To create a page first create the page section using section create api.make page name unique.
/create
/data/v1/page/create
The Content Type entity is the media type of the resource. Possible media types can be:-
This Id Uniquely identifies a request if the same API is executed multiple times.
Time Stamp at which creating page request was sent.
All User APIs require authorization for use. Specify the authorization key received from the administrator when placing the request for use of the API.
The token/key used to execute the API
unique API ID
2013/10/15 16:16:39
{"name":"Resources","portalMap":[{"id":1228383082462412800,"index":1,"group":1},{"id":1228383384379392000,"index":1,"group":2}],"appMap":[{"id":1228383082462412800,"index":1,"group":1},{"id":1228383384379392000,"index":1,"group":2}]}
This API is associated with updating the page information
/update
/data/v1/page/update
The Content Type entity is the media type of the resource. Possible media types can be:-
This Id Uniquely identifies a request if the same API is executed multiple times.
Time Stamp at which update page information request was sent.
All User APIs require authorization for use. Specify the authorization key received from the administrator when placing the request for use of the API.
The token/key used to execute the API
unique API ID
2013/10/15 16:16:39
{"name":"Resourcessss","id":1228394137835929600,"portalMap":[{"id":1228383082462412800,"index":1,"group":1},{"id":1228383384379392000,"index":1,"group":2}],"appMap":[{"id":1228383082462412800,"index":1,"group":1},{"id":1228383384379392000,"index":1,"group":2}]}
This API is associated with fetching specific resources.
/read/{pageName}
/data/v1/page/read/{pageName}
Please append a valid Section Id to the request URL
The Content Type entity is the media type of the resource. Possible media types can be:-
This Id Uniquely identifies a request if the same API is executed multiple times.
Time Stamp at which get specific page resources request was sent.
All User APIs require authorization for use. Specify the authorization key received from the administrator when placing the request for use of the API.
The token/key used to execute the API
This API is associated with creating a new section on a page.
/section/create
/data/v1/page/section/create
The Content Type entity is the media type of the resource. Possible media types can be:-
This Id Uniquely identifies a request if the same API is executed multiple times.
Time Stamp at which create section request was sent.
All User APIs require authorization for use. Specify the authorization key received from the administrator when placing the request for use of the API.
The token/key used to execute the API
unique API ID
2013/10/15 16:16:39
{"name":"Recommended TextBook","sectionDataType":"course","display":{"name":{"en":"popular story","hi":"????????"}},"searchQuery":{"request":{"query":"","limit":10,"sort_by":{"lastUpdatedOn":"desc"},"filters":{"language":["English"],"contentType":["TextBook"]}}}}
This API is associated with updating content of a section on a page.
/section/update
/data/v1/page/section/update
The Content Type entity is the media type of the resource. Possible media types can be:-
This Id Uniquely identifies a request if the same API is executed multiple times.
Time Stamp at which updating page section request was sent.
All User APIs require authorization for use. Specify the authorization key received from the administrator when placing the request for use of the API.
The token/key used to execute the API
unique API ID
2013/10/15 16:16:39
{"id":122662435116892160,"name":"Popular Course","sectionDataType":"course","display":{"name":{"en":"popular Course","hi":"????????"}},"searchQuery":{"request":{"query":"","offset":0,"limit":5,"filters":{"objectType":["Content"],"mimeType":["application/vnd.ekstep.html-archive"],"status":["Draft","Live"]}}}}
This API is associated with fetching specific section details.
/section/read/{sectionId}
/data/v1/page/section/read/{SectionId}
Please append a valid Section Id to the request URL
The Content Type entity is the media type of the resource. Possible media types can be:-
This Id Uniquely identifies a request if the same API is executed multiple times.
Time Stamp at which Fetch Section Details request was sent.
All User APIs require authorization for use. Specify the authorization key received from the administrator when placing the request for use of the API.
The token/key used to execute the API
This API is associated with fetching the settings of a page.
/section/list
/data/v1/page/section/list
The Content Type entity is the media type of the resource. Possible media types can be:-
This Id Uniquely identifies a request if the same API is executed multiple times.
Time Stamp at which fetch settings request was sent.
All User APIs require authorization for use. Specify the authorization key received from the administrator when placing the request for use of the API.
The token/key used to execute the API
The API associated with user enrolment into a courseBatch. The endpoint for Course Enrol is /enrol
The fields marked with an asterisk (*) are mandatory. They cannot be null or empty.
/course/v1/enrol
To make use of the API, you require authorization. Raise a request to the administrator for the use of the API. You will receive the authorization key. Specify the key received, here.
{{api-key}}
The alphanumeric string for accessing the API
{{authToken}}
{"courseId":"{{course-id}}","batchId":"{{batch-id}}","userId":"{{user-id}}"}
The Course Unenrol API is associated with unenrol of a user from a CourseBatch. The endpoint for Course Unenrol is /unenrol
The fields marked with an asterisk (*) are mandatory. They cannot be null or empty.
/course/v1/unenrol
To make use of the API, you require authorization. Raise a request to the administrator for the use of the API. You will receive the authorization key. Specify the key received, here.
{{api-key}}
The alphanumeric string for accessing the API
{{authToken}}
{"courseId":"{{course-id}}","batchId":"{{batch-id}}","userId":"{{user-id}}"}
The UserEnrolmentList api provides the detail of a user's all enrolled CourseBatches The endpoint for UserEnrolment List is /user/enrollment/list/{{user-id}}
The fields marked with an asterisk (*) are mandatory. They cannot be null or empty.
/course/v1/user/enrollment/list/{user-id}
Id of user for whom enrolment details we want
Org details related with course
orgName,email
License details related with course
name,description,url
Different course related details can be passed
contentType,topic,name,channel
Batch details can be passed to filter
name,endDate,startDate,status,enrollmentType,createdBy,certificates
The batch data got updated in cache after sometime to get updated details immediately we can pass cache false
cache=false
The Content Type entity is the media type of the resource.Possible media types can be:- Application/json
application/json
To make use of the API, you require authorization. Raise a request to the administrator for the use of the API. You will receive the authorization key. Specify the key received, here.
{{api-key}}
The alphanumeric string for accessing the API
{{authToken}}