Upsert identity
upsert_identityUpserts a learner by externalId — call this every time you know who the learner is, as often as you like.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"externalId": "<externalId>"
},
"name": "upsert_identity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The learner's display name; null clears it. Omit to keep the name already stored. | |
| No | The learner's email address; null clears it. Omit to keep the stored one. When set, they are emailed the first time they complete a course. | ||
| externalId | Yes | Your own id for the learner, e.g. your user id. The learner is matched on this, so the same value always updates the same identity. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| Yes | |||
| isNew | Yes | true if this call created the identity, false if it updated one already stored. | |
| createdAt | Yes | ||
| externalId | Yes | ||
| workspaceId | Yes |