View User Taken Activity Questions & Answers

An overview of the View User Taken Activity Questions & Answers endpoint.

Endpoint Description

The View User Taken Activity Questions & Answers endpoint provides access to a user’s responses across all their activities.

HTTP Method

GET /api/v1/view-user-taken-activity-questions-answers/{userId}/{page}/{limit}/{maxDays?}

Headers

  • Content-Type: application/json

  • Accept: application/json

  • Authorization: Bearer {token}

URL Parameters

  • userId (integer): The unique identifier of the user. This parameter is required to specify the user whose question and answer data is being queried.

  • page (integer): The current page number in the pagination sequence. This parameter helps in retrieving a specific set of results.

  • limit (integer): The number of records to retrieve per page. This parameter helps in controlling the volume of data returned.

  • maxDays (integer, optional): The maximum number of days to look back from the current date to get records updated within this time frame.

Data Dictionary for Response Fields

The response for the "View User Taken Activity Questions & Answers" endpoint includes detailed information about each question and the corresponding user response for all their activities. Below is a breakdown of each field in the response data:

  • user_activity_id (integer): Unique identifier for the user activity.

  • user_id (integer): Unique identifier for the user.

  • questions (array): Collection of questions and answers for a particular user activity.

    • question_id (integer): Unique identifier for a question within the activity. Distinct to activity, not across the system.

    • question_type (string): The format a question is presented to the user. This influences the structure of the response data.

    • question (string): The question asked to the user.

    • answer (string): The user response to the question, can be a string or an array containing strings.

Request Examples

Response Examples

Notes

  • Authorization Required: Ensure the provided Bearer token is valid and has sufficient privileges to access the user activity question and answer data.

  • Response Handling: Paginate responses to manage data effectively, especially when dealing with large datasets.*

Last updated