---
title: objects
slug: objects
description: Learn how to use the HypeXAPI.setDefault() command to effortlessly set default values for an xAPI object. This document includes insightful examples showcasing various object types that can be incorporated in an xAPI statement, including a focus on the wi
docTags: 
createdAt: 2022-05-04T10:49:30.000Z
---

The HypeXAPI.setDefault() command sets the default values for an xAPI object. The first parameter is the lookup key for the object, and the second parameter is an object containing the default values for the object.

Different object types that can be used in the object branch of an xAPI statement include Agent, Group, Activity, and StatementRef. The most common type used is Activity.

```javascript
HypeXAPI.setDefault("objects", {
    "simplestatement": {
        "definition": {
            "name": {
                "en-US": "simple statement"
            },
            "description": {
                "en-US": "A simple Experience API statement."
            }
        },
        "objectType": "Activity"
    },
    "simple-activity": {
        "definition": {
            "name": {
                "en-US": "simple activity"
            },
            "description": {
                "en-US": "A simple Experience API activity."
            }
        },
        "objectType": "Activity"
    },
    "simple-agent": {
        "name": "Example Learner",
        "mbox": "mailto:example@adlnet.gov",
        "objectType": "Agent"
    }
});
```

