Skip to main content

Create pathway

POSThttps://api.eu1.coralogix.com/mgmt/openapi/5/product-analytics/pathways/v1

Creates a saved pathway and returns the stored pathway, with version 1. Returns 412 (FAILED_PRECONDITION) with "Product Analytics is not enabled for this team. A team admin can enable it in Coralogix." when Product Analytics is off for the team.

Requires the following permissions:

  • product-analytics:Manage

Authorizations

Authorizationstringheaderrequired
API key authentication

Request​

Body

application/json

Pathway field values for a create.

    appName#stringrequired

    RUM application the pathway belongs to. Cannot be changed after creation.

    Possible values: non-empty and <= 1024 characters, Value must match regular expression ^[\s\S]*$

    direction#PathwayDirection

    Whether the paths show the pages after or before view. Omitted or PATHWAY_DIRECTION_UNSPECIFIED uses PATHWAY_DIRECTION_AFTER.

    Possible values: [PATHWAY_DIRECTION_UNSPECIFIED, PATHWAY_DIRECTION_AFTER, PATHWAY_DIRECTION_BEFORE]

    Default value: PATHWAY_DIRECTION_AFTER

    Session filters of the pathway.

    Possible values: <= 100

    name#stringrequired

    Display name of the pathway. Must not be empty. Does not have to be unique.

    Possible values: non-empty and <= 1024 characters, Value must match regular expression ^[\s\S]*$

    pagesCount#int32

    Number of pages after or before view in each path. Omitted uses 5.

    Possible values: >= 1 and <= 2147483647

    Default value: 5

    Time range of the pathway.

    topN#int32

    Number of paths shown, most common first. Omitted uses 20.

    Possible values: >= 1 and <= 2147483647

    Default value: 20
    view#stringrequired

    View (page) the paths are traced from.

    Possible values: non-empty and <= 1024 characters, Value must match regular expression ^[\s\S]*$

Response

application/json

The created pathway.

    appName#stringrequired

    RUM application the pathway belongs to.

    Possible values: non-empty and <= 1024 characters, Value must match regular expression ^[\s\S]*$

    createdAt#date-timerequired

    When the pathway was created. Set by the server.

    Possible values: <= 64 characters

    direction#PathwayDirectionrequired

    Whether the paths show the pages after or before view.

    Possible values: [PATHWAY_DIRECTION_UNSPECIFIED, PATHWAY_DIRECTION_AFTER, PATHWAY_DIRECTION_BEFORE]

    Default value: PATHWAY_DIRECTION_AFTER

    Session filters of the pathway. Empty when not set.

    Possible values: <= 100

    id#stringrequired

    Pathway ID, a decimal number. Set by the server.

    Possible values: non-empty and <= 19 characters, Value must match regular expression ^[1-9][0-9]{0,18}$

    name#stringrequired

    Display name of the pathway. Does not have to be unique.

    Possible values: non-empty and <= 1024 characters, Value must match regular expression ^[\s\S]*$

    owner#string

    User who created the pathway. Set by the server. Absent for pathways saved before owners were recorded.

    Possible values: non-empty and <= 1024 characters, Value must match regular expression ^[\s\S]*$

    pagesCount#int32required

    Number of pages after or before view in each path.

    Possible values: >= 1 and <= 2147483647

    Default value: 5
    timeRange#objectrequired

    Time range of the pathway.

    oneOf
    object
    timeRange.calendar#CalendarWindow

    Named calendar window, resolved in the viewer's timezone. CALENDAR_WINDOW_UNSPECIFIED is rejected.

    Possible values: [CALENDAR_WINDOW_UNSPECIFIED, CALENDAR_WINDOW_TODAY, CALENDAR_WINDOW_YESTERDAY]

    Absolute time range between two timestamps.

    timeRange.relativeMinutes#string

    Number of minutes back from now.

    Possible values: non-empty and <= 20 characters, Value must match regular expression ^[1-9][0-9]{0,18}$

    topN#int32required

    Number of paths shown, most common first.

    Possible values: >= 1 and <= 2147483647

    Default value: 20
    updatedAt#date-timerequired

    When the pathway was last updated, from the API or the Coralogix UI. Set by the server.

    Possible values: <= 64 characters

    version#int32required

    Version of the pathway. Set by the server: 1 on create, increased by 1 on every update, including updates made in the Coralogix UI.

    Possible values: >= 1 and <= 2147483647

    view#stringrequired

    View (page) the paths are traced from.

    Possible values: non-empty and <= 1024 characters, Value must match regular expression ^[\s\S]*$