> For the complete documentation index, see [llms.txt](https://dev.pointr.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.pointr.tech/v9/features/map-personas.md).

# Map Personas

Pointr Map Personas enables different variations of maps to be presented to different audiences. For example, there might be different versions of your map for general visitors, VIPs, and deliveries.&#x20;

The map for each Persona can vary in terms of content that is "assigned" to it.  Personas can vary in the following ways:

* Style definition
* Map objects assigned
* Geofences assigned
* Wayfinding Network

Personas are available to all Sites once they are configured within your Client in Pointr Cloud Dashboard.

## How to Set Up Map Personas in Pointr Cloud

#### In this tutorial, you will learn how to:

* Create a Map Persona & Manage map styles per persona
* Assign map content to specific personas
* Assign geofences to specific personas
* Set up persona-specific wayfinding networks

{% stepper %}
{% step %}

### Persona Setup

**Goal:** Create and configure personas

Includes:

* Create a new persona
* Set persona name and colour
* Assign Map Style JSON per persona
* Publish Map Personas

{% tabs %}
{% tab title="Dashboard" %}
{% embed url="<https://app.storylane.io/share/vtla8scsccuh>" %}
{% endtab %}

{% tab title="REST API" %}
**Create a Persona**\
Endpoint:  **`POST`**&#x20;

`api/v9/content/draft/clients/{clientIdentifier}/personas`

<details>

<summary>Example - Request Body &#x26; Success Response</summary>

**Request Body:**

```json
{
  "name": "Persona 1",
  "styleUrl": "https://cdn.pointr.tech/550e8400-e29b-41d4-a716-446655440000/styles/dark-theme.json",
  "color": "#1A1A2E",
  "personaIdentifier": "xK9mP"
}
```

**Success Response:**

```json
{
  "message": "Persona created successfully.",
  "personaIdentifier": "xK9mP"
}
```

</details>

**Update a Persona**\
Endpoint:  **`PUT`**&#x20;

`api/v9/content/draft/clients/{clientIdentifier}/personas/{personaIdentifier}`

<details>

<summary>Example - Request Body &#x26; Success Response</summary>

**Request Body:**

```json
{
  "name": "Persona 1 Edited",
  "styleUrl": "https://cdn.pointr.tech/550e8400-e29b-41d4-a716-446655440000/styles/dark-theme.json",
  "color": "#1A1A2E",
}
```

**Success Response:**

```json
{
   "message": "Persona updated successfully."
}
```

</details>

**Get Personas**\
Endpoint:  **`GET`**&#x20;

`api/v9/content/draft/clients/{clientIdentifier}/personas`

<details>

<summary>Example - Success Response</summary>

**Success Response:**

```json
[
  {
    "personaIdentifier": "fzlx7",
    "name": "Persona 1",
    "styleUrl": "https://cdn.pointr.tech/550e8400-e29b-41d4-a716-446655440000/styles/dark-theme.json",
    "isDefault": true,
    "color": "#ff6347"
  },
  {
    "personaIdentifier": "fzla7",
    "name": "Persona 2",
    "styleUrl": "https://cdn.pointr.tech/550e8400-e29b-41d4-a716-446655440000/styles/light-theme.json",
    "isDefault": false,
    "color": "#ff6347"
  }
]
```

</details>

**Get Published Personas**\
Endpoint:  **`GET`**&#x20;

`api/v9/content/published/clients/{clientIdentifier}/personas`

<details>

<summary>Example - Success Response</summary>

**Success Response:**

```json
[
  {
    "personaIdentifier": "fzlx7",
    "name": "Persona 1",
    "styleUrl": "https://cdn.pointr.tech/550e8400-e29b-41d4-a716-446655440000/styles/dark-theme.json",
    "isDefault": true,
    "color": "#ff6347"
  },
  {
    "personaIdentifier": "fzla7",
    "name": "Persona 2",
    "styleUrl": "https://cdn.pointr.tech/550e8400-e29b-41d4-a716-446655440000/styles/light-theme.json",
    "isDefault": false,
    "color": "#ff6347"
  }
]
```

</details>

**Publish Personas**\
Endpoint:  **`POST`**&#x20;

`api/v9/content/publisher/clients/{clientIdentifier}/publish-personas`

Endpoint: **`POST`**&#x20;

<details>

<summary>Example - Success Response</summary>

**Success Response:**

```json
{
  "message": "Personas publish has been started."
}
```

</details>

**Get Personas Publish Status**\
Endpoint:  **`GET`**&#x20;

`api/v9/content/publisher/clients/{clientIdentifier}/publish-personas-status`

Endpoint: **`POST`**&#x20;

<details>

<summary>Example - Success Response</summary>

**Success Response:**

```json
{
  "status": "inProgress",
  "message": "Persona publish is in progress.",
  "lastPublishedDate": "2024-12-09T19:51:48Z"
}
```

</details>
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}

### Map Content Management

**Goal:** Control what each persona can see

Includes:

* Assign POIs to personas
* Bulk assign POI categories
* Create map content and assign it to a persona

{% tabs %}
{% tab title="Dashboard" %}
{% embed url="<https://app.storylane.io/share/fliw7ilnw0ub>" %}
{% endtab %}

{% tab title="REST API" %}
&#x20;**Assing POIs to personas**\
\
Endpoint:  **`POST`**&#x20;

`api/v9/content/draft/clients/{clientIdentifier}/sites/{siteIdentifier}/pois`

<details>

<summary>Example - Request Body &#x26; Success Response</summary>

**Request Body:**

```json
{
  {
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "typeCode": "exhibition-hall",
        "fid": "239ee74e-deb1-4525-afcf-4d59d93999fe",
        "lvl": 1,
        "bid": "239ee74e-deb1-4525-afcf-3d59d93999fe",
        "sid": "239ee74e-deb1-4525-afcf-2d59d93999fe",
        "ipids": ["XiszA", "kgb5m"],
        "eid": "eid",
        "name": "Exhibition Hall",
        "name_ar": "مثال على الاسم",
        "name_en": "Poi Name EN",
        "name_ar_AE": "مثال على الاسم",
        "name_tr": "Poi Name TR",
        "extra": {
          "exampleKey": "exampleValue"
        }
      },
      "geometry": {
        "coordinates": [
          [
            [-87.65376826, 41.88388598],
            [-87.65376875, 41.8838876],
            [-87.65376913, 41.88390733],
            [-87.65374207, 41.88390762],
            [-87.65374171, 41.88388879],
            [-87.65374169, 41.88388789],
            [-87.65375626, 41.88388774],
            [-87.65376826, 41.88388598]
          ]
        ],
        "type": "Polygon"
      }
    }
  ]
}
```

**Success Response:**

```json
{
  "message": "POIs for site '{siteIdentifier}' were successfully processed."
}
```

</details>
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}

### Geofence Configuration

**Goal:** Control behaviour and triggers per persona

Includes:

* Assign geofences per persona

{% tabs %}
{% tab title="Dashboard" %}
{% embed url="<https://app.storylane.io/share/hdinaw3csaxv>" %}
{% endtab %}

{% tab title="REST API" %}
**Assing geofences per personas**\
\
Endpoint:  **`POST`**&#x20;

`api/v9/content/draft/clients/{clientIdentifier}/sites/{siteIdentifier}/gps-geofences`

<details>

<summary>Example - Request Body &#x26; Success Response</summary>

**Request Body:**

```json
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "sid": "6baa9455-e3e7-0682-1643-046359897187",
        "fid": "6baa9455-e3e7-0682-1643-046359897187",
        "name": "M+MUSEUM_ENTER",
        "name_ar": "مثال على الاسم",
        "name_en": "Gps Geofence Name EN",
        "name_ar_AE": "مثال على الاسم",
        "name_tr": "Gps Geofence Name TR",
        "typeCode": "gps-geofence",
        "ipids": ["XiszA", "kgb5m"],
        "enterNotification": {
          "once": false,
          "message": "entered blah",
          "message_el": "greek enter",
          "message_tr_TR": "turkish enter",
          "coolDownMinutes": 30
        },
        "exitNotification": {
          "once": true,
          "message": "exited blah",
          "message_el": "greek exit",
          "message_tr_TR": "turkish exit",
          "coolDownMinutes": 30
        },
        "extra": {}
      },
      "geometry": {
        "coordinates": [
          [
            [
              0.03850703,
              0.06771042
            ],
            [
              0.03874183,
              0.06771099
            ],
            [
              0.0387452,
              0.06771097
            ],
            [
              0.03874524,
              0.06776459
            ],
            [
              0.03874296,
              0.06803444
            ],
            [
              0.03874296,
              0.06803849
            ],
            [
              0.03861891,
              0.06803849
            ],
            [
              0.03852766,
              0.06803799
            ],
            [
              0.03850798,
              0.06801445
            ],
            [
              0.03850703,
              0.06771042
            ]
          ]
        ],
        "type": "Polygon"
      }
    }
  ]
}
```

**Success Response:**

```json
{
  "message": "Gps-geofences for site '{siteIdentifier}' were successfully processed."
}
```

</details>
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}

### Wayfinding Networks Configuration

**Goal:** Control routes and access per persona

Includes:

* Create persona-specific transitions
* Create persona-specific paths
* Validate routes by switching personas

{% tabs %}
{% tab title="Dashboard" %}
{% embed url="<https://app.storylane.io/share/qxezl2bm5nyb>" %}
{% endtab %}

{% tab title="REST API" %}
**Assing paths to personas**\
\
Endpoint:  **`POST`**&#x20;

`api/v9/content/draft/clients/{clientIdentifier}/sites/{siteIdentifier}/paths`

<details>

<summary>Example - Request Body &#x26; Success Response</summary>

**Request Body:**

```json
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "neighbors": [
          {
            "fid": "94abf645-9baa-4783-86c9-95c25dee06a2",
            "speed": 1
          }
        ],
        "transitionNeighbors": [
          {
            "fid": "64ba261d-5294-4928-bfed-683ac020da05"
          }
        ],
        "transitionGroupId": "ac3833d5-fa50-4cfc-8f44-8093bcd6e9a1",
        "typeCode": "custom-transition",
        "travelTime": 10,
        "isAccessible": true,
        "isComfortable": true,
        "name": "corridor",
        "name_ar": "مثال على الاسم",
        "name_en": "Path Name EN",
        "name_ar_AE": "مثال على الاسم",
        "name_tr": "Path Name TR",
        "ipids": ["XiszA", "kgb5m"],
        "eid": "eid",
        "sid": "94abf645-9baa-4783-86c9-95c25dee06a2",
        "bid": "94abf645-9baa-4783-86c9-95c25dee06a2",
        "lvl": 1,
        "fid": "267f8d1f-6e2f-4d46-9ea8-c63886a860da"
      },
      "geometry": {
        "type": "Point",
        "coordinates": [
          -104.8390169,
          39.74310121
        ]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "neighbors": [
          {
            "fid": "0c73d430-fa26-4732-8673-8ee9684d8854",
            "speed": 1
          }
        ],
        "transitionNeighbors": [
          {
            "fid": "e5d5523c-683f-44ba-93d5-f130de0fb1e0"
          }
        ],
        "transitionGroupId": "46a57074-f276-483b-af5f-a9621e3b8143",
        "typeCode": "custom-transition",
        "travelTime": 10,
        "isAccessible": true,
        "isComfortable": true,
        "name": "corridor",
        "ipids": ["XiszA", "kgb5m"],
        "eid": "eid",
        "sid": "94abf645-9baa-4783-86c9-95c25dee06a2",
        "bid": "94abf645-9baa-4783-86c9-95c25dee06a2",
        "lvl": 1,
        "fid": "93dcde0f-2c5c-499a-97c2-389769fca16b"
      },
      "geometry": {
        "type": "Point",
        "coordinates": [
          -104.83979418,
          39.74242685
        ]
      }
    }
  ]
}
```

**Success Response:**

```json
{
  "message": "Paths for site '{siteIdentifier}' were successfully processed."
}
```

</details>
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}

### Publish Your Content

Pointr Cloud requires manual publishing of changes before they are live and accessible via the APIs or SDKs. Until you publish, your changes exist only in the <kbd>*Draft*</kbd> state.

{% tabs %}
{% tab title="Dashboard" %}
{% embed url="<https://app.storylane.io/share/ct3tanucyulg>" %}
{% endtab %}

{% tab title="REST API" %}
**Publish Site Content**\
Endpoint:  **`POST`**&#x20;

`api/v9/content/publisher/clients/{clientIdentifier}/sites/{siteIdentifier}/publish-contents`

Endpoint: **`POST`**&#x20;

<details>

<summary>Example - Success Response</summary>

**Success Response:**

```json
{
  "message": "Site content publish has been started."
}
```

</details>

**Get Personas Publish Status**\
Endpoint:  **`GET`**&#x20;

`api/v9/content/publisher/clients/{clientIdentifier}/sites/{siteIdentifier}/publish-contents-status`

Endpoint: **`POST`**&#x20;

<details>

<summary>Example - Success Response</summary>

**Success Response:**

```json
{
  "status": "completed",
  "message": "Site content publish is completed.",
  "lastPublishedDate": "2024-12-09T19:51:48Z"
}
```

</details>
{% endtab %}
{% endtabs %}

Once published, your map and data are available to all channels, production API endpoints, and SDKs.
{% endstep %}
{% endstepper %}

## Presenting Maps using Map Personas

When Pointr Maps are presented to users, only one Persona can be presented at a time.  The Persona Identifier (found on the  Map Personas page in Settings on Pointr Cloud Dashboard) is available as a parameter when launching Pointr Maps.&#x20;

{% tabs %}
{% tab title="Pointr Express" %}
Persona Identifiers can be used as part of Pointr Express® links using the `pid` parameter, either as encoded in the Token, or as an optional parameter.  See [Broken mention](broken://pages/Lj606v96y37SQhNCym7x) for more details on how to use Pointr Express Parameters.
{% endtab %}

{% tab title="Web SDK" %}
As shown in [Broken mention](broken://pages/RYgPFfExjrqenatDBstZ), the Web SDK can be started with many different Options.  The `personaIdentifier` option allows you to set the Persona to be used when loading the map.
{% endtab %}

{% tab title="iOS" %}
In the iOS SDK, `personaIdentifier` is available as a parameter when starting the SDK.  It can be found in the `PTRParams` section of the [Broken mention](broken://pages/jLKF8FFvhINPW3zZrZdO).
{% endtab %}

{% tab title="Android" %}
In the Android SDK, `personaId` is available as a parameter when starting the SDK.  It can be found in the `com.pointrlabs.core.management.models/PTRParams` section of the [Broken mention](broken://pages/5Y2VWOmwReRVXjLJV5OM).
{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://dev.pointr.tech/v9/features/map-personas.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
