Skip to navigation

Subscribe User With Code

View as Markdown

The POST /api/user/subscribeUserWithCodeendpoint is used to subscribe a user to a course with a code.

Request

  • Method: POST

  • Base URL: {{baseUrl}}

  • Path: /api/user/userStats

  • Headers:

    • Content-Type: application/x-www-form-urlencoded
  • Body:

    • idst (text): The user ID

    • reg_code (text): The subscription code.

Response

  • success (boolean): Indicates the success of the request.

  • message (string): Provides additional information.

Request

This endpoint expects an object.
idststringRequired

Unique identifier (ID) of the user.

reg_codestringRequired
registration code

Response

Successful response