@simonecoelhosfo/optimizely-mcp-server
Version:
Optimizely MCP Server for AI assistants with integrated CLI tools
1,283 lines • 422 kB
JSON
{
"basePath": "/v2",
"consumes": [
"application/json"
],
"definitions": {
"Account": {
"properties": {
"id": {
"description": "The unique identifier of the Account",
"format": "int64",
"readOnly": true,
"type": "integer"
},
"name": {
"description": "The name of the Account",
"readOnly": true,
"type": "string"
}
},
"type": "object",
"x-model": "Account"
},
"AccountFeature": {
"properties": {
"feature_id": {
"type": "string"
},
"sources": {
"items": {
"$ref": "#/definitions/AccountFeatureSource"
},
"type": "array"
}
},
"type": "object",
"x-model": "AccountFeature"
},
"AccountFeatureSource": {
"properties": {
"type": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object",
"x-model": "AccountFeatureSource"
},
"Action": {
"properties": {
"changes": {
"description": "The list of changes to apply to the Page. If 'dependencies' is supplied in a Change within 'changes', each ID in 'dependencies' must also be in 'changes'.",
"items": {
"$ref": "#/definitions/Change"
},
"type": "array"
},
"page_id": {
"description": "The ID of the Page to apply changes to",
"format": "int64",
"type": "integer"
},
"share_link": {
"description": "The share link for the provided Variation and Page combination",
"externalDocs": {
"description": "share link",
"url": "https://help.optimizely.com/QA_Campaigns_and_Experiments/QA%3A_Share_draft_variations_or_experiences"
},
"format": "url",
"readOnly": true,
"type": "string"
}
},
"required": [
"page_id"
],
"type": "object",
"x-model": "Action"
},
"Attribute": {
"properties": {
"archived": {
"default": false,
"description": "Whether or not the Attribute has been archived",
"type": "boolean"
},
"condition_type": {
"default": "custom_attribute",
"description": "Whether this Attribute is a custom dimension or custom attribute. If this is a custom dimension, it belongs to an Optimizely Classic experiment and is read-only.",
"enum": [
"custom_attribute",
"custom_dimension"
],
"readOnly": true,
"type": "string"
},
"description": {
"description": "A short description of the Attribute",
"type": "string"
},
"id": {
"description": "The unique identifier for the Attribute",
"format": "int64",
"readOnly": true,
"type": "integer"
},
"key": {
"description": "Unique string identifier for this Attribute within the project",
"example": "subscriber_status",
"maxLength": 64,
"pattern": "^[a-zA-Z0-9_\\- .]+$",
"type": "string"
},
"last_modified": {
"description": "The last time the Attribute was modified",
"format": "date-time",
"readOnly": true,
"type": "string"
},
"name": {
"description": "The name of the Attribute. For Full Stack projects, the name will be set to the value of the key.",
"example": "Subscriber Status",
"type": "string"
},
"project_id": {
"description": "The ID of the project the Attribute belongs to",
"example": 17738411154,
"format": "int64",
"type": "integer"
}
},
"required": [
"key",
"project_id"
],
"type": "object",
"x-model": "Attribute"
},
"AttributeUpdate": {
"properties": {
"archived": {
"default": false,
"description": "Whether or not the Attribute has been archived",
"type": "boolean"
},
"description": {
"description": "A short description of the Attribute",
"type": "string"
},
"key": {
"description": "Unique string identifier for this Attribute within the project",
"example": "subscriber_status",
"maxLength": 64,
"pattern": "^[a-zA-Z0-9_\\- .]+$",
"type": "string"
},
"name": {
"description": "The name of the Attribute",
"example": "Subscriber Status",
"type": "string"
}
},
"type": "object",
"x-model": "AttributeUpdate"
},
"Audience": {
"properties": {
"archived": {
"default": false,
"description": "Whether the Audience has been archived",
"type": "boolean"
},
"conditions": {
"description": "A string defining the targeting rules for an Audience",
"example": "[\"and\", {\"type\": \"language\", \"value\": \"es\"}, {\"type\": \"location\", \"value\": \"US-CA-SANFRANCISCO\"}]",
"externalDocs": {
"description": "targeting rules for an Audience",
"url": "https://developers.optimizely.com/x/rest/guides/conditions/"
},
"type": "string"
},
"created": {
"description": "The time the Audience was initially created",
"format": "date-time",
"readOnly": true,
"type": "string"
},
"description": {
"description": "A short description of the Audience",
"example": "People that speak spanish and are in San Francisco",
"type": "string"
},
"experiment_count": {
"description": "Number of experiments by audience_id",
"example": 123,
"format": "int64",
"type": "integer"
},
"id": {
"description": "The unique identifier for the Audience",
"example": 5000,
"format": "int64",
"readOnly": true,
"type": "integer"
},
"is_classic": {
"description": "Whether or not Audience is a classic Audience. If true, the Audience is only compatible with classic Experiments. Otherwise, the Audience may be used in Optimizely X Campaigns.",
"type": "boolean"
},
"last_modified": {
"description": "The last time the Audience was modified",
"format": "date-time",
"readOnly": true,
"type": "string"
},
"name": {
"description": "The name of the Audience",
"example": "Spanish speaking San Franciscans",
"type": "string"
},
"project_id": {
"description": "The ID of the Project the Audience was created in",
"example": 1000,
"format": "int64",
"type": "integer"
},
"segmentation": {
"default": false,
"description": "True if the Audience is available for segmentation on the results page (Audiences can only be used for segmentation in Optimizely Classic). Set to False if you intend to use this Audience only in Optimizely X. Note that a maximum of 10 Audiences can have segmentation set to True in any given Optimizely Classic project.",
"externalDocs": {
"description": "segmentation",
"url": "https://help.optimizely.com/Analyze_Results/The_Results_page#segmenting"
},
"type": "boolean"
}
},
"required": [
"project_id"
],
"type": "object",
"x-model": "Audience"
},
"AudienceUpdate": {
"properties": {
"archived": {
"description": "True if the Audience has been archived",
"type": "boolean"
},
"conditions": {
"description": "A string defining the targeting rules for an Audience",
"type": "string"
},
"description": {
"description": "A short description of the Audience",
"type": "string"
},
"name": {
"description": "The name of the Audience",
"example": "Spanish speaking San Franciscans",
"type": "string"
},
"segmentation": {
"description": "True if the Audience is available for segmentation on the results page (Enterprise plans only)",
"type": "boolean"
}
},
"type": "object",
"x-model": "AudienceUpdate"
},
"BucketingInformation": {
"properties": {
"account_id": {
"description": "ID of the Account",
"example": 1000,
"format": "int64",
"type": "integer"
},
"bucketing_history": {
"description": "Array of bucketing information items",
"items": {
"$ref": "#/definitions/BucketingInformationItem"
},
"type": "array"
},
"visitor_id": {
"description": "The unique identifier of the visitor",
"example": "fa74a14b-1f3a-463d-aa98-2f7124ee6fc3",
"format": "uuid",
"readOnly": true,
"type": "string"
}
},
"type": "object",
"x-model": "BucketingInformation"
},
"BucketingInformationItem": {
"properties": {
"campaign_id": {
"description": "The unique identifier of the Campaign",
"example": 2056053765,
"format": "int64",
"type": "integer"
},
"experiment_id": {
"description": "The unique identifier of the Experiment",
"example": 9387397797,
"format": "int64",
"type": "integer"
},
"is_holdback": {
"description": "Is the visitor bucketed into a variation or a holdback",
"type": "boolean"
},
"timestamp": {
"description": "The timestamp of the bucketing decision on the client side",
"example": 1545871675000,
"format": "int64",
"type": "integer"
},
"variation_id": {
"description": "The unique identifier of the Variation",
"example": 5042153527,
"format": "int64",
"type": "integer"
}
},
"type": "object",
"x-model": "BucketingInformationItem"
},
"CSSAttribute": {
"properties": {
"background-color": {
"type": "string"
},
"background-image": {
"type": "string"
},
"border-color": {
"type": "string"
},
"border-style": {
"type": "string"
},
"border-width": {
"type": "string"
},
"color": {
"type": "string"
},
"font-family": {
"type": "string"
},
"font-size": {
"type": "string"
},
"font-weight": {
"type": "string"
},
"height": {
"type": "string"
},
"position": {
"type": "string"
},
"width": {
"type": "string"
}
},
"type": "object",
"x-model": "CSSAttribute"
},
"Campaign": {
"properties": {
"changes": {
"description": "A list of changes to apply to the Campaign. This corresponds to the Campaign's Shared Code in the application. Only supports 'custom_css' or 'custom_code' type changes.",
"items": {
"$ref": "#/definitions/SharedCodeChange"
},
"type": "array"
},
"created": {
"description": "The time the Campaign was initially created",
"format": "date-time",
"readOnly": true,
"type": "string"
},
"description": {
"description": "The description or goal for a Campaign",
"example": "Tailor the landing page hero element for specific audiences",
"type": "string"
},
"earliest": {
"description": "The first time the Campaign was activated",
"format": "date-time",
"readOnly": true,
"type": "string"
},
"experiment_priorities": {
"description": "A list of lists of Experiment IDs that indicate the relative priority of how to show those Experiments in the context of the Campaign. Each list inside of the list represents a group of Experiments of equal priority where groups that appear earlier in the list are of higher priority to be shown.",
"items": {
"items": {
"format": "int64",
"type": "integer"
},
"type": "array"
},
"type": "array"
},
"holdback": {
"description": "Percentage of visitors to exclude from personalization, measured in basis points. 100 basis points = 1% traffic. For example, a value of 500 would mean that 95% of visitors will see a personalized experience and 5% will see the holdback.",
"example": 500,
"maximum": 10000,
"minimum": 0,
"type": "integer"
},
"id": {
"description": "The unique identifier for the Campaign",
"example": 2000,
"format": "int64",
"readOnly": true,
"type": "integer"
},
"last_modified": {
"description": "The last time the Campaign was modified",
"format": "date-time",
"readOnly": true,
"type": "string"
},
"latest": {
"description": "The last time the Campaign was paused (not present if the Campaign still running)",
"format": "date-time",
"readOnly": true,
"type": "string"
},
"metrics": {
"description": "An ordered list of metrics to track for the Campaign",
"items": {
"$ref": "#/definitions/Metric"
},
"type": "array"
},
"name": {
"description": "The name of the Campaign",
"example": "Landing Page Optimization",
"type": "string"
},
"page_ids": {
"description": "A list of Page IDs used in the Campaign",
"items": {
"format": "int64",
"type": "integer"
},
"type": "array"
},
"project_id": {
"description": "The Project ID the Campaign is in",
"example": 1000,
"format": "int64",
"type": "integer"
},
"status": {
"description": "Current state of the Campaign. not_started means the Campaign has never been published to the world. running means the Campaign is currently live to the world. paused means the Campaign has been published, but is currently not running. archived means the Campaign is paused and not visible in the web UI.",
"enum": [
"not_started",
"running",
"paused",
"archived"
],
"readOnly": true,
"type": "string"
},
"type": {
"default": "personalization",
"description": "Indicates the type of this campaign. Campaigns created or fetched via the API should currently all have a type of `personalization`, but if you get a campaign_id for an experiment and look it up, you may get an `other` value.",
"enum": [
"personalization",
"other"
],
"type": "string"
},
"url_targeting": {
"$ref": "#/definitions/URLTargeting",
"description": "Rules for which URLs this campaign should target. This is an alternative to `page_ids`, for cases when you don't need to reuse an existing page or target multiple pages."
}
},
"required": [
"project_id"
],
"type": "object",
"x-model": "Campaign"
},
"CampaignMetricResults": {
"description": "Results specific to an Event",
"properties": {
"aggregator": {
"description": "The aggregation function for the numerator of the metric. 'unique' measures the number of unique visitors/sessions that include the specified Event. 'count' measures the total number of occurrences of Event for the scope (visitor/session). 'sum' is the sum of the 'field' value",
"enum": [
"unique",
"count",
"sum",
"bounce",
"exit",
"ratio"
],
"type": "string"
},
"event_id": {
"description": "The ID for the Event to select data from. Omitted for global metrics that are not relative to a specific Event, i.e. \"overall revenue\"",
"format": "int64",
"type": "integer",
"x-nullable": true
},
"event_properties": {
"$ref": "#/definitions/MetricEventProperties",
"description": "The conditions used to filter the metric on specific event property values."
},
"field": {
"description": "The field to aggregate for the numerator of the metric. Required when 'aggregator' = 'sum', otherwise omitted",
"enum": [
"revenue",
"value"
],
"type": "string"
},
"metrics": {
"description": "A list of all metrics that will be used in the calculation of a ratio metric.",
"items": {
"$ref": "#/definitions/CompoundSubMetric"
},
"type": "array"
},
"name": {
"description": "The name of the Metric",
"type": "string"
},
"results": {
"additionalProperties": {
"$ref": "#/definitions/VariantResults"
},
"description": "A map of results for the variants affected by the Campaign. Variants may represent aggregated results scoped to the Campaign and/or individual Experiment results scoped to just that Experiment. The special variant 'baseline' represents visitors that have been held back from any change in experience across all Experiments in the Campaign. The special variant 'campaign' represents the aggregated effect of all Experiments included in the Campaign.",
"type": "object",
"x-map-key": {
"description": "The name of the group or ID of the Experiment",
"example": "campaign",
"type": "string"
}
},
"scope": {
"description": "Specifies how Events should be grouped together. Can also be thought of as the denonimator of the metric. 'session' divides by the number of sessions. \"Influenced sessions\", or sessions that do not contain a decision Event but carry a decision from a previous session are not included in counts for numerator or denominator. 'visitor' divides by the number of visitors. 'event' divides by the total occurrences (impressions) of the specified Event",
"enum": [
"session",
"visitor",
"event"
],
"type": "string"
},
"time_window": {
"description": "The maximum amount of time a numerator event can differ from a denominator event in order to be included in a ratio metric. This can be an integer, or an integer followed by a letter denoting the unit of time (d = days, h = hours, m = minutes). If no unit of time is supplied, hours is assumed. If no value is supplied, a time window of 48 hours is assumed.",
"type": "string"
},
"winning_direction": {
"description": "The winning direction of this metric",
"enum": [
"increasing",
"decreasing"
],
"type": "string"
}
},
"type": "object",
"x-model": "CampaignMetricResults"
},
"CampaignResults": {
"properties": {
"campaign_id": {
"description": "The unique identifier for the Campaign",
"format": "int64",
"type": "integer"
},
"confidence_threshold": {
"description": "The significance level at which you would like to declare winning and losing variations. A lower number minimizes the time needed to declare a winning or losing variation, but increases the risk that your results aren't true winners and losers.",
"format": "double",
"type": "number"
},
"end_time": {
"description": "End of the time interval (exclusive) used to calculate the results. The time is formatted in ISO 8601.",
"format": "date-time",
"type": "string"
},
"is_stale": {
"description": "When true, indicates the results were delivered from a cache that is out of date.",
"type": "boolean"
},
"metrics": {
"description": "The breakdown of Campaign results by metric. CampaignMetricResults object ordering in the array is consistent with the order that metrics are attached to the Experiment in the Optimizely UI and REST API (i.e. index 0 is the primary metric, indices 1-4 are secondary metrics, indices 5+ are monitoring metrics). See here for an explantion of the impact of metric ordering on results calculations.",
"externalDocs": {
"description": "See here",
"url": "https://help.optimizely.com/Ideate_and_Hypothesize/Primary_and_secondary_metrics_and_monitoring_metrics"
},
"items": {
"$ref": "#/definitions/CampaignMetricResults"
},
"type": "array"
},
"start_time": {
"description": "Start of the time interval (inclusive) used to calculate the results. The time is formatted in ISO 8601.",
"format": "date-time",
"type": "string"
}
},
"type": "object",
"x-model": "CampaignResults"
},
"CampaignUpdate": {
"properties": {
"changes": {
"description": "A list of changes to apply to the Campaign",
"items": {
"$ref": "#/definitions/SharedCodeChange"
},
"type": "array"
},
"description": {
"description": "The description or goal for a Campaign",
"example": "Tailor the landing page hero element for specific audiences",
"type": "string"
},
"experiment_priorities": {
"description": "A list of lists of Experiment IDs that indicate the relative priority of how to show those Experiments in the context of the Campaign. Each list inside of the list represents a group of Experiments of equal priority where groups that appear earlier in the list are of higher priority to be shown.",
"items": {
"items": {
"format": "int64",
"type": "integer"
},
"type": "array"
},
"type": "array"
},
"holdback": {
"description": "Percentage of visitors to exclude from personalization, measured in basis points. 100 basis points = 1% traffic. For example, a value of 500 would mean that 95% of visitors will see a personalized experience and 5% will see the holdback.",
"example": 500,
"maximum": 10000,
"minimum": 0,
"type": "integer"
},
"metrics": {
"description": "An ordered list of metrics to track for the Campaign",
"items": {
"$ref": "#/definitions/Metric"
},
"type": "array"
},
"name": {
"description": "The name of the Campaign",
"example": "Landing Page Optimization",
"type": "string"
},
"page_ids": {
"description": "A list of Page IDs used in the Campaign. Only `url_targeting` or `page_ids` can be used when updating a Campaign, but not both.",
"items": {
"format": "int64",
"type": "integer"
},
"type": "array"
},
"url_targeting": {
"$ref": "#/definitions/URLTargeting",
"description": "Rules for which URLs this campaign should target. This is an alternative to `page_ids`, for cases when you don't need to reuse an existing page or target multiple pages."
}
},
"type": "object",
"x-model": "CampaignUpdate"
},
"Change": {
"properties": {
"allow_additional_redirect": {
"description": "Whether or not to allow additional redirects after redirecting to destination. Required for changes of type 'redirect'",
"type": "boolean"
},
"async": {
"description": "Indicates whether or not to execute the change asyncronously. If true, src will be returned in the response. Otherwise, it will be not included.",
"type": "boolean"
},
"attributes": {
"$ref": "#/definitions/ChangeAttribute",
"description": "New value(s) for the element(s) matched by 'selector'. This field is only applicable to changes of type 'attribute'."
},
"config": {
"description": "Configuration properties for the extension",
"example": "{\"name\": \"Flash Sale Today!\", \"color\": \"blue\"}",
"type": "object"
},
"css": {
"$ref": "#/definitions/CSSAttribute",
"description": "CSS to apply to element(s) matched by 'selector'"
},
"dependencies": {
"description": "A list of dependent change IDs that must happen before this change",
"example": [
"ad1f6acb-78f2-4653-b955-913abd777e16",
"ad20a6dd-2083-4964-8ed2-f0dc7baef687"
],
"items": {
"format": "uuid",
"type": "string"
},
"type": "array"
},
"destination": {
"description": "URL to redirect to. Required for changes of type 'redirect'. `destination` and `destination_function` cannot be used at the same time",
"example": "https://app.optimizely.com/",
"type": "string"
},
"destination_function": {
"description": "A function string to redirect to. Required for changes of type 'redirect'. `destination` and `destination_function` cannot be used at the same time",
"example": "https://app.optimizely.com/",
"type": "string"
},
"extension_id": {
"description": "ID of the extension to insert. Required for changes of type 'extension'",
"readOnly": true,
"type": "string"
},
"id": {
"description": "The ID of the change",
"format": "uuid",
"readOnly": true,
"type": "string"
},
"name": {
"description": "Name of the change",
"example": "Setting button text",
"type": "string"
},
"operator": {
"description": "Where to instert HTML or image for types 'insert_html' and 'insert_image' with respect to the element(s) matched by 'selector'",
"example": "after",
"type": "string"
},
"preserve_parameters": {
"description": "Whether or not to preserve parameters from original request when redirecting to new destination URL. Required for changes of type 'redirect'. For redirects using `destination_function`, `preserve_parameters` must be false.",
"type": "boolean"
},
"rearrange": {
"description": "A directive to place the DOM element(s) matched by 'selector' to the position of the element matched by 'insertSelector', with the relation specified by 'operator'. The supplied example moves element matched by 'selector' above the element of class .greyBox",
"example": "{\"insertSelector\": \".greyBox\", \"operator\": \"before\"}",
"type": "object"
},
"selector": {
"description": "CSS selector to determine where changes are applied. Required for changes of type 'attribute', 'insert_html', and 'insert_image'",
"example": "a[href*=\"optimizely\"]",
"type": "string"
},
"src": {
"description": "The path to the change payload on the CDN. Only present if 'async' is True.",
"readOnly": true,
"type": "string"
},
"type": {
"description": "The type of this change.\n- Changes of type 'attribute' have required fields 'selector' and 'attributes'\n- Changes of type 'custom_code' have required field 'value'\n- Changes of type 'custom_css' have required field 'value'\n- Changes of type 'extension' have required field 'extension_id'\n- Changes of type 'insert_html' have required field 'selector'\n- Changes of type 'insert_image' have required field 'selector'\n- Changes of type 'redirect' have required fields 'destination', 'preserve_parameters', and 'allow_additional_redirect'\n",
"enum": [
"attribute",
"custom_code",
"custom_css",
"extension",
"insert_html",
"insert_image",
"redirect"
],
"type": "string"
},
"value": {
"description": "The value for the change can be custom Javascript or CSS as a string. Required for changes of type 'custom_css' and 'custom_code'",
"example": "window.someGlobalFunction();",
"type": "string"
}
},
"required": [
"type"
],
"type": "object",
"x-model": "Change"
},
"ChangeAttribute": {
"properties": {
"class": {
"description": "Name of the class to set the element(s) matched by a selector to",
"example": "intro",
"type": "string"
},
"hide": {
"description": "Whether or not to hide the element(s) matched by a selector",
"type": "boolean"
},
"href": {
"description": "Value of href attribute to add to element(s) matched by a selector",
"example": "example.com",
"type": "string"
},
"html": {
"description": "Value of HTML attribute to add to element(s) matched by a selector",
"example": "New Title",
"type": "string"
},
"remove": {
"description": "Whether or not to remove the element(s) matched by a selector",
"type": "boolean"
},
"src": {
"description": "Value of src attribute to add to element(s) matched by a selector",
"example": "song.mp3",
"type": "string"
},
"style": {
"description": "Value of style attribute to add to element(s) matched by a selector",
"example": "background-color:blue;",
"type": "string"
},
"text": {
"description": "Value of text attribute to add to the element(s) matched by a selector",
"example": "Some nice message",
"type": "string"
}
},
"type": "object",
"x-model": "ChangeAttribute"
},
"ChangeDetail": {
"properties": {
"after": {
"description": "Value of the property after modification."
},
"before": {
"description": "Value of the property before modification."
},
"description": {
"description": "Human readable description of the change.",
"type": "string"
},
"property": {
"description": "The name of the property modified.",
"type": "string"
}
},
"type": "object",
"x-model": "ChangeDetail"
},
"ChangeHistoryChange": {
"properties": {
"change_type": {
"description": "Action performed on the entity.",
"enum": [
"archive",
"create",
"update",
"delete",
"publish"
],
"type": "string"
},
"changes": {
"description": "List of change details.",
"items": {
"$ref": "#/definitions/ChangeDetail"
},
"type": "array"
},
"created": {
"description": "Created time of the current revision. Format is ISO 8601.",
"format": "date-time",
"type": "string"
},
"entity": {
"$ref": "#/definitions/Entity",
"description": "Details of the entity."
},
"id": {
"description": "ID of the change.",
"format": "int64",
"type": "integer"
},
"project_id": {
"description": "ID of the project related to the entity.",
"format": "int64",
"type": "integer"
},
"revisions": {
"$ref": "#/definitions/ChangeRevision",
"description": "The before and after revisions of the entity."
},
"source": {
"description": "Origin of the current revision.",
"enum": [
"ui",
"api"
],
"type": "string"
},
"summary": {
"description": "Short human readable description of the change.",
"type": "string"
},
"user": {
"$ref": "#/definitions/User",
"description": "Information of the user who made the change."
}
},
"required": [
"project_id"
],
"type": "object",
"x-model": "ChangeHistoryChange"
},
"ChangeRevision": {
"properties": {
"current": {
"$ref": "#/definitions/Revision",
"description": "Reference to the current revision of the entity."
},
"previous": {
"$ref": "#/definitions/Revision",
"description": "Reference to the previous revision of the entity."
}
},
"type": "object",
"x-model": "ChangeRevision"
},
"Choices": {
"properties": {
"label": {
"description": "label of the choice",
"type": "string"
},
"value": {
"description": "value of the choice",
"type": "string"
}
},
"type": "object",
"x-model": "Choices"
},
"CollaboratorEntry": {
"properties": {
"id": {
"description": "The unique identifier of the user",
"example": "fa74a14b-1f3a-463d-aa98-2f7124ee6fc3",
"format": "uuid",
"readOnly": true,
"type": "string"
},
"profile": {
"$ref": "#/definitions/UserProfile"
},
"project_roles": {
"items": {
"$ref": "#/definitions/ProjectRole"
},
"type": "array"
}
},
"type": "object",
"x-model": "CollaboratorEntry"
},
"CompoundSubMetric": {
"description": "A metric that is used only as part of the calculation for a ratio metric.",
"properties": {
"aggregator": {
"default": "unique",
"description": "The aggregation function for the numerator of the metric. 'unique' measures the number of unique visitors/sessions that include the specified Event. 'count' measures the total number of occurrences of Event for the scope (visitor/session). 'sum' is the sum of the 'field' value.",
"enum": [
"unique",
"count",
"sum"
],
"type": "string"
},
"event_id": {
"description": "The ID for the Event to select data from.",
"format": "int64",
"type": "integer",
"x-nullable": true
},
"event_type": {
"description": "The type of this Event.",
"enum": [
"custom",
"click",
"pageview"
],
"type": "string"
},
"field": {
"description": "The field to aggregate for the numerator of the metric. Required when 'aggregator' = 'sum', otherwise omitted.",
"enum": [
"revenue",
"value"
],
"type": "string",
"x-nullable": true
},
"scope": {
"default": "visitor",
"description": "Specifies how Events should be grouped. Can also be thought of as the denominator of the metric. 'session' divides by the number of sessions. \"Influenced sessions\", or sessions that do not contain a decision Event but carry a decision from a previous session are not included in counts for numerator or denominator. 'visitor' divides by the number of visitors. 'event' divides by the total occurrences (impressions) of the specified Event.",
"enum": [
"session",
"visitor",
"event"
],
"type": "string"
}
},
"type": "object",
"x-model": "CompoundSubMetric"
},
"CredentialsItem": {
"description": "Credentials item containing information on access key and secrets",
"properties": {
"accessKeyId": {
"description": "AWS access key",
"example": "ASIA5QMPA3WZQJNOABC",
"type": "string"
},
"expiration": {
"description": "expiration time of the token in epoch time",
"example": 1591026407394,
"format": "int64",
"type": "integer"
},
"secretAccessKey": {
"description": "AWS secret access key",
"example": "1234567qzerHJDWdIDGixoTYfqC1dZp",
"type": "string"
},
"sessionToken": {
"description": "AWS session token",
"example": "FwoGZXIvYXdzEOT//////////wEaDH6J",
"type": "string"
}
},
"type": "object",
"x-model": "CredentialsItem"
},
"CurrentAccount": {
"properties": {
"features": {
"additionalProperties": {
"$ref": "#/definitions/AccountFeature"
},
"description": "The available features for the Account",
"readOnly": true,
"type": "object"
},
"id": {
"description": "The unique identifier of the Account",
"format": "int64",
"readOnly": true,
"type": "integer"
}
},
"type": "object",
"x-model": "CurrentAccount"
},
"CustomEvent": {
"properties": {
"archived": {
"description": "Whether or not to archive this Event",
"type": "boolean"
},
"category": {
"$ref": "#/definitions/EventCategories",
"default": "other",
"description": "A category for this Event"
},
"created": {
"description": "Creation date for this Event",
"format": "date-time",
"readOnly": true,
"type": "string"
},
"description": {
"description": "A description of this Event",
"type": "string"
},
"event_properties": {
"description": "A set of user-defined data elements for the event. Metrics can filter on particular values of these properties.",
"items": {
"$ref": "#/definitions/EventProperty"
},
"type": "array"
},
"event_type": {
"description": "The type of this Event",
"enum": [
"custom"
],
"type": "string"
},
"id": {
"description": "The unique identifier of the Event",
"format": "int64",
"readOnly": true,
"type": "integer"
},
"is_classic": {
"default": false,
"description": "Whether or not this Event is a classic Event. If true, this Event is read-only",
"readOnly": true,
"type": "boolean"
},
"is_editable": {
"description": "Whether or not this Event may be edited",
"readOnly": true,
"type": "boolean"
},
"key": {
"description": "Unique string identifier for this Event within the Project",
"example": "loaded_new_app",
"maxLength": 64,
"pattern": "^[a-zA-Z0-9_\\- .]+$",
"type": "string"
},
"name": {
"description": "A human readable name for this Event. If unspecified, defaults to the key",
"example": "Loaded New App",
"type": "string"
},
"project_id": {
"description": "The ID of this Event's parent Project",
"example": 1000,
"format": "int64",
"readOnly": true,
"type": "integer"
}
},
"required": [
"key"
],
"type": "object",
"x-model": "CustomEvent"
},
"CustomEventUpdate": {
"properties": {
"archived": {
"description": "Whether or not to archive this Event",
"type": "boolean"
},
"category": {
"$ref": "#/definitions/EventCategories",
"description": "A category for this Event"
},
"description": {
"description": "A description of this Event",
"type": "string"
},
"key": {
"description": "Unique string identifier for this Event within the Project",
"example": "loaded_new_app",
"maxLength": 64,
"pattern": "^[a-zA-Z0-9_\\- .]+$",
"type": "string"
},
"name": {
"description": "A human readable name for this Event",
"example": "Loaded New App",
"type": "string"
}
},
"type": "object",
"x-model": "CustomEventUpdate"
},
"Datafile": {
"properties": {
"id": {
"description": "ID of Datafile.",
"readOnly": true,
"type": "integer"
},
"latest_file_size": {
"description": "The current size in bytes of the Datafile.",
"readOnly": true,
"type": "integer"
},
"other_urls": {
"description": "List of other URLs where this Datafile is also available.",
"items": {
"format": "url",
"type": "string"
},
"readOnly": true,
"type": "array"
},
"revision": {
"description": "Current revision number.",
"readOnly": true,
"type": "integer"
},
"sdk_key": {
"description": "Unique key to identify this specific Environment and Datafile programmatically in our SDKs.",
"readOnly": true,
"type": "string"
},
"url": {
"description": "URL where this Datafile is available.",
"format": "url",
"readOnly": true,
"type": "string"
}
},
"type": "object",
"x-model": "Datafile"
},
"Datapoint": {
"description": "A value with statistical context",
"properties": {
"confidence_interval": {
"description": "The confidence interval measures the uncertainty around improvement. It starts out wide and shrinks as more data comes in. Significance means that the confidence interval is completely above or completely below 0. If the result is significant and positive, the confidence interval will be above 0. If the result is significant and negative, confidence interval will be below 0. If the result is inconclusive, confidence interval includes 0",
"example": [
0.010399560300730457,
0.0850821459929161
],
"items": {
"format": "double",
"type": "number"
},
"maxItems": 2,
"minItems": 2,
"type": "array"
},
"confidence_interval_scaled": {
"description": "The confidence interval with bounds that are scaled by the baseline conversion rate.",
"items": {
"format": "double",
"type": "number"
},
"maxItems": 2,
"minItems": 2,
"type": "array"
},
"end_of_epoch": {
"type": "boolean"
},
"is_most_conclusive": {
"description": "Indicates that this is the best performing variant for this metric. Also referred to as the 'Winner'",
"type": "boolean"
},
"is_significant": {
"description": "Indicates if significance is above your confidence threshold",
"type": "boolean"
},
"lift_status": {
"description": "Indicates whether a variation is doing better/worse than the baseline after taking the metric's winning direction into account.",
"enum": [
"equal",
"better",
"worse"
],
"type": "string"
},
"significance": {
"description": "The likelihood that the observed difference in conversion rate is not due to chance",
"format": "double",
"type": "number"
},
"value": {
"description": "The estimated improvement for this variant compared to the baseline",
"format": "double",
"type": "number"
},
"value_scaled": {
"description": "The estimated improvement scaled by the baseline conversion rate.",
"format": "double",
"type": "number"
},
"visitors_remaining": {
"description": "The number of estimated visitors remaining before result becomes statistically significant. A value of 9223372036854775807 means the value is not available.",
"format": "int64",
"type": "integer"
}
},
"type": "object",
"x-model": "Da