Clear API Reference
  • Developer Reference
  • Getting Started
    • Authentication
    • Content Launch
    • Single Sign-On
  • Guides
    • Account Provisioning and Launch
  • Experience API Reference
    • Statements
    • State
    • Activity Profile
    • Agent Profile
  • Clear API Reference
    • Introduction
    • Data Model
      • Actor
      • Criteria
    • Authentication
    • Actors
    • Reports
    • Leaderboards
    • Search
    • Notifications
    • Import
Powered by GitBook
On this page
  • List Activity Profiles
  • Retrieve Activity Profile
  • Update Activity Profile
  • Merge Activity Profile
  • Remove Activity Profile
  1. Experience API Reference

Activity Profile

List Activity Profiles

GET https://{organisation}.clearlrs.com/xapi/activities/profile

Returns a list of profileIds stored for the specified parameters.

Query Parameters

Name
Type
Description

activityId

string

1

Retrieve Activity Profile

GET https://{organisation}.clearlrs.com/xapi/activities/profile

Retrieves the Activity Profile document

Query Parameters

Name
Type
Description

activityId

string

1

profileId

string

2

Update Activity Profile

PUT https://{organisation}.clearlrs.com/xapi/activities/profile

Replaces the Activity Profile document for the given activityId and profileId.

Query Parameters

Name
Type
Description

activityId

string

1

profileId

string

2

{
    "code": 400,
    "name": "Bad Request",
    "body": [
        {
            "name": "ValidationError",
            "description": "'query' must contain property  'activityId'",
            "property": "query",
            "value": {
                "document": ""
            }
        },
        {
            "name": "ValidationError",
            "description": "'query' must contain property  'profileId'",
            "property": "query",
            "value": {
                "document": ""
            }
        }
    ]
}

Merge Activity Profile

POST https://{organisation}.clearlrs.com/xapi/activities/profile

Query Parameters

Name
Type
Description

activityId

string

1

profileId

string

2

Remove Activity Profile

DELETE https://{organisation}.clearlrs.com/xapi/activities/profile

Query Parameters

Name
Type
Description

activityId

string

1

profileId

string

2

PreviousStateNextAgent Profile

Last updated 6 years ago