Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

SCHEMA

Name

Description

_id

The id of the persona.

organisation

The id of the organisation that this persona belongs to.

name

The display name of this persona.

EXAMPLE

Code Block
{
  "_id" : "59c1219936229d4ce9634601",
  "organisation" : "59c1219936229d4ce9634602",
  "name" : "Example Persona",
}

Merge personas

Merges two personas by updating the persona field on the personaIdentifier model

The two URL parameters are:

Name

Description

mergePersonaFromId

Required, _id of the persona from which you want to merge identifiers

mergePersonaToId

Required, _id of the persona into which you want to merge mergePersonaFromId

Code Block
GET http://www.example.org/api/mergepersona?mergePersonaFromId=647a147baa472635729a9ab1&mergePersonaToId=647a149aaa472635729a9b2f
Authorization: Basic YOUR_BASIC_AUTH

A request like the one above, will respond with a 200 response like the one below with a list of _ids of the personaIdentifiers that have been updated.

Code Block
{
    "identifierIds": [
        "647a147b7d3bcfae15e1b084"
    ]
}