Skip to main content

Update funnel

PATCHhttps://api.eu1.coralogix.com/mgmt/openapi/5/product-analytics/funnels/v1/{id}

Updates the fields listed in update_mask. Other fields are unchanged. A listed field that is omitted from the body is cleared or reset to its default. The last write wins, and version increases by 1. Returns the stored funnel. 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​

Path Parameters

    id# stringrequired

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

    Funnel ID, a decimal number.

Query Parameters

    update_mask# stringrequired

    Possible values: non-empty and <= 512 characters, Value must match regular expression ^[A-Za-z_][A-Za-z0-9_]*(,[A-Za-z_][A-Za-z0-9_]*)*$

    Comma-separated JSON paths of the fields to update: name, definition, filters, timeRange, breakdown. snake_case names are also accepted. definition is replaced as a whole. A listed field that is omitted from the body is cleared: breakdown is removed and filters becomes empty; name, definition, and timeRange cannot be cleared: listing one without a value returns 400. Nested paths such as definition.steps, unknown, immutable, and server-generated paths, and *, return 400. A listed field is replaced as a whole, a oneOf arm included.

Body

application/json

Funnel field values for an update. Only fields listed in update_mask are applied.

    Breakdown of the funnel by a session dimension. Clearing it removes the breakdown.

    Mode, conversion window, and steps of the funnel. Replaces the whole definition: an omitted conversionWindow removes the window. Cannot be cleared.

    Session filters applied to every step. Replaces the whole list.

    Possible values: <= 100

    name#string

    Display name of the funnel. Must not be empty. Cannot be cleared.

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

    Time range of the funnel. Cannot be cleared.

Response

application/json

The updated funnel.

    appName#stringrequired

    RUM application the funnel belongs to.

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

    Breakdown of the funnel by a session dimension. Absent when not set.

    createdAt#date-timerequired

    When the funnel was created. Set by the server.

    Possible values: <= 64 characters

    Mode, conversion window, and steps of the funnel.

    Session filters applied to every step. Empty when not set.

    Possible values: <= 100

    id#stringrequired

    Funnel 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 funnel. 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 funnel. Set by the server. Absent for funnels saved before owners were recorded.

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

    timeRange#objectrequired

    Time range of the funnel.

    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}$

    updatedAt#date-timerequired

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

    Possible values: <= 64 characters

    version#int32required

    Version of the funnel. 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