Company Activity List

An overview of the Company Activity List endpoint.

Endpoint Description

This endpoint retrieves a list of activities available to a company's users, sorted by topic, within the R1 Discover platform.

HTTP Method

GET /api/v1/company-activity-list

Headers

  • Content-Type: application/json - Specifies that the request body format is JSON.

  • Accept: application/json - Indicates that the client expects a JSON response.

  • Authorization: Bearer {token} - A valid Bearer token must be provided to authenticate the request.

URL Parameters

  • N/A - This endpoint does not require any URL parameters to be passed.

Data Dictionary for Response Fields

The response from the "Company Activity List" endpoint includes a list of activities, each associated with a specific company and topic. Here’s the breakdown of each field in the response data:

  • activity_list (Array): A collection of activities available to each company.

    • company_id (Integer): Identifier for the company.

    • topic_id (Integer): The Unique ID for the topic of the activity.

    • activities (Array): Collection of data describing the activity.

      • id (Integer): Unique ID of the activity in R1 Discover.

      • name (String): The name of the activity.

      • topic_id (Integer): The ID of the topic the activity is linked to.

      • type (String): Indicates the type of activity; currently two types are recognized— "sorting_cards" and "overview_definition_cards".

      • activity_url (String): The URL to remote login a user to take an activity via an IFrame.

Request Examples

Response Examples

Notes

  • Authorization Required: Ensure the provided Bearer token is valid and has sufficient privileges to access the endpoint.

  • Response Handling: As this endpoint can potentially return a large volume of data, it is advisable to manage data effectively, possibly through appropriate client-side processing.

Last updated