Al-Farabi Kazakh National University entitlements API

The entitlements API from Al-Farabi Kazakh National University — 3 operation(s) for entitlements.

Operations 8

GET /entitlements/v1/entitlements/ #
POST /entitlements/v1/entitlements/ #
GET /entitlements/v1/entitlements/{uuid}/ #
PUT /entitlements/v1/entitlements/{uuid}/ #
PATCH /entitlements/v1/entitlements/{uuid}/ #
DELETE /entitlements/v1/entitlements/{uuid}/ #
POST /entitlements/v1/entitlements/{uuid}/enrollments #
DELETE /entitlements/v1/entitlements/{uuid}/enrollments On DELETE call to this API we will unenroll the course enrollment for the provided uuid #

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/al-farabi-kazakh-national-university-entitlements-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

al-farabi-kazakh-national-university-entitlements-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Open edX Entitlements API
  description: APIs for access to Open edX information
  contact:
    email: dl@kaznu.kz
  version: v1
servers:
- url: https://open.kaznu.kz/api
security:
- Basic: []
tags:
- name: entitlements
paths:
  /entitlements/v1/entitlements/:
    get:
      operationId: entitlements_v1_entitlements_list
      description: 'Override the list method to expire records that are past the

        policy and requested via the API before returning those records.'
      tags:
      - entitlements
      parameters:
      - name: page
        in: query
        required: false
        description: A page number within the paginated result set.
        schema:
          type: integer
      - name: page_size
        in: query
        required: false
        description: Number of results to return per page.
        schema:
          type: integer
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                required:
                - count
                - results
                type: object
                properties:
                  count:
                    type: integer
                  next:
                    type:
                    - string
                    - 'null'
                    format: uri
                  previous:
                    type:
                    - string
                    - 'null'
                    format: uri
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/CourseEntitlement'
    post:
      operationId: entitlements_v1_entitlements_create
      description: ViewSet for the Entitlements API.
      tags:
      - entitlements
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CourseEntitlement'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CourseEntitlement'
  /entitlements/v1/entitlements/{uuid}/:
    get:
      operationId: entitlements_v1_entitlements_read
      description: 'Override the retrieve method to expire a record that is past the

        policy and is requested via the API before returning that record.'
      tags:
      - entitlements
      parameters:
      - name: uuid
        in: path
        required: true
        schema:
          type: string
          pattern: '[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CourseEntitlement'
    put:
      operationId: entitlements_v1_entitlements_update
      description: ViewSet for the Entitlements API.
      tags:
      - entitlements
      parameters:
      - name: uuid
        in: path
        required: true
        schema:
          type: string
          pattern: '[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CourseEntitlement'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CourseEntitlement'
    patch:
      operationId: entitlements_v1_entitlements_partial_update
      description: ViewSet for the Entitlements API.
      tags:
      - entitlements
      parameters:
      - name: uuid
        in: path
        required: true
        schema:
          type: string
          pattern: '[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CourseEntitlement'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CourseEntitlement'
    delete:
      operationId: entitlements_v1_entitlements_delete
      description: ViewSet for the Entitlements API.
      tags:
      - entitlements
      parameters:
      - name: uuid
        in: path
        required: true
        schema:
          type: string
          pattern: '[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}'
      responses:
        '204':
          description: ''
  /entitlements/v1/entitlements/{uuid}/enrollments:
    post:
      operationId: entitlements_v1_entitlements_enrollments_create
      description: 'On POST this method will be called and will handle enrolling a user in the

        provided course_run_id from the data. This is called on a specific entitlement

        UUID so the course_run_id has to correspond to the Course that is assigned to

        the Entitlement.


        When this API is called for a user who is already enrolled in a run that User

        will be unenrolled from their current run and enrolled in the new run if it is

        available.'
      tags:
      - entitlements
      parameters:
      - name: uuid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '201':
          description: ''
    delete:
      operationId: entitlements_v1_entitlements_enrollments_delete
      summary: On DELETE call to this API we will unenroll the course enrollment for the provided uuid
      description: 'If is_refund parameter is provided then unenroll the user, set Entitlement expiration, and issue

        a refund'
      tags:
      - entitlements
      parameters:
      - name: uuid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: ''
components:
  schemas:
    CourseEntitlement:
      required:
      - user
      - course_uuid
      - mode
      type: object
      properties:
        user:
          title: User
          type: string
          pattern: ^[\w.@+-]+$
        uuid:
          title: Uuid
          type: string
          format: uuid
          readOnly: true
        course_uuid:
          title: Course uuid
          description: UUID for the Course, not the Course Run
          type: string
          format: uuid
        enrollment_course_run:
          title: Enrollment course run
          type: string
          readOnly: true
          minLength: 1
        expired_at:
          title: Expired at
          description: The date that an entitlement expired, if NULL the entitlement has not expired.
          type:
          - string
          - 'null'
          format: date-time
        created:
          title: Создано
          type: string
          format: date-time
          readOnly: true
        modified:
          title: Изменено
          type: string
          format: date-time
          readOnly: true
        mode:
          title: Mode
          description: The mode of the Course that will be applied on enroll.
          type: string
          maxLength: 100
          minLength: 1
        refund_locked:
          title: Refund locked
          type: boolean
        order_number:
          title: Order number
          type:
          - string
          - 'null'
          maxLength: 128
          minLength: 1
        support_details:
          title: Support details
          type: string
          readOnly: true
  securitySchemes:
    Basic:
      type: http
      scheme: basic