{
   "components" : {
      "schemas" : {
         "BatchReportingResponse" : {
            "properties" : {
               "error" : {
                  "description" : "Error code (0 if no error)",
                  "type" : "integer"
               },
               "reports" : {
                  "items" : {
                     "properties" : {
                        "columnHeader" : {
                           "description" : "The report structure is defined in the ColumnHeader object which describes the dimensions and metrics and their data types in the report. The values of the dimensions and metrics are specified in the data field.",
                           "properties" : {
                              "dateRanges" : {
                                 "items" : {
                                    "properties" : {
                                       "from" : {
                                          "type" : "integer"
                                       },
                                       "range" : {
                                          "type" : "string"
                                       },
                                       "to" : {
                                          "type" : "integer"
                                       },
                                       "tzone" : {
                                          "type" : "string"
                                       },
                                       "values" : {
                                          "items" : {
                                             "properties" : {
                                                "epoch" : {
                                                   "type" : "integer"
                                                }
                                             },
                                             "type" : "object"
                                          },
                                          "type" : "array"
                                       }
                                    },
                                    "type" : "object"
                                 },
                                 "type" : "array"
                              },
                              "dimensions" : {
                                 "items" : {
                                    "properties" : {
                                       "field" : {
                                          "type" : "string"
                                       },
                                       "name" : {
                                          "type" : "string"
                                       }
                                    },
                                    "type" : "object"
                                 },
                                 "type" : "array"
                              },
                              "metrics" : {
                                 "items" : {
                                    "properties" : {
                                       "affinity" : {
                                          "type" : "string"
                                       },
                                       "field" : {
                                          "type" : "string"
                                       },
                                       "name" : {
                                          "type" : "string"
                                       }
                                    },
                                    "type" : "object"
                                 },
                                 "type" : "array"
                              },
                              "segments" : {
                                 "items" : {
                                    "properties" : {
                                       "name" : {
                                          "type" : "string"
                                       },
                                       "type" : {
                                          "type" : "string"
                                       }
                                    },
                                    "type" : "object"
                                 },
                                 "type" : "array"
                              }
                           },
                           "type" : "object"
                        },
                        "data" : {
                           "items" : {
                              "properties" : {
                                 "dimensions" : {
                                    "items" : {
                                       "type" : "string"
                                    },
                                    "type" : "array"
                                 },
                                 "metrics" : {
                                    "items" : {
                                       "items" : {
                                          "properties" : {
                                             "segments" : {
                                                "additionalProperties" : {
                                                   "items" : {
                                                      "properties" : {
                                                         "id" : {
                                                            "type" : "string"
                                                         },
                                                         "name" : {
                                                            "type" : "string"
                                                         },
                                                         "values" : {
                                                            "items" : {
                                                               "type" : "string"
                                                            },
                                                            "type" : "array"
                                                         }
                                                      },
                                                      "type" : "object"
                                                   },
                                                   "type" : "array"
                                                },
                                                "type" : "object"
                                             },
                                             "values" : {
                                                "items" : {
                                                   "type" : "string"
                                                },
                                                "type" : "array"
                                             }
                                          },
                                          "type" : "object"
                                       },
                                       "type" : "array"
                                    },
                                    "type" : "array"
                                 }
                              },
                              "type" : "object"
                           },
                           "type" : "array"
                        },
                        "kind" : {
                           "description" : "The kind or category of the report",
                           "type" : "string"
                        },
                        "path" : {
                           "description" : "Path indicating the data source",
                           "type" : "string"
                        },
                        "rowCount" : {
                           "description" : "Number of rows in this report segment",
                           "type" : "integer"
                        }
                     },
                     "required" : [
                        "path",
                        "rowCount",
                        "kind",
                        "data"
                     ],
                     "type" : "object"
                  },
                  "type" : "array"
               },
               "totalRowCount" : {
                  "description" : "Total number of rows for the entire response",
                  "type" : "integer"
               }
            },
            "type" : "object"
         },
         "CJAssistAdvancedReportingRequest" : {
            "properties" : {
               "reports" : {
                  "items" : {
                     "properties" : {
                        "dimension" : {
                           "description" : "Dimension you want to work on, available list is provided through the assist_get_available_dimension method.",
                           "enum" : [
                              "media",
                              "publisher",
                              "submedia",
                              "insegmentitem",
                              "insegmentitemcategory",
                              "ope"
                           ],
                           "example" : "media",
                           "type" : "string"
                        },
                        "filters" : {
                           "description" : "JSON Array of filters containing array of: key, operand, value.",
                           "example" : "[ [ key1, operand1, val1 ], [ key2, operand2, val2 ] ... ]",
                           "type" : "string"
                        },
                        "goal" : {
                           "description" : "Goal you want to work on, available list is provided through the assist_get_available_goal method.",
                           "enum" : [
                              "order",
                              "estimate",
                              "scart",
                              "profile_$ID"
                           ],
                           "example" : "order",
                           "type" : "string"
                        },
                        "kind" : {
                           "const" : "cj#assist-advanced",
                           "description" : "TODO",
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which the `query` is provided.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        },
                        "view-id" : {
                           "description" : "Id of the view you want to work on, available list is provided through the assist_get_available_views.You can provide multiple view-id, for example: 3,4",
                           "example" : "3,4",
                           "type" : "string"
                        }
                     },
                     "required" : [
                        "kind",
                        "goal",
                        "view-id",
                        "dimension"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "minItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "CJAssistSimpleReportingRequest" : {
            "properties" : {
               "reports" : {
                  "items" : {
                     "properties" : {
                        "dimension" : {
                           "description" : "Dimension you want to work on, available list is provided through the assist_get_available_dimension method.",
                           "enum" : [
                              "media",
                              "publisher",
                              "submedia",
                              "insegmentitem",
                              "insegmentitemcategory",
                              "ope"
                           ],
                           "example" : "media",
                           "type" : "string"
                        },
                        "filters" : {
                           "description" : "JSON Array of filters containing array of: key, operand, value.",
                           "example" : "[ [ key1, operand1, val1 ], [ key2, operand2, val2 ] ... ]",
                           "type" : "string"
                        },
                        "goal" : {
                           "description" : "Goal you want to work on, available list is provided through the assist_get_available_goal method.",
                           "enum" : [
                              "order",
                              "estimate",
                              "scart",
                              "profile_$ID"
                           ],
                           "example" : "order",
                           "type" : "string"
                        },
                        "kind" : {
                           "const" : "cj#assist-simple",
                           "description" : "TODO",
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which the `query` is provided.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        },
                        "view-id" : {
                           "description" : "Id of the view you want to work on, available list is provided through the assist_get_available_views.",
                           "example" : 3,
                           "type" : "string"
                        }
                     },
                     "required" : [
                        "kind",
                        "goal",
                        "view-id",
                        "dimension"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "minItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "CJBiasAdvancedReportingRequest" : {
            "properties" : {
               "reports" : {
                  "items" : {
                     "properties" : {
                        "bias" : {
                           "description" : "Bias you want to work on, available list is provided through the bias_get_available_bias method.You can provide multiple bias, for example: bias:brand,bias:session",
                           "enum" : [
                              "bias:brand",
                              "bias:session",
                              "bias:view",
                              "bias:lastpaidchannel",
                              "bias:firstchannel"
                           ],
                           "example" : "bias:brand,bias:session",
                           "type" : "string"
                        },
                        "dimension" : {
                           "description" : "Dimension you want to work on, available list is provided through the bias_get_available_dimension method.",
                           "enum" : [
                              "media",
                              "publisher",
                              "submedia",
                              "insegmentitem",
                              "insegmentitemcategory",
                              "ope"
                           ],
                           "example" : "media",
                           "type" : "string"
                        },
                        "filters" : {
                           "description" : "JSON Array of filters containing array of: key, operand, value.",
                           "example" : "[ [ key1, operand1, val1 ], [ key2, operand2, val2 ] ... ]",
                           "type" : "string"
                        },
                        "goal" : {
                           "description" : "Goal you want to work on, available list is provided through the bias_get_available_goal method..",
                           "enum" : [
                              "order",
                              "estimate",
                              "scart",
                              "profile_$ID"
                           ],
                           "example" : "order",
                           "type" : "string"
                        },
                        "kind" : {
                           "const" : "cj#bias-advanced",
                           "description" : "TODO",
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which the `query` is provided.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        },
                        "model-id" : {
                           "description" : "Id of the model you want to compare the bias to.",
                           "enum" : [
                              "firstchannel",
                              "firstpaidchannel",
                              "lastchannel",
                              "lastchannel-visit",
                              "lastpaidchannel",
                              "lastpaidchannel-visit",
                              "lastpaidchannel-wobs",
                              "lastpaidchannel-womailing"
                           ],
                           "example" : "lastchannel",
                           "type" : "string"
                        }
                     },
                     "required" : [
                        "kind",
                        "goal",
                        "bias",
                        "dimension",
                        "model-id"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "minItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "CJBiasSimpleReportingRequest" : {
            "properties" : {
               "reports" : {
                  "items" : {
                     "properties" : {
                        "bias" : {
                           "description" : "Bias you want to work on, available list is provided through the bias_get_available_bias method.",
                           "enum" : [
                              "bias:brand",
                              "bias:session",
                              "bias:view",
                              "bias:lastpaidchannel",
                              "bias:firstchannel"
                           ],
                           "example" : "bias:brand",
                           "type" : "string"
                        },
                        "dimension" : {
                           "description" : "Dimension you want to work on, available list is provided through the bias_get_available_dimension method.",
                           "enum" : [
                              "media",
                              "publisher",
                              "submedia",
                              "insegmentitem",
                              "insegmentitemcategory",
                              "ope"
                           ],
                           "example" : "media",
                           "type" : "string"
                        },
                        "filters" : {
                           "description" : "JSON Array of filters containing array of: key, operand, value.",
                           "example" : "[ [ key1, operand1, val1 ], [ key2, operand2, val2 ] ... ]",
                           "type" : "string"
                        },
                        "goal" : {
                           "description" : "Goal you want to work on, available list is provided through the bias_get_available_goal method..",
                           "enum" : [
                              "order",
                              "estimate",
                              "scart",
                              "profile_$ID"
                           ],
                           "example" : "order",
                           "type" : "string"
                        },
                        "kind" : {
                           "const" : "cj#bias-simple",
                           "description" : "TODO",
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which the `query` is provided.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        },
                        "model-id" : {
                           "description" : "Id of the model you want to compare the bias to.",
                           "enum" : [
                              "firstchannel",
                              "firstpaidchannel",
                              "lastchannel",
                              "lastchannel-visit",
                              "lastpaidchannel",
                              "lastpaidchannel-visit",
                              "lastpaidchannel-wobs",
                              "lastpaidchannel-womailing"
                           ],
                           "example" : "lastchannel",
                           "type" : "string"
                        }
                     },
                     "required" : [
                        "kind",
                        "goal",
                        "bias",
                        "dimension",
                        "model-id"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "minItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "CJDeviceexclusivityAdvancedReportingRequest" : {
            "properties" : {
               "reports" : {
                  "items" : {
                     "properties" : {
                        "dependency-relative" : {
                           "descritpion" : "If set to 1 we will work on the total of the dataset without surevaluating the pair sums.",
                           "type" : "string"
                        },
                        "filters" : {
                           "description" : "JSON Array of filters containing array of: key, operand, value.",
                           "example" : "[ [ key1, operand1, val1 ], [ key2, operand2, val2 ] ... ]",
                           "type" : "string"
                        },
                        "goal" : {
                           "description" : "Goal you want to work on, available list is provided through the mediapath_get_available_goal method.",
                           "enum" : [
                              "order",
                              "estimate",
                              "scart",
                              "profile_$ID"
                           ],
                           "example" : "order",
                           "type" : "string"
                        },
                        "kind" : {
                           "const" : "cj#deviceexclusivity-advanced",
                           "description" : "TODO",
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which the `query` is provided.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        },
                        "mdevicetype-id" : {
                           "description" : "Id of the device you want to work on, available list is provided through the mediapath_get_available_mdevicetype method.",
                           "example" : 3,
                           "type" : "string"
                        }
                     },
                     "required" : [
                        "kind",
                        "mdevicetype-id",
                        "goal"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "minItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "CJDeviceexclusivitySimpleReportingRequest" : {
            "properties" : {
               "reports" : {
                  "items" : {
                     "properties" : {
                        "dependency-relative" : {
                           "descritpion" : "If set to 1 we will work on the total of the dataset without surevaluating the pair sums.",
                           "type" : "string"
                        },
                        "filters" : {
                           "description" : "JSON Array of filters containing array of: key, operand, value.",
                           "example" : "[ [ key1, operand1, val1 ], [ key2, operand2, val2 ] ... ]",
                           "type" : "string"
                        },
                        "goal" : {
                           "description" : "Goal you want to work on, available list is provided through the mediapath_get_available_goal method.",
                           "enum" : [
                              "order",
                              "estimate",
                              "scart",
                              "profile_$ID"
                           ],
                           "example" : "order",
                           "type" : "string"
                        },
                        "kind" : {
                           "const" : "cj#deviceexclusivity-simple",
                           "description" : "TODO",
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which the `query` is provided.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        }
                     },
                     "required" : [
                        "kind",
                        "goal"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "minItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "CJDevicepathAdvancedReportingRequest" : {
            "properties" : {
               "reports" : {
                  "items" : {
                     "properties" : {
                        "filters" : {
                           "description" : "JSON Array of filters containing array of: key, operand, value.",
                           "example" : "[ [ key1, operand1, val1 ], [ key2, operand2, val2 ] ... ]",
                           "type" : "string"
                        },
                        "goal" : {
                           "description" : "Goal you want to work on, available list is provided through the mediapath_get_available_goal method.",
                           "enum" : [
                              "order",
                              "estimate",
                              "scart",
                              "profile_$ID"
                           ],
                           "example" : "order",
                           "type" : "string"
                        },
                        "kind" : {
                           "const" : "cj#devicepath-advanced",
                           "description" : "TODO",
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which the `query` is provided.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        },
                        "mdevicetype-id" : {
                           "description" : "Id of the device provided by the devicepath_get_available_mdevicetype service. If set to 0 we will work at the global device level.",
                           "example" : 3,
                           "type" : "string"
                        },
                        "player-position" : {
                           "description" : "Indicate the position at which you want the player to start if an item-id is provided.",
                           "enum" : [
                              "first",
                              "last"
                           ],
                           "example" : "first",
                           "type" : "string"
                        },
                        "player-unique" : {
                           "description" : "If this parameter is set to 1, then we will only return the list of paths for which the provided item is unique in the path. By default player-unique is set to option 2, meaning we aggregrate consecutive touches.",
                           "enum" : [
                              0,
                              2
                           ],
                           "example" : 0,
                           "type" : "string"
                        }
                     },
                     "required" : [
                        "kind",
                        "goal"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "minItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "CJDevicepathSimpleReportingRequest" : {
            "properties" : {
               "reports" : {
                  "items" : {
                     "properties" : {
                        "filters" : {
                           "description" : "JSON Array of filters containing array of: key, operand, value.",
                           "example" : "[ [ key1, operand1, val1 ], [ key2, operand2, val2 ] ... ]",
                           "type" : "string"
                        },
                        "goal" : {
                           "description" : "Goal you want to work on, available list is provided through the mediapath_get_available_goal method.",
                           "enum" : [
                              "order",
                              "estimate",
                              "scart",
                              "profile_$ID"
                           ],
                           "example" : "order",
                           "type" : "string"
                        },
                        "kind" : {
                           "const" : "cj#devicepath-simple",
                           "description" : "TODO",
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which the `query` is provided.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        },
                        "mdevicetype-id" : {
                           "description" : "Id of the device you want to work on, available list is provided through the mediapath_get_available_mdevicetype method.",
                           "example" : 3,
                           "type" : "string"
                        }
                     },
                     "required" : [
                        "kind",
                        "goal",
                        "mdevicetype-id"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "minItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "CJDurationSimpleReportingRequest" : {
            "properties" : {
               "reports" : {
                  "items" : {
                     "properties" : {
                        "filters" : {
                           "description" : "JSON Array of filters containing array of: key, operand, value.",
                           "example" : "[ [ key1, operand1, val1 ], [ key2, operand2, val2 ] ... ]",
                           "type" : "string"
                        },
                        "journey" : {
                           "description" : "Journey you want to work on, available list is provided through the duration_get_available_journey method.",
                           "example" : "firsttouch-order",
                           "type" : "string"
                        },
                        "kind" : {
                           "const" : "cj#duration-simple",
                           "description" : "TODO",
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which the `query` is provided.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        },
                        "slot" : {
                           "description" : "Slot you want to group by, available list is provided through the duration_get_available_slot method.",
                           "enum" : [
                              "hour",
                              "day",
                              "week",
                              "month"
                           ],
                           "example" : "hour",
                           "type" : "string"
                        }
                     },
                     "required" : [
                        "kind",
                        "journey",
                        "slot"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "minItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "CJMediaexclusivityAdvancedReportingRequest" : {
            "properties" : {
               "reports" : {
                  "items" : {
                     "properties" : {
                        "dependency-relative" : {
                           "descritpion" : "If set to 1 we will work on the total of the dataset without surevaluating the pair sums.",
                           "type" : "string"
                        },
                        "dimension" : {
                           "description" : "Dimension you want to work on, available list is provided through the mediaexclusivity_get_available_dimension method.",
                           "enum" : [
                              "media",
                              "publisher",
                              "submedia",
                              "ope"
                           ],
                           "example" : "media",
                           "type" : "string"
                        },
                        "filters" : {
                           "description" : "JSON Array of filters containing array of: key, operand, value.",
                           "example" : "[ [ key1, operand1, val1 ], [ key2, operand2, val2 ] ... ]",
                           "type" : "string"
                        },
                        "goal" : {
                           "description" : "Goal you want to work on, available list is provided through the mediaexclusivity_get_available_goal method.",
                           "enum" : [
                              "order",
                              "estimate",
                              "scart",
                              "profile_$ID"
                           ],
                           "example" : "order",
                           "type" : "string"
                        },
                        "item-id" : {
                           "description" : "Multiple id of the item provided by the mediaexclusivity_get_available_item_by_dimension service, that you want to compare.",
                           "example" : "1,266,3",
                           "type" : "string"
                        },
                        "kind" : {
                           "const" : "cj#mediaexclusivity-advanced",
                           "description" : "TODO",
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which the `query` is provided.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        }
                     },
                     "required" : [
                        "kind",
                        "item-id",
                        "goal",
                        "dimension"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "minItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "CJMediaexclusivitySimpleReportingRequest" : {
            "properties" : {
               "reports" : {
                  "items" : {
                     "properties" : {
                        "dependency-relative" : {
                           "descritpion" : "If set to 1 we will work on the total of the dataset without surevaluating the pair sums.",
                           "type" : "string"
                        },
                        "dimension" : {
                           "description" : "Dimension you want to work on, available list is provided through the mediaexclusivity_get_available_dimension method.",
                           "enum" : [
                              "media",
                              "publisher",
                              "submedia",
                              "ope"
                           ],
                           "example" : "media",
                           "type" : "string"
                        },
                        "filters" : {
                           "description" : "JSON Array of filters containing array of: key, operand, value.",
                           "example" : "[ [ key1, operand1, val1 ], [ key2, operand2, val2 ] ... ]",
                           "type" : "string"
                        },
                        "goal" : {
                           "description" : "Goal you want to work on, available list is provided through the mediaexclusivity_get_available_goal method.",
                           "enum" : [
                              "order",
                              "estimate",
                              "scart",
                              "profile_$ID"
                           ],
                           "example" : "order",
                           "type" : "string"
                        },
                        "kind" : {
                           "const" : "cj#mediaexclusivity-simple",
                           "description" : "TODO",
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which the `query` is provided.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        }
                     },
                     "required" : [
                        "kind",
                        "goal",
                        "dimension"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "minItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "CJMediapathAdvancedReportingRequest" : {
            "properties" : {
               "reports" : {
                  "items" : {
                     "properties" : {
                        "dimension" : {
                           "description" : "Dimension you want to work on, available list is provided through the mediapath_get_available_dimension method.",
                           "enum" : [
                              "media",
                              "publisher",
                              "submedia",
                              "ope",
                              "insegmentitem",
                              "insegmentitemcategory",
                              "mediaplan"
                           ],
                           "example" : "media",
                           "type" : "string"
                        },
                        "filters" : {
                           "description" : "JSON Array of filters containing array of: key, operand, value.",
                           "example" : "[ [ key1, operand1, val1 ], [ key2, operand2, val2 ] ... ]",
                           "type" : "string"
                        },
                        "goal" : {
                           "description" : "Goal you want to work on, available list is provided through the mediapath_get_available_goal method.",
                           "enum" : [
                              "order",
                              "estimate",
                              "scart",
                              "profile_$ID"
                           ],
                           "example" : "order",
                           "type" : "string"
                        },
                        "item-id" : {
                           "description" : "Id of the item provided by the mediapath_get_available_item_by_dimension method. If set to 0 we will work at the dimension level, in case it contains a non-empty value, this means we will filter on paths which contains the provided item-id.",
                           "example" : 3,
                           "type" : "string"
                        },
                        "kind" : {
                           "const" : "cj#mediapath-advanced",
                           "description" : "TODO",
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which the `query` is provided.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        },
                        "player-position" : {
                           "description" : "Indicate the position at which you want the player to start if an item-id is provided.",
                           "enum" : [
                              "first",
                              "last"
                           ],
                           "example" : "first",
                           "type" : "string"
                        },
                        "player-unique" : {
                           "description" : "If this parameter is set to 1, then we will only return the list of paths for which the provided item is unique in the path. By default player-unique is set to option 2, meaning we aggregrate consecutive touches.",
                           "enum" : [
                              0,
                              2
                           ],
                           "example" : 0,
                           "type" : "string"
                        }
                     },
                     "required" : [
                        "kind",
                        "goal",
                        "dimension"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "minItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "CJMediapathSimpleReportingRequest" : {
            "properties" : {
               "reports" : {
                  "items" : {
                     "properties" : {
                        "dimension" : {
                           "description" : "Dimension you want to work on, available list is provided through the mediapath_get_available_dimension method.",
                           "enum" : [
                              "media",
                              "publisher",
                              "submedia",
                              "ope",
                              "insegmentitem",
                              "insegmentitemcategory",
                              "mediaplan"
                           ],
                           "example" : "media",
                           "type" : "string"
                        },
                        "filters" : {
                           "description" : "JSON Array of filters containing array of: key, operand, value.",
                           "example" : "[ [ key1, operand1, val1 ], [ key2, operand2, val2 ] ... ]",
                           "type" : "string"
                        },
                        "goal" : {
                           "description" : "Goal you want to work on, available list is provided through the mediapath_get_available_goal method.",
                           "enum" : [
                              "order",
                              "estimate",
                              "scart",
                              "profile_$ID"
                           ],
                           "example" : "order",
                           "type" : "string"
                        },
                        "item-id" : {
                           "description" : "Id of the item you want to work on, available list is provided through the mediapath_get_available_item_by_dimension.",
                           "example" : 3,
                           "type" : "string"
                        },
                        "kind" : {
                           "const" : "cj#mediapath-simple",
                           "description" : "TODO",
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which the `query` is provided.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        }
                     },
                     "required" : [
                        "kind",
                        "goal",
                        "item-id",
                        "dimension"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "minItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "CJQualifyengageSimpleReportingRequest" : {
            "properties" : {
               "reports" : {
                  "items" : {
                     "properties" : {
                        "dimension" : {
                           "description" : "Dimension you want to work on, available list is provided through the qualifyengage_get_available_dimension method.",
                           "enum" : [
                              "media",
                              "publisher",
                              "submedia",
                              "ope"
                           ],
                           "example" : "media",
                           "type" : "string"
                        },
                        "filters" : {
                           "description" : "JSON Array of filters containing array of: key, operand, value.",
                           "example" : "[ [ key1, operand1, val1 ], [ key2, operand2, val2 ] ... ]",
                           "type" : "string"
                        },
                        "kind" : {
                           "const" : "cj#qualifyengage-simple",
                           "description" : "TODO",
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which the `query` is provided.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        },
                        "profile-type" : {
                           "description" : "Indicate if we work on the global or session profile, defaults to global.",
                           "enum" : [
                              "global",
                              "session"
                           ],
                           "example" : "global",
                           "type" : "string"
                        },
                        "profilesequence-id" : {
                           "description" : "Id of the profile sequence you want to work on, available list is provided through the qualifyengage_get_available_profilesequence method.",
                           "example" : 3,
                           "type" : "string"
                        },
                        "view-id" : {
                           "description" : "Id of the view you want to work on, available list is provided through the qualifyengage_get_available_views method.",
                           "example" : 3,
                           "type" : "string"
                        }
                     },
                     "required" : [
                        "kind",
                        "profilesequence-id",
                        "view-id",
                        "dimension",
                        "profile-type"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "minItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "CJTouchSimpleReportingRequest" : {
            "properties" : {
               "reports" : {
                  "items" : {
                     "properties" : {
                        "filters" : {
                           "description" : "JSON Array of filters containing array of: key, operand, value.",
                           "example" : "[ [ key1, operand1, val1 ], [ key2, operand2, val2 ] ... ]",
                           "type" : "string"
                        },
                        "goal" : {
                           "description" : "Goal you want to work on, available list is provided through the touch_get_available_goal method.",
                           "enum" : [
                              "order",
                              "estimate",
                              "scart",
                              "profile_$ID"
                           ],
                           "example" : "order",
                           "type" : "string"
                        },
                        "kind" : {
                           "const" : "cj#touch-simple",
                           "description" : "TODO",
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which the `query` is provided.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        }
                     },
                     "required" : [
                        "kind",
                        "goal"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "minItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "CJVelocityAdvancedReportingRequest" : {
            "properties" : {
               "reports" : {
                  "items" : {
                     "properties" : {
                        "dimension" : {
                           "description" : "Dimension you want to work on, available list is provided through the velocity_get_available_dimension method.",
                           "enum" : [
                              "media",
                              "publisher",
                              "submedia",
                              "ope"
                           ],
                           "example" : "media",
                           "type" : "string"
                        },
                        "filters" : {
                           "description" : "JSON Array of filters containing array of: key, operand, value.",
                           "example" : "[ [ key1, operand1, val1 ], [ key2, operand2, val2 ] ... ]",
                           "type" : "string"
                        },
                        "item-id" : {
                           "description" : "Id of the item for the current dimension for which you want the data. If dimension is media the item-id must exists as cMEDIA.id. You can provide multiple ids by providing them with commas.",
                           "example" : "5,6,9",
                           "type" : "string"
                        },
                        "journey" : {
                           "description" : "Journey you want to work on, available list is provided through the velocity_get_available_journey method..",
                           "example" : "firsttouch-order",
                           "type" : "string"
                        },
                        "kind" : {
                           "const" : "cj#velocity-advanced",
                           "description" : "TODO",
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which the `query` is provided.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        },
                        "scale" : {
                           "description" : "Scale you want to work on, available list is provided through the velocity_get_available_scale method.",
                           "enum" : [
                              "12h",
                              "24hlinear",
                              "24h",
                              "3d",
                              "15d",
                              "30d"
                           ],
                           "example" : "12h",
                           "type" : "string"
                        }
                     },
                     "required" : [
                        "kind",
                        "item-id",
                        "journey",
                        "dimension",
                        "scale"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "minItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "CJVelocitySimpleReportingRequest" : {
            "properties" : {
               "reports" : {
                  "items" : {
                     "properties" : {
                        "dimension" : {
                           "description" : "Dimension you want to work on, available list is provided through the velocity_get_available_dimension method.",
                           "enum" : [
                              "media",
                              "publisher",
                              "submedia",
                              "ope"
                           ],
                           "example" : "media",
                           "type" : "string"
                        },
                        "filters" : {
                           "description" : "JSON Array of filters containing array of: key, operand, value.",
                           "example" : "[ [ key1, operand1, val1 ], [ key2, operand2, val2 ] ... ]",
                           "type" : "string"
                        },
                        "item-id-1" : {
                           "description" : "First id of the item you want to work on, available list is provided through the velocity_get_available_item_by_dimension.",
                           "example" : 3,
                           "type" : "string"
                        },
                        "item-id-2" : {
                           "description" : "Second id of the item you want to work on, available list is provided through the velocity_get_available_item_by_dimension.",
                           "example" : 5,
                           "type" : "string"
                        },
                        "journey" : {
                           "description" : "Journey you want to work on, available list is provided through the velocity_get_available_journey method..",
                           "example" : "firsttouch-order",
                           "type" : "string"
                        },
                        "kind" : {
                           "const" : "cj#velocity-simple",
                           "description" : "TODO",
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which the `query` is provided.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        },
                        "scale" : {
                           "description" : "Scale you want to work on, available list is provided through the velocity_get_available_scale method.",
                           "enum" : [
                              "12h",
                              "24hlinear",
                              "24h",
                              "3d",
                              "15d",
                              "30d"
                           ],
                           "example" : "12h",
                           "type" : "string"
                        }
                     },
                     "required" : [
                        "kind",
                        "journey",
                        "item-id-1",
                        "item-id-2",
                        "dimension",
                        "scale"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "minItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "DataField" : {
            "properties" : {
               "name" : {
                  "type" : "string"
               }
            },
            "type" : "object"
         },
         "EBMDBBatchReportingRequest" : {
            "properties" : {
               "async" : {
                  "description" : "By default all the reports are sent as async, in some cases you may want to disable this mode and be in full-sync. To do that you need to provide a false value for the async request, in this case the data will be directly returned. However depending on the volume of data requested, the call may fail, in which case you will need to fallback to async mode to retrieve the full data.",
                  "type" : "boolean"
               },
               "dryRun" : {
                  "description" : "If you want to check the reports validity and the options provided you can provide a dryRun option allowing to check that the reports is possible or not and if it contains errors.",
                  "type" : "boolean"
               },
               "reports" : {
                  "items" : {
                     "oneOf" : [
                        {
                           "properties" : {
                              "query" : {
                                 "description" : "XML document describing the raw Audience Engine query, this is the one you can get from the download of the query engine.",
                                 "type" : "string"
                              }
                           }
                        },
                        {
                           "properties" : {
                              "ebmdbreq" : {
                                 "description" : "Identifier of the saved query that is going to be used to query the Audience Engine",
                                 "externalDocs" : {
                                    "description" : "List of saved queries usable for the Audience Engine",
                                    "url" : "/#tag/Saved-Queries/paths/~1ea~1{site}~1db~1ebmdbreq~1search.json/get"
                                 },
                                 "type" : "integer"
                              }
                           }
                        }
                     ],
                     "properties" : {
                        "base100" : {
                           "description" : "Internal id of the saved query used to use as a base100 population. Rather than working on the global set of population available, by specifying the `base100` you reduce the population to the one validating the query provided and that total is used in place of the global population.",
                           "example" : 1777564993,
                           "externalDocs" : {
                              "description" : "List of saved queries usable for the Audience Engine",
                              "url" : "/#tag/Saved-Queries/paths/~1ea~1{site}~1db~1ebmdbreq~1search.json/get"
                           },
                           "type" : "integer"
                        },
                        "filter" : {
                           "description" : "Internal id of the saved query used for pre-filtering the users, this allows you to query a sub-set of users and then count them for the requested query.",
                           "example" : 1777564993,
                           "externalDocs" : {
                              "description" : "List of saved queries usable for the Audience Engine",
                              "url" : "/#tag/Saved-Queries/paths/~1ea~1{site}~1db~1ebmdbreq~1search.json/get"
                           },
                           "type" : "integer"
                        },
                        "kind" : {
                           "const" : "ebmdb#query",
                           "description" : "Kind of request sent to the Reporting API, here you indicate that you are going to query the (Audience Engine)[#section/Audience-Engine].",
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which the `query` is provided.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        },
                        "withNodesCount" : {
                           "description" : "if set to true, how will get the count for each clauses embeded in a node for the query used. This allows you to have access to a very precise counting mechanism for a given complex query.",
                           "type" : "boolean"
                        }
                     },
                     "required" : [
                        "kind"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "EDWBatchReportingRequest" : {
            "properties" : {
               "async" : {
                  "description" : "By default all the reports are sent as async, in some cases you may want to disable this mode and be in full-sync. To do that you need to provide a false value for the async request, in this case the data will be directly returned. However depending on the volume of data requested, the call may fail, in which case you will need to fallback to async mode to retrieve the full data.",
                  "type" : "boolean"
               },
               "dryRun" : {
                  "description" : "If you want to check the reports validity and the options provided you can provide a dryRun option allowing to check that the reports is possible or not and if it contains errors.",
                  "type" : "boolean"
               },
               "reports" : {
                  "items" : {
                     "properties" : {
                        "kind" : {
                           "const" : "edw#query",
                           "description" : "Kind of request sent to the Reporting API, here you indicate that you are going to query the (Eulerian DataWareHouse)[#section/EDW].",
                           "type" : "string"
                        },
                        "query" : {
                           "description" : "EDW query",
                           "type" : "string"
                        }
                     },
                     "required" : [
                        "kind",
                        "query"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "HQBatchReportingRequest" : {
            "properties" : {
               "async" : {
                  "description" : "By default all the reports are sent as async, in some cases you may want to disable this mode and be in full-sync. To do that you need to provide a false value for the async request, in this case the data will be directly returned. However depending on the volume of data requested, the call may fail, in which case you will need to fallback to async mode to retrieve the full data.",
                  "type" : "boolean"
               },
               "dryRun" : {
                  "description" : "If you want to check the reports validity and the options provided you can provide a dryRun option allowing to check that the reports is possible or not and if it contains errors.",
                  "type" : "boolean"
               },
               "reports" : {
                  "items" : {
                     "properties" : {
                        "kind" : {
                           "const" : "hq#query",
                           "description" : "Kind of request sent to the Reporting API, here you indicate that you are going to query the Human Query Engine.",
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which the `query` is provided.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        },
                        "query" : {
                           "description" : "Text describing the human query that will be used to request data",
                           "example" : "visit hit order website last week",
                           "type" : "string"
                        }
                     },
                     "required" : [
                        "kind",
                        "query"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "RTBatchReportingRequest" : {
            "properties" : {
               "async" : {
                  "description" : "By default all the reports are sent as async, in some cases you may want to disable this mode and be in full-sync. To do that you need to provide a false value for the async request, in this case the data will be directly returned. However depending on the volume of data requested, the call may fail, in which case you will need to fallback to async mode to retrieve the full data.",
                  "type" : "boolean"
               },
               "dryRun" : {
                  "description" : "If you want to check the reports validity and the options provided you can provide a dryRun option allowing to check that the reports is possible or not and if it contains errors.",
                  "type" : "boolean"
               },
               "output" : {
                  "description" : "Optional output options to control how the data is structured in the response.",
                  "properties" : {
                     "typeOptions" : {
                        "properties" : {
                           "combine" : {
                              "description" : "By setting this option to `true` the API will combine multiple reports sent and merge the dimensions & metrics in a single array to simplify display inthird-party solutions.\nThe following restrictions applies and will result in an error during the processing of the request:\n* only for `raw` type of output\n* same `language`\n* same `dateRanges`\n* same `dateScale`\n* only `kind` of reports using the `rt` namespace.",
                              "type" : "boolean"
                           },
                           "dataAtRoot" : {
                              "description" : "If `true`, places report data at the root of the response instead of under a nested key.",
                              "type" : "boolean"
                           },
                           "decimalSeparator" : {
                              "description" : "indicates what decimal separator has to be used to format numbers",
                              "enum" : [
                                 ".",
                                 ","
                              ],
                              "type" : "string"
                           }
                        },
                        "type" : "object"
                     }
                  },
                  "type" : "object"
               },
               "reports" : {
                  "items" : {
                     "properties" : {
                        "customLabels" : {
                           "description" : "If set to `true` indicates that the custom labels & KPI will be used to output the requested dimensions & metrics. \n * metrics : override of the `name` value based on the `field` key\n * dimensions : for `media_key`",
                           "example" : true,
                           "externalDocs" : {
                              "description" : "Customize your KPIs & labels by overriding the standard definitions",
                              "url" : "/#tag/Over-ride-Text"
                           },
                           "type" : "boolean"
                        },
                        "dateRangeSplitPerScale" : {
                           "description" : "By default the data returned and specified through the requested `dateRanges` is aggregated.\n\nIf you want to have data in evolution other the period you need to specify the `dateScale` parameter.\n\nAdditionaly you can specify a `dateScalePer` that will aggregate the data per type of scales.",
                           "type" : "boolean"
                        },
                        "dateRanges" : {
                           "description" : "If you provide multiple entries, the engine will return multiple data values for each period of time. This allows you to do date comparison in a single query for the same dimensions.",
                           "items" : {
                              "description" : "Either a predefined date range or a custom date range",
                              "oneOf" : [
                                 {
                                    "properties" : {
                                       "range" : {
                                          "description" : "Predefined date range. When using LAST_X_DAYS you replace the X by the number of days requested, for example: LAST_5_DAYS will return data for the last five days. Data will always include the full last day, so if you ask `TODAY` and it's 5am you will have data from the full day.",
                                          "enum" : [
                                             "LAST_X_DAYS",
                                             "CURRENT_WEEK",
                                             "LAST_WEEKEND",
                                             "CURRENT_MONTH",
                                             "CURRENT_YEAR",
                                             "YESTERDAY",
                                             "TODAY"
                                          ],
                                          "type" : "string"
                                       }
                                    },
                                    "required" : [
                                       "range"
                                    ],
                                    "type" : "object"
                                 },
                                 {
                                    "properties" : {
                                       "dateFormat" : {
                                          "description" : "Date formatting string. You can position YYYY, MM, DD in any order you see fit that matches the `dateFrom` & `dateTo` values, the separator should also be identical.",
                                          "example" : "YYYY-MM-DD",
                                          "type" : "string"
                                       },
                                       "dateFrom" : {
                                          "description" : "Start date in YYYY-MM-DD format",
                                          "format" : "date",
                                          "type" : "string"
                                       },
                                       "dateTo" : {
                                          "description" : "End date in YYYY-MM-DD format. The data returned will include the full day, so if you ask for the 22nd of April you will have the full day of data.",
                                          "format" : "date",
                                          "type" : "string"
                                       }
                                    },
                                    "required" : [
                                       "dateFrom",
                                       "dateTo",
                                       "dateFormat"
                                    ],
                                    "type" : "object"
                                 },
                                 {
                                    "description" : "You can provide direct EPOCH timestamp, make sure you are working on the same timestamp as the timezone of the site you are requesting data from",
                                    "properties" : {
                                       "from" : {
                                          "description" : "Start date in Epoch format",
                                          "example" : 1617400800,
                                          "type" : "integer"
                                       },
                                       "to" : {
                                          "description" : "End date in Epoch format, here you need to provide the start of the next day for which you want the data. Example: 1618610400 is Sat Apr 17 00:00:00 2021 in Europe/Paris timezone so you will only have the data for Friday but the data for Saturday won't be included in the response.",
                                          "example" : 1618005600,
                                          "type" : "integer"
                                       }
                                    },
                                    "required" : [
                                       "from",
                                       "to"
                                    ],
                                    "type" : "object"
                                 }
                              ]
                           },
                           "maxItems" : 9,
                           "minItems" : 1,
                           "type" : "array"
                        },
                        "dateScale" : {
                           "description" : "The time scale for the data :\n- `H` to have data per hours\n- `D` to have data per days\n- `W` to have data per weeks\n- `M` to have data per month",
                           "enum" : [
                              "H",
                              "D",
                              "W",
                              "M"
                           ],
                           "type" : "string"
                        },
                        "dateScalePer" : {
                           "description" : "Aggregate the period of the `dateScale` by type:\n- `H` to aggregate data for each hour, data will be provided as 24 slots (one per hour).\n- `D` to aggregate data per day of the week, data will be provided as 7 slots (one per day of the week).",
                           "enum" : [
                              "H",
                              "D"
                           ],
                           "type" : "string"
                        },
                        "dimensionFilterClauses" : {
                           "description" : "When submitting a `query` request, you can ask it to return only dimensions that meet specific criteria. To filter dimensions, in the request body, specify one or more `dimensionFilterClauses` and in each `dimensionFilterClause`, define one or more `dimensionFilter`.",
                           "items" : {
                              "properties" : {
                                 "field" : {
                                    "description" : "The field to apply the filter",
                                    "type" : "string"
                                 },
                                 "operator" : {
                                    "description" : "The operator for filtering",
                                    "enum" : [
                                       "EREGEXP",
                                       "CONTAINS",
                                       "STARTS_WITH",
                                       "ENDS_WITH",
                                       "IS",
                                       "IN",
                                       "NOT_CONTAINS"
                                    ],
                                    "type" : "string"
                                 },
                                 "value" : {
                                    "description" : "The value to filter by",
                                    "type" : "string"
                                 }
                              },
                              "type" : "object"
                           },
                           "type" : "array"
                        },
                        "dimensions" : {
                           "description" : "Dimensions describe characteristics of your users, their sessions and actions. The `ope` dimension, for example, describes a characteristic of clicks and indicates the source campaign from which each click originated. In a `query` request, you can specify zero or more dimension objects. However the dimensions must exists for the `kind` of report requested.\n\n**WARNING** : depend on the type of the `path` you will have access to some dimension or not. For example if you request the `path` for `mcCREATIVE` as a creative can be aggregated cross-media if you ask for the `media_key` dimension it will not make sense. However if you aggregate at the campaign or the most granular level, then the `media_key` dimension will make sense as the creative will be one show linked per campaign per media. So please make sure you understand the aggregation level of the `path` before requesting specific dimensions.",
                           "externalDocs" : {
                              "description" : "List of available dimensions",
                              "url" : "/#tag/Batch-Reporting/paths/~1ea~1{site}~1report~1batch~1dimensions.json/get"
                           },
                           "items" : {
                              "properties" : {
                                 "field" : {
                                    "description" : "The field for the dimension, this is the name used by the solution internaly.",
                                    "type" : "string"
                                 },
                                 "name" : {
                                    "description" : "The name of the dimension, this is the human readable name for your usage and that have the meaning you want.",
                                    "type" : "string"
                                 }
                              },
                              "required" : [
                                 "name",
                                 "field"
                              ],
                              "type" : "object"
                           },
                           "minItems" : 1,
                           "type" : "array"
                        },
                        "kind" : {
                           "description" : "The type of report",
                           "enum" : [
                              "rt#action",
                              "rt#actionparam",
                              "rt#actionparamvalue",
                              "rt#blockpromo",
                              "rt#browser",
                              "rt#cgiparam",
                              "rt#cluster",
                              "rt#clustervalue",
                              "rt#creative",
                              "rt#dataconnector",
                              "rt#dataconnectorcm",
                              "rt#devicebrowser",
                              "rt#devicehardware",
                              "rt#deviceplatform",
                              "rt#devicescreeninches",
                              "rt#devicetype",
                              "rt#dewebsite",
                              "rt#ebmdbreq",
                              "rt#event",
                              "rt#flash",
                              "rt#geoloc",
                              "rt#geoloccity",
                              "rt#geolocregion",
                              "rt#headingtree",
                              "rt#headingtreeentry",
                              "rt#headingtreeexit",
                              "rt#iduserparam",
                              "rt#iduserparamvalue",
                              "rt#inadvertising",
                              "rt#inaffiliation",
                              "rt#inaudience",
                              "rt#inbranding",
                              "rt#ingeneric",
                              "rt#inmailing",
                              "rt#inpaidinclusion",
                              "rt#inpartner",
                              "rt#inproduct",
                              "rt#inreferer",
                              "rt#insearchengine",
                              "rt#insegment",
                              "rt#insocial",
                              "rt#insponsoredlink",
                              "rt#insummary",
                              "rt#intrustedfeed",
                              "rt#isengine",
                              "rt#isp",
                              "rt#landing",
                              "rt#lang",
                              "rt#location",
                              "rt#mediaplan",
                              "rt#ope",
                              "rt#opesubmedia",
                              "rt#os",
                              "rt#pagegroup",
                              "rt#pagetree",
                              "rt#pagetreeentry",
                              "rt#pagetreeerror",
                              "rt#pagetreeexit",
                              "rt#productevent",
                              "rt#profilechange",
                              "rt#publisher",
                              "rt#redirectdomainaccess",
                              "rt#rootpublishercluster",
                              "rt#sdepth",
                              "rt#ssize",
                              "rt#sslcipher",
                              "rt#sslversion",
                              "rt#tagmaster",
                              "rt#website"
                           ],
                           "externalDocs" : {
                              "description" : "List of available kind of reports",
                              "url" : "/#tag/Batch-Reporting/paths/~1ea~1{site}~1report~1batch~1kinds.json/get"
                           },
                           "type" : "string"
                        },
                        "language" : {
                           "description" : "Language in which you the dimensions / metrics translated.",
                           "enum" : [
                              "fr",
                              "es",
                              "en"
                           ],
                           "example" : "en",
                           "type" : "string"
                        },
                        "limit" : {
                           "properties" : {
                              "maxEntries" : {
                                 "description" : "maximum number of entries to return in output",
                                 "type" : "integer"
                              },
                              "start" : {
                                 "description" : "offset from which the limit must start",
                                 "type" : "integer"
                              }
                           },
                           "type" : "object"
                        },
                        "metricFilterClauses" : {
                           "description" : "When submitting a `query` request, you can ask it to return only metrics that meet specific criteria. To filter metrics, in the request body, specify one or more `metricFilterClauses` and in each `metricFilterClause`, define one or more `metricFilters`.",
                           "items" : {
                              "properties" : {
                                 "field" : {
                                    "description" : "The name of the `field` in the `metrics` array on which the filter is to be applied.",
                                    "type" : "string"
                                 },
                                 "operator" : {
                                    "description" : "The operator for filtering",
                                    "enum" : [
                                       "EQUALS",
                                       "NOT_EQUALS",
                                       "LOWER_THAN",
                                       "LOWER_THAN_EQUALS",
                                       "GREATER_THAN_EQUALS",
                                       "GREATER_THAN"
                                    ],
                                    "type" : "string"
                                 },
                                 "value" : {
                                    "description" : "The value to filter by",
                                    "type" : "string"
                                 }
                              },
                              "type" : "object"
                           },
                           "type" : "array"
                        },
                        "metrics" : {
                           "description" : "Metrics are quantitative measurements;every request requires at least one `metric` object. They are dependant relative to the `kind` of report, meaning that depending on the datasource you may or may not have specific metrics available.",
                           "externalDocs" : {
                              "description" : "List of available metrics",
                              "url" : "/#tag/Batch-Reporting/paths/~1ea~1{site}~1report~1batch~1metrics.json/get"
                           },
                           "items" : {
                              "properties" : {
                                 "field" : {
                                    "description" : "The field for the metric",
                                    "type" : "string"
                                 },
                                 "name" : {
                                    "description" : "The name of the metric",
                                    "type" : "string"
                                 },
                                 "segment" : {
                                    "description" : "Optional segmentation applied to this metric.",
                                    "maxEntries" : 1,
                                    "properties" : {
                                       "by" : {
                                          "description" : "The segment used that will de-duplicate data per said segment. Make sure that the segmentation requested is applicable to current selected metric.",
                                          "enum" : [
                                             "ordertype",
                                             "orderpayment",
                                             "geolocregion",
                                             "estimatetype",
                                             "shop",
                                             "action",
                                             "pagegroup",
                                             "pageinfo"
                                          ],
                                          "type" : "string"
                                       }
                                    },
                                    "type" : "object"
                                 }
                              },
                              "required" : [
                                 "name",
                                 "field"
                              ],
                              "type" : "object"
                           },
                           "maxItems" : 35,
                           "minItems" : 1,
                           "type" : "array"
                        },
                        "orderBy" : {
                           "properties" : {
                              "direction" : {
                                 "description" : "specify the sort order : ASC for ascending or DESC for decending, through the direction field.",
                                 "enum" : [
                                    "ASC",
                                    "DESC"
                                 ],
                                 "type" : "string"
                              },
                              "field" : {
                                 "description" : "field as specified in the metrics array on which the order will be made",
                                 "type" : "integer"
                              }
                           },
                           "required" : [
                              "field"
                           ],
                           "type" : "object"
                        },
                        "overwriteNameByAlias" : {
                           "description" : "By enabled this option you will enforce override of raw `ope_name` field by the `opealias_alias` linked to it, this will be applied to all alias columns.",
                           "example" : true,
                           "type" : "boolean"
                        },
                        "path" : {
                           "description" : "Optionnal segmentation path. Check `segmentations_batch_reporting` to get the available values. The granularity level from which you want to have the metrics / dimensions. When selecting a datasource through the `kind` you are then available to have different levels of segmentations in said datasource. The `path` allows you to target a specific level of granularity, just like when you navigate through the tree structure in the user interface.",
                           "externalDocs" : {
                              "description" : "List of available segmentations",
                              "url" : "/#tag/Batch-Reporting/paths/~1ea~1{site}~1report~1batch~1segmentations.json/get"
                           },
                           "type" : "string"
                        },
                        "segmentFilterClauses" : {
                           "description" : "When submitting a `query` request, you can ask it to return only segments that meet specific criteria. To filter segments, in the request body, specify one or more `segmentFilterClauses` and in each `segmentFilterClause`, define one or more `segmentFilter`. You can use `segmentFilterClauses` **without** `segments` if you only want to apply specific filtering.",
                           "items" : {
                              "properties" : {
                                 "field" : {
                                    "description" : "The name of the segment on which the data is going to be filtered.",
                                    "enum" : [
                                       "attributionrule",
                                       "device",
                                       "subkey2",
                                       "ordertype_id",
                                       "orderpayment_id",
                                       "estimatetype_id",
                                       "geoloc_id",
                                       "tpcategory_id",
                                       "action_id",
                                       "shop_id",
                                       "pagegroup_id",
                                       "pageinfo_id",
                                       "profile_id",
                                       "ordertype_key",
                                       "orderpayment_key",
                                       "estimatetype_key",
                                       "shop_key",
                                       "ordertypecustom_id",
                                       "estimatetypecustom_id",
                                       "ordertypecustom_name",
                                       "estimatetypecustom_name",
                                       "clustervalue_id",
                                       "clustervalue_name",
                                       "cluster_id",
                                       "cluster_name"
                                    ],
                                    "type" : "string"
                                 },
                                 "operator" : {
                                    "description" : "The operator for filtering",
                                    "enum" : [
                                       "EREGEXP",
                                       "IN",
                                       "NOT_IN"
                                    ],
                                    "type" : "string"
                                 },
                                 "value" : {
                                    "description" : "The value to filter by",
                                    "type" : "string"
                                 }
                              },
                              "type" : "object"
                           },
                           "type" : "array"
                        },
                        "segments" : {
                           "items" : {
                              "properties" : {
                                 "name" : {
                                    "description" : "Descriptive name of the segment",
                                    "type" : "string"
                                 },
                                 "operator" : {
                                    "description" : "The operator to use in the segment filter",
                                    "enum" : [
                                       "IN",
                                       "NOT_IN"
                                    ],
                                    "type" : "string"
                                 },
                                 "type" : {
                                    "description" : "The type of segment",
                                    "enum" : [
                                       "device",
                                       "attributionrule",
                                       "subkey2",
                                       "cluster",
                                       "iduserparam",
                                       "dedimension",
                                       "landing"
                                    ],
                                    "type" : "string"
                                 },
                                 "value" : {
                                    "description" : "The values for the segment",
                                    "items" : {
                                       "type" : "string"
                                    },
                                    "type" : "array"
                                 }
                              },
                              "required" : [
                                 "operator",
                                 "value",
                                 "type"
                              ],
                              "type" : "object"
                           },
                           "type" : "array"
                        }
                     },
                     "required" : [
                        "metrics",
                        "dimensions",
                        "kind",
                        "dateRanges"
                     ],
                     "type" : "object"
                  },
                  "maxItems" : 5,
                  "minItems" : 1,
                  "type" : "array"
               }
            },
            "type" : "object"
         },
         "StandardAPIResponse" : {
            "properties" : {
               "data" : {
                  "properties" : {
                     "fields" : {
                        "items" : {
                           "$ref" : "#/components/schemas/DataField"
                        },
                        "type" : "array"
                     },
                     "rows" : {
                        "items" : {
                           "items" : {
                              "type" : "string"
                           },
                           "type" : "array"
                        },
                        "type" : "array"
                     }
                  },
                  "type" : "object"
               },
               "error" : {
                  "type" : "boolean"
               },
               "error_code" : {
                  "nullable" : true,
                  "type" : "string"
               },
               "error_msg" : {
                  "nullable" : true,
                  "type" : "string"
               },
               "meta" : {
                  "properties" : {
                     "elapsed" : {
                        "type" : "number"
                     },
                     "host" : {
                        "type" : "string"
                     },
                     "pid" : {
                        "type" : "integer"
                     },
                     "reqid" : {
                        "type" : "string"
                     },
                     "start" : {
                        "type" : "integer"
                     },
                     "tm" : {
                        "type" : "number"
                     },
                     "total" : {
                        "type" : "integer"
                     }
                  },
                  "type" : "object"
               }
            },
            "required" : [
               "error",
               "meta",
               "data"
            ],
            "type" : "object"
         }
      },
      "securitySchemes" : {
         "BearerAuth" : {
            "in" : "header",
            "scheme" : "bearer",
            "type" : "http"
         }
      }
   },
   "info" : {
      "description" : "# Introduction\n\nWelcome to the reference for the Eulerian Technologies REST API!\n\nREST is a web-service protocol that lends itself to rapid development by using everyday HTTP and JSON technology.\n\nThe Eulerian Technologies REST API provides a broad set of operations including but not restricted to :\n* Provide access to the reporting service\n* Customize the user-interface\n* Support real-time access to features\n* Send data through the [Eulerian Measurement Protocol](#section/Eulerian-Measurement-Protocol) for a server-server / sdk-less integration\n* Access the [Eulerian DataWareHouse](#section/EDW)\n\n## Access to the API\n\nOur API works with real-time data, just as all our other solutions, you will thus have access to the most recent information & data.\nAs for our solutions, no sampling is applied to the queried data via the API.\n\nOnce activated, this API is available for all the webmaster, collaborator, and publisher accounts that want to interact with it.\nThe access rights defined for each account will be used and applied to the API access parameters. They can be modified or revoked any time.\n\nTo access your API ID and password, please follow the path below: Access path: DCP > Trafficking > modules > API Eulerian.\n\nThe information below is necessary to be able to access the API and launch the queries:\n* `$YOUR_CUSTOMER_DOMAIN` : the name of the domain towards which your API queries are sent, all the queries are encrypted in HTTPS (no HTTP access)\n* `$YOUR_API_AUTHENTIFICATION_TOKEN`: your authentication token, which allows you to be authenticated and to know which are your data access rights. This token is directly linked to your Eulerian user account - if the account is regenerated in the meantime or if it is inactive, the token will be inactive as well.\n* `$DATACENTER` : depending on where you are physically located you must provide **com** for the European platform or **ca** for the Canadian platform.\n\n> All parameters value sent to the API **must be URL encoded**\n\nThe authentification token **must be** provided through the `Authorization: Bearer $YOUR_API_AUTHENTIFICATION_TOKEN` header. Passing it through the API url is now deprecated.\n\n## Language support\n\n By default everything will be managed in english language.\n If you want to get the returned data like fields in another language you need to provide the **ea-lg-po** parameter to the call you send, available values are :\n * en : for English\n * fr : for French\n * es : for Spanish\n\n## Date management\n\nWhen working with dates the following rules will alwayse apply :\n* dates must be formatted following the US format : **MM/DD/YYYY**\n* when providing the `date-to` this means the data returned will includ the full day. If you ask for data ranging from 01/03/2018 to 01/05/2018, the data will cover those 3 days : 01/03/2018 + 01/04/2018 + 01/05/2018\n* when providing the `date-scale` parameter the following values are allowed :\n  * H : hour per hour, only if the period covered is less than 3 consecutive days\n  * D : day per day, only if the period covered is less than 90 consecutive days\n  * W : week per week, only if the period covered is less than 55 consecutive weeks\n  * M : month per month, only if the period covered is less than 15 consecutive months\n\n## Pagination\n\nWhen retrieving information (using `GET` methods), you can provide two optionnal parameters to paginate :\n* `start` : by default is `0` and indicates the number at which the pagination shall start\n* `limit` : by default is `25` and indicates the number of items to be returned for the given call\n\nYou paginate by working on the `total` parameter returned in the calls and modifying `start` & `limit` parameters accordingly.\n\nExample: if the API returns `total=63` and you want to paginate to the third page you'll need to provide `start=40&limit=20`\n\n## Data recency\n\nEulerian API works with **real-time** data, just as all of our other solutions â you will thus have access to the most recent information, which will be also compared to the information in the reporting interface.\n\n> No data sampling is applied to the queried data via the API.\n\n\n## Response object\n\nYou will find below the details of the response format in Reporting according to either the query failed or succeeded. Eulerian's API provides this in the shape of a table.\n\n> The HTTP response code of the server will always be **200**, even when an error occurs â the client must base their treatment of the error messages on the payload content.\n\n> The API will return a **403 HTTP FORBIDDEN** code if your call is not authorized, please check the **error** response for more information about the reason of failure.\n\n### Success\n\nA successful query will always contain the entry **error** marked as **false**. The body of the response will also contain:\n- An entry named **data**, which contains itself 2 elements:\n  - An entry named **fields** including a list of fields describing the data in the entry named **rows** - each entry in the table **fields** contains itself 2 elements:\n    - An entry named **name** being Eulerianâs internal key describing its correspondent at Eulerian's site - this entry must never be modified.\n    - An entry named **header** with a legible description visible in the webâs interface - this entry will generate the APIâs query based on the language used.\n  - An entry named **rows** containing a table with the values according to the index of the entry **fields** described above\n- An entry named **meta** containing the queryâs information\n  - An entry named **total** indicating the total number of responded lines\n  - An entry named **elapsed** indicating the time of treatment of the query in milliseconds\n  - An entry named **pid** indicating the process id handling the request (useful for debug)\n  - An entry named **host** indicating the backend host handling the request (useful for debug)\n  - An entry named **reqid** indicating the unique id for the current request (useful for debug)\n  - An entry named **tm** indicating the epoch time at which the answer has been returned (useful for debug)\n\n```\n {\n  \"error\": false,\n  \"data\": {\n    \"fields\": [\n     {\n       \"name\": \"INTERNAL_KEY_FIELD_0\",\n       \"header\": \"DESCRIPTIVE_TEXT\"\n     },\n     {\n       \"name\": \"INTERNAL_KEY_FIELD_1\",\n       \"header\": \"DESCRIPTIVE_TEXT\"\n     }\n    ],\n    \"rows\": [\n      [ \"VALUE_INDEX_FIELD_0_LINE_0\", \"VALUE_INDEX_FIELD_1_LINE_0\" ],\n      [ \"VALUE_INDEX_FIELD_0_LINE_1\", \"VALUE_INDEX_FIELD_1_LINE_1\" ],\n      [ \"VALUE_INDEX_FIELD_0_LINE_2\", \"VALUE_INDEX_FIELD_1_LINE_2\" ],\n      [ \"VALUE_INDEX_FIELD_0_LINE_3\", \"VALUE_INDEX_FIELD_1_LINE_3\" ],\n    ]\n  },\n  \"meta\": {\n    \"total\": \"TOTAL_NUMVER_OF_LINES\",\n    \"elapsed\": \"TIME_IN_MILLISECONDS\"\n  }\n }\n```\n\n\n### Failure\n\nA query generating an error or not being able to succeed will produce the following table:\n- An entry named **error** marked as **true**\n- An entry named **error_msg** with a text describing the error that has occurred\n\n```\n {\n  \"error\": true,\n  \"error_msg\": \"CONTEXTUAL_ERROR_MESSAGE\"\n }\n```\n\n### Output format modifier\n\nBy default the API will return the data formatted in the **Success** paragraph, however you can modify the output of response with the following parameters.\n\n> Please make sure to check that the output is ok for you, depending on specific method or services, the format modifier may or may not be supported.\n\n#### Key/Value\n\nBy setting `output-as-kv=1` the API will return the results as array of objects rather than an array of arrays.\n\nExample :\n```\n {\n  \"error\": false,\n  \"data\": {\n    \"fields\": [\n     {\n       \"name\": \"INTERNAL_KEY_FIELD_0\",\n       \"header\": \"DESCRIPTIVE_TEXT\"\n     },\n     {\n       \"name\": \"INTERNAL_KEY_FIELD_1\",\n       \"header\": \"DESCRIPTIVE_TEXT\"\n     }\n    ],\n    \"rows\": [\n      [ \"VALUE_INDEX_FIELD_0_LINE_0\", \"VALUE_INDEX_FIELD_1_LINE_0\" ],\n      [ \"VALUE_INDEX_FIELD_0_LINE_1\", \"VALUE_INDEX_FIELD_1_LINE_1\" ],\n      [ \"VALUE_INDEX_FIELD_0_LINE_2\", \"VALUE_INDEX_FIELD_1_LINE_2\" ],\n      [ \"VALUE_INDEX_FIELD_0_LINE_3\", \"VALUE_INDEX_FIELD_1_LINE_3\" ],\n    ]\n  },\n  \"meta\": {\n    \"total\": \"TOTAL_NUMVER_OF_LINES\",\n    \"elapsed\": \"TIME_IN_MILLISECONDS\"\n  }\n }\n```\n\nBecomes :\n\n```\n {\n  \"error\": false,\n  \"data\": {\n    \"fields\": {\n     \"INTERNAL_KEY_FIELD_0\" : \"DESCRIPTIVE_TEXT\",\n     \"INTERNAL_KEY_FIELD_1\" : \"DESCRIPTIVE_TEXT1\"\n    },\n    \"rows\": [\n      [\n        {\n          \"name\" : \"INTERNAL_KEY_FIELD_0\"\n          \"value\" : \"VALUE_INDEX_FIELD_0_LINE_0\"\n        },\n        {\n          \"name\" : \"INTERNAL_KEY_FIELD_1\",\n          \"value\" : \"VALUE_INDEX_FIELD_1_LINE_0\"\n        }\n      ],\n      [\n        {\n          \"name\" : \"INTERNAL_KEY_FIELD_0\"\n          \"value\" : \"VALUE_INDEX_FIELD_0_LINE_1\"\n        },\n        {\n          \"name\" : \"INTERNAL_KEY_FIELD_1\",\n          \"value\" : \"VALUE_INDEX_FIELD_1_LINE_1\"\n        }\n      ],\n      [\n        {\n          \"name\" : \"INTERNAL_KEY_FIELD_0\"\n          \"value\" : \"VALUE_INDEX_FIELD_0_LINE_2\"\n        },\n        {\n          \"name\" : \"INTERNAL_KEY_FIELD_1\",\n          \"value\" : \"VALUE_INDEX_FIELD_1_LINE_2\"\n        }\n      ],\n    ]\n  },\n  \"meta\": {\n    \"total\": \"TOTAL_NUMVER_OF_LINES\",\n    \"elapsed\": \"TIME_IN_MILLISECONDS\"\n  }\n }\n```\n\n#### CSV file\n\nBy setting `output-as-csv=1` the API will return the results as a CSV file.\n\nExample :\n```\n {\n  \"error\": false,\n  \"data\": {\n    \"fields\": [\n     {\n       \"name\": \"INTERNAL_KEY_FIELD_0\",\n       \"header\": \"DESCRIPTIVE_TEXT0\"\n     },\n     {\n       \"name\": \"INTERNAL_KEY_FIELD_1\",\n       \"header\": \"DESCRIPTIVE_TEXT1\"\n     }\n    ],\n    \"rows\": [\n      [ \"VALUE_INDEX_FIELD_0_LINE_0\", \"VALUE_INDEX_FIELD_1_LINE_0\" ],\n      [ \"VALUE_INDEX_FIELD_0_LINE_1\", \"VALUE_INDEX_FIELD_1_LINE_1\" ],\n      [ \"VALUE_INDEX_FIELD_0_LINE_2\", \"VALUE_INDEX_FIELD_1_LINE_2\" ],\n      [ \"VALUE_INDEX_FIELD_0_LINE_3\", \"VALUE_INDEX_FIELD_1_LINE_3\" ],\n    ]\n  },\n  \"meta\": {\n    \"total\": \"TOTAL_NUMVER_OF_LINES\",\n    \"elapsed\": \"TIME_IN_MILLISECONDS\"\n  }\n }\n```\n\nBecomes :\n\n```\nDESCRIPTIVE_TEXT0;DESCRIPTIVE_TEXT1\nVALUE_INDEX_FIELD_0_LINE_0;VALUE_INDEX_FIELD_1_LINE_0\nVALUE_INDEX_FIELD_0_LINE_1;VALUE_INDEX_FIELD_1_LINE_1\nVALUE_INDEX_FIELD_0_LINE_2;VALUE_INDEX_FIELD_1_LINE_2\nVALUE_INDEX_FIELD_0_LINE_3;VALUE_INDEX_FIELD_1_LINE_3\n```\n\n## Asynchronous calls\n\nUsually all the calls are synchronous, so you'll need to wait for the server reply to have all the data available, potentially applying pagination if it applies to the context of your requests.\n\nHowever in specific cases the API will work in a asynchronous way, usually in case the report requested is long to be generated & is treated by the async backend, specifically the `Datamining` family of reports are managed through asynchronous calls.\n\nThe process is to implemented as follow :\n- call the `search.json` service of the report you are asking: `curl -X GET \"https://{customer}.api.eulerian.com/ea/v2/{apitoken}/ea/{site}/report/order/search.json?{params}\"`\n- store the `jobrun_id` provided by the API response\n- call every 5 secs the `status.json?jobrun-id=$JOBRUN_ID` service of the report: `curl -X GET \"https://{customer}.api.eulerian.com/ea/v2/{apitoken}/ea/{site}/report/order/status.json?jobrun-id=$JOBRUN_ID\"`\n- when the status is set to `COMPLETED` you can then query the `download.json?jobrun-id=$JOBRUN_ID` service so that you can have access to the data, please refer to the full documentation of the service to check all available options: `curl -X GET \"https://{customer}.api.eulerian.com/ea/v2/{apitoken}/ea/{site}/report/order/download.json?jobrun-id=$JOBRUN_ID\"`\n\n## International Domains\n\nThe URL will always be the same whatever platform you are connecting to, however depending if you are a Canadian or European customer, the domains will be different :\n- **{domain}.api.eulerian.com** for the **European** platform\n- **{domain}.api.eulerian.ca** for the **Canadian** platform\n\nYour credentials won't work for the wrong platform.\n\n# Analytics\n\nThis Service allows you to access nearly all the reporting capabilities of Eulerian Analytics reports. Given the token you have, the proper authorizations will be applied, ensuring that the access you have through the user-interface is the same as through the API.\n\nYou have two ways of requesting the data :\n- request the [authorization report structure](#tag/Account/paths/~1er~1account~1authtree.json/get) so that you know which reports are available\n- request directly the data through the [Real Time](#tag/Batch-Reporting) service so that you can download the data\n\n# Attribution\n\nThis service allows you to query all data reporting linked to Attribution reports :\n- MTA\n- STA\n- MMM\n- Customer Journey\n\n# EDW\n\n> You need to be eligible to EDW product to have access to this API.\n> This API is specific for EDW requests, meaning that other options may not be applicable, check the documentation for that.\n\n## Access to the API\n\n To be able to access the Eulerian DataWareHouse (EDW) API you need first to authenticate yourself so that you can have a valid `Authorization` token.\n\n This `Authorization` token is **not the same** as the own used for the standard Eulerian API.\n\n To do that you need to request a [EDW session token](#tag/Account%2Fpaths%2F~1er~1account~1get_dw_session_token.json%2Fget).\n\n Once you've got the EDW session token you can issue requests to EDW by providing it through the `Authorization` header, following this example :\n Example:\n\n ``Authorization: Bearer d41d8cd98f00b204e9800998ecf8427e``\n\n## Request\n\n To send a EDW request, you need to build a query following the [EDW syntax](https://eulerian.wiki/doku.php?id=en:edw:start) and send it to the [EDW-Jobs](#tag/EDW-Jobs) endpoint.\n\n## Response\n\n Once the status of the request is **Done** you'll be able to access the data.\n\n The API handles 3 different output formats, that are requsted by setting the **Accept** header to the adequate value when requesting the data :\n  - CSV - **Accept: text/csv**\n  - Parquet - **Accept: application/parquet**\n  - JSON - **Accept: application/json**\n\n The provided file for download in the response will be suffixed with the adequate value.\n\nJSON\n```\n{\n  \"kind\":\"edw#response\",\n  \"status\":\"Done\",\n  \"data\":[\n    \"72328465528913932\",\n    \"https://edw.ea.eulerian.com/edw/results/72328465528913932.json\"\n  ]\n}\n```\n\nCSV\n```\n{\n  \"kind\":\"edw#response\",\n  \"status\":\"Done\",\n  \"data\":[\n    \"72328465528913932\",\n    \"https://edw.ea.eulerian.com/edw/results/72328465528913932.csv\"\n  ]\n}\n```\n\nParquet\n```\n{\n  \"kind\":\"edw#response\",\n  \"status\":\"Done\",\n  \"data\":[\n    \"72328465528913932\",\n    \"https://edw.ea.eulerian.com/edw/results/72328465528913932.parquet\"\n  ]\n}\n```\n\n## Tutorial\n\n For descriptive purpose we are going to see the full query cycle for an EDW request, we assume the following setup:\n  - the Eulerian API token provided throug the user interface is ``pDNfSCGZaXkRglPltlN.gkDGo1ojQZOVnoNug8u2hY``\n  - the customer is ``demo``\n  - the datacenter is ``com`` (Europe)\n  - the website we want to request from is ``demo-fr``\n\n### Fetch the EDW session token\n\nFirst we need to query the Eulerian API to fetch the EDW session token, you **must** specify at least one IP from which the query will be made to the EDW API :\n\n```\ncurl \\\\\n -H 'Authorization: Bearer pDNfSCGZaXkRglPltlN.gkDGo1ojQZOVnoNug8u2hY' \\\\\n -X GET \\\\\n \"https://demo.api.eulerian.com/ea/v2/er/account/get_dw_session_token.json?ip=192.168.1.1%2C127.0.0.1\"\n```\n\nThis query returns the following JSON :\n```\n{\n  \"data\": {\n    \"fields\": [\n      {\n        \"name\": \"session_token\"\n      },\n      {\n        \"name\": \"expires_in\"\n      },\n      {\n        \"name\": \"ip\"\n      },\n      {\n        \"name\": \"websites\"\n      }\n    ],\n    \"rows\": [\n      [\n        \"DEQwyRw987654dfsdfm_8YpRfjMNTih22j30BzNouDn0aEB4Sh9u8.AvI3s5KN8o1nElA1j.z6T.V7vJHRmnQ--\",\n        3600,\n        \"^(127.0.0.1|192.168.1.1)$\",\n        \"demo-fr,demo-en\"\n      ]\n    ]\n  },\n  \"error\": false,\n  \"meta\": {\n    \"elapsed\": \"0.235\",\n    \"host\": \"er11\",\n    \"pid\": 19603,\n    \"reqid\": \"1589729401196031589729401\",\n    \"start\": 0,\n    \"tm\": 1589729401,\n    \"total\": 1\n  }\n}\n```\n\nThe EDW session token you need to store is **DEQwyRw987654dfsdfm_8YpRfjMNTih22j30BzNouDn0aEB4Sh9u8.AvI3s5KN8o1nElA1j.z6T.V7vJHRmnQ--**, this is the one to provide to the ``Authorization`` header. You must handle the expire time on your end.\n\n### Create the query\n\nWe build-up the query we want to send to the EDW, here we want to fetch the list of orders on a given timerange on the demo-fr website :\n\n```\nGET {\n  TIMERANGE { 1571912419 1571936095 }\n  READERS { ea:order@demo-fr AS order }\n  OUTPUTS_ROW( order ) {\n    order.uid,\n    order.timestamp,\n    order.orderref,\n    order.orderstatus.name,\n    order.amount\n  }\n};\n```\n\n We will retrieve one order per row with the following information:\n- order.uid : UID of the user who generated the order\n- order.timestamp : epoch timestamp of the order\n- order.orderref : unique transaction reference of the order\n- order.orderstatus.name : status of the order\n- order.amount : amount of the order\n\n### Send query & retrieve jobId\n\nWe send the query to the EDW API it will be another hostname following the same syntax as the API hostname, once successfull we retrieve the jobId for further processing. We also provide the site we are working in through the READERS configuration :\n<table>\n <tr>\n  <td>API Hostname</td>\n  <td>EDW Hostname</td>\n </tr>\n <tr>\n  <td>https://demo.api.eulerian.com</td>\n  <td>https://edw.ea.eulerian.com</td>\n </tr>\n <tr>\n  <td>https://demo.api.eulerian.ca</td>\n  <td>https://edw.ea.eulerian.ca</td>\n </tr>\n</table>\n\nCreate a JSON file holding the request, for example **request.json** :\n```\n{\n  \"kind\" : \"edw#request\",\n  \"query\" : \"GET { TIMERANGE { 1571912419 1571936095 } READERS { ea:order@demo-fr AS order } OUTPUTS_ROW( order ) { order.uid, order.timestamp, order.orderref, order.orderstatus.name, order.amount } };\"\n}\n```\n\n```\ncurl \\\\\n -H 'Authorization: Bearer DEQwyRw987654dfsdfm_8YpRfjMNTih22j30BzNouDn0aEB4Sh9u8.AvI3s5KN8o1nElA1j.z6T.V7vJHRmnQ--' \\\\\n -H 'Content-Type: application/json' \\\\\n -H 'Content-Encoding: gzip' \\\\\n\n -X POST \\\\\n --data @request.json \\\\\n \"https://edw.ea.eulerian.com/edw/jobs\"\n```\n\nThis query returns the following JSON :\n```\n{\n  \"kind\":\"edw#response\",\n  \"status\":\"Running\",\n  \"data\":[\n    \"72328465528913932\",\n    \"https://edw.ea.eulerian.com/edw/72328465528913932\"\n  ]\n}\n```\n\nOnce the query has been successfully executed the ``status`` is **Done**, you have the following JSON :\n```\n{\n  \"kind\":\"edw#response\",\n  \"status\":\"Done\",\n  \"data\":[\n    \"72328465528913932\",\n    \"https://edw.ea.eulerian.com/edw/results/72328465528913932.json\"\n  ]\n}\n```\n\nThe ``data`` field contains an array :\n- the first element is the ``uuid`` of the request identifying it uniquely in the Eulerian DataWareHouse\n- the second element is the URL of the file containing the results once the ``status`` is **Done**\n\n\n### Check the jobId status\n\nWe check the running status of the query using the jobId from the query request :\n\n```\ncurl \\\\\n -H 'Authorization: Bearer DEQwyRw987654dfsdfm_8YpRfjMNTih22j30BzNouDn0aEB4Sh9u8.AvI3s5KN8o1nElA1j.z6T.V7vJHRmnQ--' \\\\\n -H 'Content-Type: application/json' \\\\\n -H 'Content-Encoding: gzip' \\\\\n -X GET \\\\\n \"https://edw.ea.eulerian.com/edw/jobs/72328465528913932\"\n```\n\nThis query returns the following JSON :\n```\n{\n  \"kind\":\"edw#response\",\n  \"status\":\"Done\",\n  \"data\":[\n    \"72328465528913932\",\n    \"https://edw.ea.eulerian.com/edw/results/72328465528913932.json\"\n  ]\n}\n```\n\n### Download the results\n\nOnce the query is executed, we download the resulting file using the jobId from the query request :\n\n```\ncurl \\\\\n -H 'Authorization: Bearer DEQwyRw987654dfsdfm_8YpRfjMNTih22j30BzNouDn0aEB4Sh9u8.AvI3s5KN8o1nElA1j.z6T.V7vJHRmnQ--' \\\\\n -H 'Content-Type: application/json' \\\\\n -H 'Content-Encoding: gzip' \\\\\n -X GET \\\\\n \"https://edw.ea.eulerian.com/edw/results/72328465528913932.json\"\n```\n\n```\n{\n  \"kind\":\"edw#response\",\n  \"status\":\"Done\",\n  \"headers\": {\n    \"uuid\":\"2450210278718046258\",\n    \"from\":\"24/10/2019 10:20:19\",\n    \"to\":\"24/10/2019 16:54:55\",\n    \"schema\":[\n      [\"UINT64\",\"order.uid\"],\n      [\"INT32\",\"order.timestamp\"],\n      [\"STRING\",\"order.orderref\"],\n      [\"STRING\",\"order.orderstatus.name\"],\n      [\"DOUBLE\",\"order.amount\"]\n    ]\n  },\n  \"rows\": [\n    [\"5504428222077553000\",\"1571927967\",\"1910240339\",\"\",\"424.79\"],\n    [\"3404456228977953000\",\"1471927967\",\"2810240339\",\"\",\"24.7\"],\n    ...\n  ],\n}\n```\n\nThe description of the typing of the data is provided in the first field of each ``headers.schema`` entry.\n\nThe data is provided in the ``rows`` fields as an array or array, so for the first row :\n- ``5504428222077553000`` is the ``order.uid``\n- ``1571927967`` is the ``order.timestamp``\n- ``1910240339`` is the ``order.orderref``\n- empty value for ``order.orderstatus.name``\n- ``424.79`` is the ``order.amount``\n\n# Eulerian Measurement Protocol\n\nThis document describes how to send data to Eulerian Analytics using the Measurement Protocol. (Disclosure: doc heavily inspired by the GA doc).\n\n> **WARNING** When you set-up a server-server data collection, make sure that you do not need other functionnalities from the platform, like client-site cookie-matching tags or client-site TMS functionnalities; as the content returned by the server-server call is not executed at the client-side.\n\n## Protocol Reference\n\n### Overview\n\nThere are 2 parts to send data to Eulerian using the Measurement Protocol :\n- the transport : to where and how you send data\n- the payload : the data you send.\n\n#### URL Endpoint\n\nYou send data using the Measurement Protocol by making HTTP requests to the tracking hostname that has been assigned to your site following this pattern :\n- **GET** : ``https://TRACKING_HOSTNAME/TYPE/WEBSITE_NAME/``\n- body form **POST** : ``https://TRACKING_HOSTNAME/TYPE/WEBSITE_NAME/``\n- JSON **POST** : ``https://TRACKING_HOSTNAME/collectorjson/-/``\n\nSo for example if you have :\n- tracking hostname : dem.eulerian.net\n- type : collector\n- website name : demo-site\n\nThe endpoint will be :\n- **GET** request : ``https://dem.eulerian.net/collector/demo-site/``\n- body form **POST** request : ``https://dem.eulerian.net/collector/demo-site/``\n- JSON **POST** request : ``https://dem.eulerian.net/collectorjson/-/``\n\nAll data should be sent securely with the HTTPS protocol.\n\nYou can send data using either POST or GET requests.\n\nThese calls can be made directly by the client or by the server, please check the parameters to be sent below.\n\nIf you are using a custom library that can be identified as a robot (like cURL or wget), the call won't be registered, so provide a specific user-agent or a standard one to override the default user-agent of your client library so that the call can go through. (eg: ``Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0``)\n\n#### Using POST\n\nWe recommend sending data via POST because it allows for a larger payload. When using POST, issue the following HTTP request:\n\n```\nUser-Agent: user_agent_string\nContent-Type: application/x-www-form-urlencoded\nPOST endpoint_url\npayload_data\n```\n\nWhere :\n- **user_agent_string** - is the [User-Agent](http://en.wikipedia.org/wiki/User_agent#Format) for your client library.\n- **Content-Type** - must be set to **application/x-www-form-urlencoded**\n- **endpoint_url** - is the URL Endpoint as specified above for your particular site.\n- **payload_data** - The BODY of the post request. The body must include exactly 1 URI encoded payload and must be no longer than 8192 bytes.\n\n#### Using POST with JSON payload\n\n\n**WARNING** : for JSON payload the endpoint must target ``/collectorjson/`` endpoint : ``https://TRACKING_HOSTNAME/collectorjson/-/``\n\nThe **url** property **MUST** be provided in the payload.\n\nWe recommend sending data via POST because it allows for a larger payload. When using POST, issue the following HTTP request:\n\n\n```\nUser-Agent: user_agent_string\nX-Forwarded-For: original_client_ip\nContent-Type: application/json; charset=UTF-8\nPOST endpoint_json_url\npayload_json\n```\n\nWhere :\n- **user_agent_string** - is the [User-Agent](http://en.wikipedia.org/wiki/User_agent#Format) for your client library.\n- **Content-Type** - must be set to **application/json; charset=UTF-8**\n- **X-Forwarded-For** - original client IP\n- **endpoint_json_url** - is the URL Endpoint as specified above for your particular site.\n- **payload_json** - The BODY of the JSON post request as described below.\n\nYou can find more information on additionnal parameters in the tables below. \n\nExample payload simple page event :\n```\n{\n \"url\"                  : \"FULL_CURRENT_PAGE_URL\",\n \"rf\"                   : \"FULL_CURRENT_PAGE_REFERER,\n \"ss\"                   : \"SCREEN_RESOLUTION_WIDTHxHEIGHT\",\n \"ereplay-ip\"           : \"FULL_CLIENT_IP\",\n \"ereplay-ua\"           : \"FULL_CLIENT_USER_AGENT\",\n \"ereplay-time\"         : EPOCH_SECONDS_OF_CALL,\n \"ereplay-platform\"     : \"NAME_OF_PLATFORM\",\n \"euidl\"                : \"CROSS_SESSION_ANONYMOUS_ID\",\n \"currency\"             : \"CURRENCY\",\n \"uid\"                  : \"CRM_ID_IF_AVAILABLE\",\n \"eemail\"               : \"SHA25_HASHED_EMAIL_IF_AVAILABLE\"\n}\n```\n\nExample payload on shopping cart add :\n\n```\n{\n \"url\"                  : \"FULL_CURRENT_PAGE_URL\",\n \"rf\"                   : \"FULL_CURRENT_PAGE_REFERER,\n \"ss\"                   : \"SCREEN_RESOLUTION_WIDTHxHEIGHT\",\n \"ereplay-ip\"           : \"FULL_CLIENT_IP\",\n \"ereplay-ua\"           : \"FULL_CLIENT_USER_AGENT\",\n \"ereplay-time\"         : EPOCH_SECONDS_OF_CALL,\n \"ereplay-platform\"     : \"NAME_OF_PLATFORM\",\n \"euidl\"                : \"CROSS_SESSION_ANONYMOUS_ID\",\n \"currency\"             : \"CURRENCY\",\n \"uid\"                  : \"CRM_ID_IF_AVAILABLE\",\n \"eemail\"               : \"SHA25_HASHED_EMAIL_IF_AVAILABLE\"\n \"scart\"                : 1,\n \"products\"             : [\n  {\n    \"ref\"       : \"PRODUCT_REFERENCE\",\n    \"name\"      : \"PRODUCT_NAME\",\n    \"quantity\"  : \"NUMBER_OF_PRODUCTS\",\n    \"amount\"    : \"AMOUNT_OF_PRODUCT\",\n    \"params\"    : {\n      \"PARAM_1\" : \"VALUE_PARAM_1\",\n      \"PARAM_2\" : \"VALUE_PARAM_2\",\n      ....\n    }\n  } ....\n ]\n}\n```\n\nExample payload on transaction  :\n\n```\n{\n \"url\"                  : \"FULL_CURRENT_PAGE_URL\",\n \"rf\"                   : \"FULL_CURRENT_PAGE_REFERER,\n \"ss\"                   : \"SCREEN_RESOLUTION_WIDTHxHEIGHT\",\n \"ereplay-ip\"           : \"FULL_CLIENT_IP\",\n \"ereplay-ua\"           : \"FULL_CLIENT_USER_AGENT\",\n \"ereplay-time\"         : EPOCH_SECONDS_OF_CALL,\n \"ereplay-platform\"     : \"NAME_OF_PLATFORM\",\n \"euidl\"                : \"CROSS_SESSION_ANONYMOUS_ID\",\n \"currency\"             : \"CURRENCY\",\n \"uid\"                  : \"CRM_ID_IF_AVAILABLE\",\n \"eemail\"               : \"SHA25_HASHED_EMAIL_IF_AVAILABLE\"\n \"ref\"                  : \"TRANSACTION_REFERENCE\",\n \"amount\"               : \"TRANSACTION_AMOUNT\",\n \"order\"                : 1,\n \"products\"             : [\n  {\n    \"ref\"       : \"PRODUCT_REFERENCE\",\n    \"name\"      : \"PRODUCT_NAME\",\n    \"quantity\"  : \"NUMBER_OF_PRODUCTS\",\n    \"amount\"    : \"AMOUNT_OF_PRODUCT\",\n    \"params\"    : {\n      \"PARAM_1\" : \"VALUE_PARAM_1\",\n      \"PARAM_2\" : \"VALUE_PARAM_2\",\n      ....\n    }\n  } ....\n ]\n}\n```\n\nExample payload on lead  :\n\n```\n{\n \"url\"                  : \"FULL_CURRENT_PAGE_URL\",\n \"rf\"                   : \"FULL_CURRENT_PAGE_REFERER,\n \"ss\"                   : \"SCREEN_RESOLUTION_WIDTHxHEIGHT\",\n \"ereplay-ip\"           : \"FULL_CLIENT_IP\",\n \"ereplay-ua\"           : \"FULL_CLIENT_USER_AGENT\",\n \"ereplay-time\"         : EPOCH_SECONDS_OF_CALL,\n \"ereplay-platform\"     : \"NAME_OF_PLATFORM\",\n \"euidl\"                : \"CROSS_SESSION_ANONYMOUS_ID\",\n \"currency\"             : \"CURRENCY\",\n \"uid\"                  : \"CRM_ID_IF_AVAILABLE\",\n \"eemail\"               : \"SHA25_HASHED_EMAIL_IF_AVAILABLE\"\n \"ref\"                  : \"LEAD_REFERENCE\",\n \"amount\"               : \"LEAD_AMOUNT\",\n \"estimate\"             : 1,\n \"products\"             : [\n  {\n    \"ref\"       : \"PRODUCT_REFERENCE\",\n    \"name\"      : \"PRODUCT_NAME\",\n    \"quantity\"  : \"NUMBER_OF_PRODUCTS\",\n    \"amount\"    : \"AMOUNT_OF_PRODUCT\",\n    \"params\"    : {\n      \"PARAM_1\" : \"VALUE_PARAM_1\",\n      \"PARAM_2\" : \"VALUE_PARAM_2\",\n      ....\n    }\n  } ....\n ]\n}\n```\n\nExample payload on custom event :\n\n```\n{\n \"url\"                  : \"FULL_CURRENT_PAGE_URL\",\n \"rf\"                   : \"FULL_CURRENT_PAGE_REFERER,\n \"ss\"                   : \"SCREEN_RESOLUTION_WIDTHxHEIGHT\",\n \"ereplay-ip\"           : \"FULL_CLIENT_IP\",\n \"ereplay-ua\"           : \"FULL_CLIENT_USER_AGENT\",\n \"ereplay-time\"         : EPOCH_SECONDS_OF_CALL,\n \"ereplay-platform\"     : \"NAME_OF_PLATFORM\",\n \"euidl\"                : \"CROSS_SESSION_ANONYMOUS_ID\",\n \"currency\"             : \"CURRENCY\",\n \"uid\"                  : \"CRM_ID_IF_AVAILABLE\",\n \"eemail\"               : \"SHA25_HASHED_EMAIL_IF_AVAILABLE\"\n \"enopagedt\"            : 1,\n \"actions\"             : [\n  {\n    \"name\"       : \"EVENT_NAME\",\n    \"params\"    : {\n      \"PARAM_1\" : \"VALUE_PARAM_1\",\n      \"PARAM_2\" : \"VALUE_PARAM_2\",\n      ....\n    }\n  } ....\n ]\n}\n```\n\n#### GET\n\nFor environments where you can not send POST data, you can also send HTTP GET requests to the same end point:\n\n```\nGET /type/website_name?payload_data HTTP/1.1\nHost: tracking_hostname\nUser-Agent: user_agent_string\n```\n\nWhere :\n- **website_name** - the name of your website in the platform\n- **payload_data** - the payload data is sent as URI escaped query parameters\n- **tracking_hostname** - the tracking hostname for your site\n- **user_agent_string** - is the [User-Agent](http://en.wikipedia.org/wiki/User_agent#Format) for your client library.\n\nThe length of the entire encoded URL must be no longer than 8000 Bytes.\n\n#### Cache Busting\n\nIn some environments, like browsers, HTTP GET requests might get cached. When a request gets cached, subsequent requests might be retrieved from the cache, and not sent to Eulerian. To bust through the cache, the Measurement Protocol allows you to provide the CACHE_BUSTER value as the last path value, thus before the payload sent.\n\nYou can also provide a CACHE_BUSTER as a GET parameter through the ``ea-rnd`` parameter.\n\nFor example ``https://dem.eulerian.net/collector/demo-site/CACHE_BUSTER?payload_data`` or ``https://dem.eulerian.net/collector/demo-site/CACHE_BUSTER?payload_data&ea-rnd=123456987``\n\n#### Response Codes\n\nThe Measurement Protocol will return a 2xx status code if the HTTP request was received. The Measurement Protocol does not return an error code if the payload data was malformed, or if the data in the payload was incorrect or was not processed by Eulerian.\n\nIf you do not get a 2xx status code, you should NOT retry the request. Instead, you should stop and correct any errors in your HTTP request.\n\n#### Response Content\n\nThe Measurement Protocol will always return a javascript content with information about the site being targeted and additional code depending on the activation of specific features in the platform.\n\n#### Payload Data\n\nAll data collected by Eulerian using the Measurement Protocol is sent as a payload. The payload resembles a URL query string where each parameter has a key and value, is separated by an = character, and each pair is delimited by an & character. For example: ``key1=val1&key2=val2``\n\nEach payload has rules governing: required values, URI encoding, parameters that can be sent together, and parameter length. Also each parameter has a specific type that requires a particular format. The following sections goes through these rules.\n\nRead the [Parameters Reference](/#section/Eulerian-Measurement-Protocol/Parameters-Reference) for a complete listing of all the parameters you can send using the Measurement Protocol.\n\n#### User Identification\n\nEulerian Analytics allows the customer to use multiple type of ids to maintain identity in the platform and make sure to aggregate data to the proper identity. Therefore you **need** to provide specific identity parameters to **all hits** so that we are able to build up the appropriate profile.\n\n\nThe following parameters can be used :\n<table>\n <tr>\n  <td>Name</td>\n  <td>Parameter</td>\n  <td>Example</td>\n  <td>Description</td>\n </tr>\n <tr>\n  <td>Device Id</td>\n  <td>euidl</td>\n  <td>d213be2e-053f-4bfb-9c32-1bd6efb5687e</td>\n  <td>This pseudonymously identifies a particular user, device, or browser instance. You cannot provide the etuix as a value here.</td>\n </tr>\n <tr>\n  <td>Customer Id</td>\n  <td>uid</td>\n  <td>customer123</td>\n  <td>This is intended to be a known identifier for a user provided by the site owner/library user.</td>\n </tr>\n <tr>\n  <td>ETagId</td>\n  <td>etagid</td>\n  <td>SDj67</td>\n  <td>Id of the tag is declared in the Tag Management interface for debugging purposes</td>\n </tr>\n</table>\n\n#### Replay parameters\n\nThese parameters are used to override specific parameters so that we can insert data with the client values rather than the server ones :\n\n<table>\n <tr>\n  <td>Name</td>\n  <td>Parameter</td>\n  <td>Example</td>\n  <td>Description</td>\n  <td>Default</td>\n </tr>\n <tr>\n  <td>Epoch time of the hit</td>\n  <td>ereplay-time</td>\n  <td>1599210524</td>\n  <td>Epoch time in <b>SECONDS</b> at which the hit has been recorded.</td>\n  <td>The current server time at which the data collection server received the hit.</td>\n </tr>\n <tr>\n  <td>IP of the client</td>\n  <td>ereplay-ip</td>\n  <td>12.236.2.65</td>\n  <td>IP address of the client that generated the hit. If not provided this will have an impact on the geographic resolution.</td>\n  <td>The IP address of the server generating the hit.</td>\n </tr>\n <tr>\n  <td>User-Agent of the client</td>\n  <td>ereplay-ua</td>\n  <td>Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0</td>\n  <td>User-Agent of the client that generated the hit. If not provided this will have an impact on device resolution and device filtering.</td>\n  <td>None</td>\n </tr>\n <tr>\n  <td>Device of the client</td>\n  <td>ereplay-mdevicetype</td>\n  <td>Check your site configuration to see allowed values. Usually it will be values like : Desktop, Phone, Tablet, Tv, AppNativeAndroidphone, AppNativeIOSphone, AppNativeAndroidtablet, AppNativeIOStablet.</td>\n  <td>In case the ``ereplay-ua`` cannot be provided but you still are able to specific what type of device the client is making the call with, you can provide the device value here so that device filtering is available.</td>\n  <td>None</td>\n </tr>\n</table>\n\n#### URL Encoding Values\n\nAll values sent to Eulerian must be both UTF-8 and [URL Encoded](http://en.wikipedia.org/wiki/Percent-encoding). To send the key ``urlp`` with the value ``/my page â¬``, you will first need to make sure this is UTF-8 encoded, then url encoded, resulting in the final string: ``urlp=%2Fmy%20page%20%E2%82%AC``.\n\n#### Consent Management\n\nThis parameters allows us to implement consent management through the Measurement Protocol API. You need to make sure the consent manager selected & configured for the targeted website is the correct one.\n\n<table>\n <tr>\n  <td>Name</td>\n  <td>Parameter</td>\n  <td>Description</td>\n  <td>Example</td>\n </tr>\n <tr>\n  <td>Disable Consent Management</td>\n  <td>enoepm</td>\n  <td>If set to 1 the Consent Management is disabled and data is fully-collected.</td>\n  <td>1</td>\n </tr>\n <tr>\n  <td>TCFv2</td>\n  <td>gdpr_consent</td>\n  <td>Use this parameter to send the full TCFv2 String as defined in the TCF.</td>\n  <td>CPjTJ1aPjTJ1aOhAAAENCZCgAAAAAAAAAAAADOwAQDOgAAAA.YAAAAAAAAAA</td>\n </tr>\n <tr>\n  <td>TCFv2 Custom Vendor</td>\n  <td>gdpr_customvendor</td>\n  <td>Use this parameter to send the full list of non TCFV2 vendors, you create them in our platform and map them to your CMP. The internal ids have to be sent to us.</td>\n  <td>89.426.1526</td>\n </tr>\n <tr>\n  <td>Disallowed Category</td>\n  <td>pmcat</td>\n  <td>Use this parameter to provide the categories that are disabled for the current user. It's the same ids as defined in the user interface for each category.</td>\n  <td>89-5-3</td>\n </tr>\n <tr>\n  <td>Allow all Categories</td>\n  <td>pmcat</td>\n  <td>Use this parameter to allow all categories available for the user. Needs to be set to **-**.</td>\n  <td>-</td>\n </tr>\n</table>\n\n#### Attribution\n\nIf you want to attribute a specific channel when importing a visit / lead / transaction, you can provide as additionnal parameters the standard tracking parameters.\n\nFor example: esc-publisher=Facebook&esc-name=Facebook-Replay&esc-location=form&esc-creative=generic&esc-creativetype=1x1\n\nThis will attribute the social channel campaign to the call.\n\n## Site-Centric\n\n### Site-Centric : Endpoint URL\n\nYou send data using the Measurement Protocol by making HTTP requests to the tracking hostname that has been assigned to your site following this pattern : ``https://TRACKING_HOSTNAME/collector/WEBSITE_NAME/``\n\nSo for example if you have :\n- tracking hostname : dem.eulerian.net\n- type : collector\n- website name : demo-site\n\nThe endpoint will be : ``https://dem.eulerian.net/collector/demo-site/``.\n\n### Site-Centric : Content information\n\nThese parameters can be provided to all calls.\n\n<table>\n <tr>\n  <td>Name</td>\n  <td>Parameter</td>\n  <td>Description</td>\n  <td>Example</td>\n </tr>\n <tr>\n  <td>Document location URL</td>\n  <td>url</td>\n  <td>Use this parameter to send the full URL (document location) of the page on which content resides.</td>\n  <td>https://www.eulerian.com/page/to/awesome/content</td>\n </tr>\n <tr>\n  <td>[SubKey2](#/tag/SubKey2)</td>\n  <td>parameter declared</td>\n  <td>Param has to be declared as a SubKey2 value.</td>\n  <td>shoes</td>\n </tr>\n <tr>\n  <td>Page Name</td>\n  <td>urlp</td>\n  <td>Use this parameter to enforce a specific page name in case the URL is not descriptive enough or not cleaned.</td>\n  <td>/page/to/awesome/content</td>\n </tr>\n <tr>\n  <td>Page Group</td>\n  <td>pagegroup</td>\n  <td>Use this parameter to enforce a specific page group for this page, in case you don't want to configure the page group linking through the user interface.</td>\n  <td>FAQ</td>\n </tr>\n <tr>\n  <td>Context-Flag Key</td>\n  <td>ecf&lt;cflagIndex&gt;k</td>\n  <td>Use this parameter to provide a Context-Flag key, it's mandatory to have the matching Context-Flag Value. You can provide multiple context-flags in the same call by indexing them : ecf0k / ecf1k / ecf2k / etc ...</td>\n  <td>ecf0k=Content</td>\n </tr>\n <tr>\n  <td>Context-Flag Value</td>\n  <td>ecf&lt;cflagIndex&gt;v</td>\n  <td>Use this parameter to provide a Context-Flag value, it's mandatory to have the matching Context-Flag Key. You can provide multiple context-flags in the same call by indexing them : ecf0v / ecf1v / ecf2v / etc ...</td>\n  <td>ecf0v=Sports</td>\n </tr>\n <tr>\n  <td>Product Name</td>\n  <td>prdn&lt;productIndex&gt;</td>\n  <td>Name of the product when the current page is a product page.</td>\n  <td>Shoes123456</td>\n </tr>\n <tr>\n  <td>Product SKU</td>\n  <td>prdr&lt;productIndex&gt;</td>\n  <td>SKU of the product when the current page is a product page.</td>\n  <td>sku-shoes-123456</td>\n </tr>\n <tr>\n  <td>Product Group</td>\n  <td>prdg&lt;productIndex&gt;</td>\n  <td>Group of the product when the current page is a product page.</td>\n  <td>shoes</td>\n </tr>\n <tr>\n  <td>Product Price</td>\n  <td>prda&lt;productIndex&gt;</td>\n  <td>Amount of the product. Used only for scart / estimate / order calls.<b>Mandatory if prdr&lt;productIndex&gt; provided.</b></td>\n  <td>23.65</td>\n </tr>\n <tr>\n  <td>Product Quantity</td>\n  <td>prdq&lt;productIndex&gt;</td>\n  <td>Quantity of product. Used only for scart / estimate / order calls.<b>Mandatory if prdr&lt;productIndex&gt; provided.</b></td>\n  <td>2</td>\n </tr>\n <tr>\n  <td>Product Parameter Key</td>\n  <td>prdp&lt;productIndex&gt;k&lt;productParamIndex&gt;</td>\n  <td>Key of the product parameter for the current product, for example a category.</td>\n  <td>category</td>\n </tr>\n <tr>\n  <td>Product Parameter Value</td>\n  <td>prdp&lt;productIndex&gt;d&lt;productParamIndex&gt;</td>\n  <td>Value of the product parameter for the current product for the current category.</td>\n  <td>shoes</td>\n </tr>\n</table>\n\n### Site-Centric : Trafic source\n\nThese parameters can be provided to all calls.\n\nIf tracking acquisition parameters are already provided in the ``url`` parameter there is no need to duplicate them.\n\n<table>\n <tr>\n  <td>Name</td>\n  <td>Parameter</td>\n  <td>Description</td>\n  <td>Default</td>\n  <td>Example</td>\n </tr>\n <tr>\n  <td>Referer</td>\n  <td>rf</td>\n  <td>Specifies the referral source, mainly used for SEO attribution.</td>\n  <td>None</td>\n  <td>https://www.bing.com/query?kw=eulerian</td>\n </tr>\n</table>\n\n### Site-Centric : System info\n\nThese parameters can be provided to all calls.\n\n<table>\n <tr>\n  <td>Name</td>\n  <td>Parameter</td>\n  <td>Description</td>\n  <td>Default</td>\n  <td>Example</td>\n </tr>\n <tr>\n  <td>Screen resolution</td>\n  <td>ss</td>\n  <td>Specifies the screen resolution.</td>\n  <td>None</td>\n  <td>800x600</td>\n </tr>\n <tr>\n  <td>Screen colors</td>\n  <td>sd</td>\n  <td>Specifies the screen color depth.</td>\n  <td>None</td>\n  <td>24</td>\n </tr>\n</table>\n\n\n### Site-Centric : Transaction\n\nThese parameters are needed when you want to track transaction information, our solution handles the following types of transactions :\n- order : when a sale is generated\n- estimate : when an estimate / quote / lead is generated\n- scart : when a shopping cart is generated\n\nThe calls are mutually exclusive, meaning you cannot have a call containing ``scart=1&estimate=1&order=1`` you'll need to dissociate them to make sure you only have either ``scart=1`` or ``estimate=1`` or ``order=1``.\n\n<table>\n <tr>\n  <td>Name</td>\n  <td>Parameter</td>\n  <td>Description</td>\n  <td>Default</td>\n  <td>Example</td>\n  <td>Mandatory</td>\n </tr>\n <tr>\n  <td>Transaction Id</td>\n  <td>ref</td>\n  <td>A unique identifier for the transaction.</td>\n  <td>None</td>\n  <td>518fbb68-707e-4baa-ab46-de3499786751</td>\n  <td><b>order</b> or <b>estimate</b> calls.</td>\n </tr>\n <tr>\n  <td>Transaction Amount</td>\n  <td>amount</td>\n  <td>Specifies the total revenue associated with the transaction. This value should include any shipping or tax costs.</td>\n  <td>0</td>\n  <td>321.32</td>\n  <td><b>order</b> or <b>estimate</b> calls.</td>\n </tr>\n <tr>\n  <td>Order</td>\n  <td>order</td>\n  <td>Must be set to 1 to specify the transaction is a Order / sales transaction. Exclusive to estimate / scart parameters.</td>\n  <td>0</td>\n  <td>1</td>\n  <td><b>order</b> calls</td>\n </tr>\n <tr>\n  <td>Estimate</td>\n  <td>estimate</td>\n  <td>Must be set to 1 to specify the transaction is an estimate transaction. Exclusive to order / scart parameters.</td>\n  <td>0</td>\n  <td>1</td>\n  <td><b>estimate</b> calls</td>\n </tr>\n <tr>\n  <td>Shopping cart</td>\n  <td>scart</td>\n  <td>Must be set to 1 to specify that a shopping cart is being created. Exclusive to order / estimate parameters.</td>\n  <td>0</td>\n  <td>1</td>\n  <td><b>scart</b> calls</td>\n </tr>\n <tr>\n  <td>Hashed Email</td>\n  <td>eemail</td>\n  <td>This is intended to store the hashed email for a user, the clear email shall never be provided client-site.</td>\n  <td>None</td>\n  <td>6d13c014fedf2dd6100320a05c1a46b7baef084fe2b66eaa3235bea30dfddfe1</td>\n  <td/>\n </tr>\n <tr>\n  <td>Status</td>\n  <td>status</td>\n  <td>Indicate the current status of the transaction.</td>\n  <td>VALID / PENDING / INVALID</td>\n  <td>PENDING</td>\n  <td><b>order</b> or <b>estimate</b> calls.</td>\n </tr>\n <tr>\n  <td>Type of the order / estimate</td>\n  <td>type</td>\n  <td>Describes the type of the order / estimate. Exclusive to order / estimate parameters.</td>\n  <td>None</td>\n  <td>Shoes</td>\n  <td />\n </tr>\n <tr>\n  <td>Payment type</td>\n  <td>payment</td>\n  <td>Describes the payment method used for the order.</td>\n  <td>None</td>\n  <td>Paypal</td>\n  <td />\n </tr>\n <tr>\n  <td>Margin</td>\n  <td>margin</td>\n  <td>Value of the margin for the current order or estimate. Exclusive to order / estimate calls.</td>\n  <td>None</td>\n  <td>89.2</td>\n  <td />\n </tr>\n <tr>\n  <td>[Shop](#tag/Shop)</td>\n  <td>shop</td>\n  <td>Key of the shop, needs to exists before the call is being sent.</td>\n  <td>None</td>\n  <td>0123654</td>\n  <td />\n </tr>\n</table>\n\n### Site-Centric : Apps\n\nAll the above parameters are applicable in the case of App tracking, however a couple of specific parameters are available to ensure proper tracking & attribution management.\n\n#### Site-Centric : Apps Generic\n\n<table>\n <tr>\n  <td>Name</td>\n  <td>Parameter</td>\n  <td>Description</td>\n  <td>Default</td>\n  <td>Example</td>\n </tr>\n <tr>\n  <td>OS version</td>\n  <td>eos</td>\n  <td>Version of the OS on which the app is running, used for device filtering.</td>\n  <td>None</td>\n  <td>Android4.4.4</td>\n </tr>\n <tr>\n  <td>Hardware</td>\n  <td>ehw</td>\n  <td>Name of the hardware on which the app is running, used for device filtering.</td>\n  <td>None</td>\n  <td>LGE Nexus 4</td>\n </tr>\n <tr>\n  <td>App Name</td>\n  <td>ea-appname</td>\n  <td>Name of the application, also known as the bundle id.</td>\n  <td>None</td>\n  <td>com.eulerian.app</td>\n </tr>\n <tr>\n  <td>App Version</td>\n  <td>ea-appversion</td>\n  <td>Version of the application, this allows us to increment the appupgrade KPIs.</td>\n  <td>None</td>\n  <td>3.4</td>\n </tr>\n <tr>\n  <td>App already installed</td>\n  <td>ea-appinstalled</td>\n  <td>Set to 1 if it's a new tracking setup and the app has already been previously installed.</td>\n  <td>None</td>\n  <td>1</td>\n </tr>\n</table>\n\n#### Site-Centric : Apps Android\n\n<table>\n <tr>\n  <td>Name</td>\n  <td>Parameter</td>\n  <td>Description</td>\n  <td>Default</td>\n  <td>Example</td>\n </tr>\n <tr>\n  <td>Android ADID</td>\n  <td>ea-android-adid</td>\n  <td>ADID for attribution & retargeting purposes.</td>\n  <td>None</td>\n  <td>da5d6573-6f9c-4085-8dd0-32f3b773294b</td>\n </tr>\n <tr>\n  <td>Android Referer</td>\n  <td>ea-android-referer</td>\n  <td>UUID used for generating a crossdevice id when a click is made.</td>\n  <td>None</td>\n  <td>dc8e5a5d-d78a-4e84-8bec-5ad8f649c652</td>\n </tr>\n <tr>\n  <td>Android Limited Tracking</td>\n  <td>ea-android-islat</td>\n  <td>Limit the tracking (opt-out) for the provided euidl.</td>\n  <td>None</td>\n  <td>1</td>\n </tr>\n</table>\n\n#### Site-Centric : Apps iOS\n\n<table>\n <tr>\n  <td>Name</td>\n  <td>Parameter</td>\n  <td>Description</td>\n  <td>Default</td>\n  <td>Example</td>\n </tr>\n <tr>\n  <td>iOS IDFA</td>\n  <td>ea-ios-idfa</td>\n  <td>IDFA for attribution & retargeting purposes.</td>\n  <td>None</td>\n  <td>da5d6573-6f9c-4085-8dd0-32f3b773294b</td>\n </tr>\n <tr>\n  <td>iOS IDFV</td>\n  <td>ea-ios-idfv</td>\n  <td>IDFV for attribution.</td>\n  <td>None</td>\n  <td>da5d6573-6f9c-4085-8dd0-32f3b773294b</td>\n </tr>\n <tr>\n  <td>iOS Limited Tracking</td>\n  <td>ea-ios-islat</td>\n  <td>Limit the tracking (opt-out) for the provided euidl.</td>\n  <td>None</td>\n  <td>1</td>\n </tr>\n</table>\n\n#### Site-Centric : Apps with Webview\n\n<table>\n <tr>\n  <td>Name</td>\n  <td>Parameter</td>\n  <td>Description</td>\n  <td>Default</td>\n  <td>Example</td>\n </tr>\n <tr>\n  <td>Visitor ID Bypass</td>\n  <td>ea-euidl-bypass</td>\n  <td>Provide the Native euidl to the webview to maintain consistency between the Native environnement and Webview one, as otherwise this will generate a useless identifier.</td>\n  <td>None</td>\n  <td>da5d6573-6f9c-4085-8dd0-32f3b773294b</td>\n </tr>\n <tr>\n  <td>Device</td>\n  <td>edev</td>\n  <td>Override the device type to make sure the trafic is linked to the proper device, impact device filtering.</td>\n  <td>None</td>\n  <td>AppNativeIOSphone/AppNativeIOStablet/AppNativeAndroidphone/AppNativeAndroidtablet</td>\n </tr>\n</table>\n\n#### Site-Centric : Apps Installation Attribution\n\n<table>\n <tr>\n  <td>Name</td>\n  <td>Parameter</td>\n  <td>Description</td>\n  <td>Default</td>\n  <td>Example</td>\n </tr>\n <tr>\n  <td>Attribution</td>\n  <td>ea-uid-lookup</td>\n  <td>Set to 1 at first launch of the application, that will trigger attribution management.</td>\n  <td>0</td>\n  <td>1</td>\n <tr>\n</table>\n\n## Events\n\n### Events : URL Endpoint\n\nYou send data using the Measurement Protocol by making HTTP requests to the tracking hostname that has been assigned to your site following this pattern : ``https://TRACKING_HOSTNAME/ev/WEBSITE_NAME/``\n\nSo for example if you have :\n- tracking hostname : dem.eulerian.net\n- website name : demo-site\n\nThe endpoint will be : ``https://dem.eulerian.net/ev/demo-site/``.\n\n### Events information\n\nThese parameters have to be provided to all calls.\n\n<table>\n <tr>\n  <td>Name</td>\n  <td>Parameter</td>\n  <td>Mandatory</td>\n  <td>Description</td>\n  <td>Example</td>\n </tr>\n <tr>\n  <td>Event name</td>\n  <td>name</td>\n  <td><b>yes</b></td>\n  <td>Use this parameter to send the name of the Event</td>\n  <td>My Event</td>\n </tr>\n <tr>\n  <td>Event type</td>\n  <td>type</td>\n  <td><b>yes</b></td>\n  <td>Type of the event from this list : <ul><li><b>dl</b> for download</li><li><b>lk</b> for link</li><li><b>bt</b> for a button</li><li><b>ev</b> for a simple event</li></ul></td>\n  <td>dl</td>\n </tr>\n</table>\n\n## Merchandiser - Retail Media\n\n### Merchandiser - Retail Media : URL Endpoint for Impression\n\nThis feature allows you to track the efficiency of merchandiser / retail media campaigns through post-view efficiency.\n\nYou send data using the Measurement Protocol by making HTTP requests to the tracking hostname that has been assigned to your site following this pattern : ``https://TRACKING_HOSTNAME/dyntpview/WEBSITE_NAME/CAMPAIGN_NAME/LOCATION_NAME/WEBSITE_NAME/generic/CACHE_BUSTER?evprdr0=PRODUCT_REF_0&evprdpos0=PRODUCT_POSITION_0&evprdr1=PRODUCT_REF_1&evprdpos1=PRODUCT_POSITION_1&PARAMS``\n\n<table>\n <tr>\n  <td>Name</td>\n  <td>Parameter</td>\n  <td>Mandatory</td>\n  <td>Description</td>\n  <td>Example</td>\n </tr>\n <tr>\n  <td>CAMPAIGN_NAME</td>\n  <td>in path</td>\n  <td><b>yes</b></td>\n  <td>Use this parameter to define the name of the campaign</td>\n  <td>My-Campaign-Unilever</td>\n </tr>\n <tr>\n  <td>LOCATION_NAME</td>\n  <td>in path</td>\n  <td><b>yes</b></td>\n  <td>Use this parameter to defined the name of the placement/location where the campaign is shown</td>\n  <td>homepage</td>\n </tr>\n <tr>\n  <td>PRODUCT_POSITION_X</td>\n  <td>evprdposX</td>\n  <td>no</td>\n  <td>Use this parameter to indicate for index X the position of the product in the list of product shown.</td>\n  <td>0</td>\n </tr>\n <tr>\n  <td>PRODUCT_REF_X</td>\n  <td>evprdrX</td>\n  <td>no</td>\n  <td>Use this parameter to indicate for index X the position of the product SKU in the list of product shown.</td>\n  <td>0</td>\n </tr>\n</table>\n\n### Merchandiser - Retail Media : URL Endpoint for Click\n\nThis feature allows you to track the efficiency of merchandiser / retail media campaigns through post-click efficiency.\n\nYou send data using the Measurement Protocol by making HTTP requests to the tracking hostname that has been assigned to your site following this pattern : ``https://TRACKING_HOSTNAME/dyntpclick/WEBSITE_NAME/CAMPAIGN_NAME/LOCATION_NAME/WEBSITE_NAME/generic/CACHE_BUSTER?ecpos=PRODUCT_POSITION&ecnbr=PRODUCT_TOTAL&ecprdr=PRODUCT_REF&eurl=LANDING_URL``\n\n<table>\n <tr>\n  <td>Name</td>\n  <td>Parameter</td>\n  <td>Mandatory</td>\n  <td>Description</td>\n  <td>Example</td>\n </tr>\n <tr>\n  <td>CAMPAIGN_NAME</td>\n  <td>in path</td>\n  <td><b>yes</b></td>\n  <td>Use this parameter to define the name of the campaign</td>\n  <td>My-Campaign-Unilever</td>\n </tr>\n <tr>\n  <td>LOCATION_NAME</td>\n  <td>in path</td>\n  <td><b>yes</b></td>\n  <td>Use this parameter to defined the name of the placement/location where the campaign is shown</td>\n  <td>homepage</td>\n </tr>\n <tr>\n  <td>PRODUCT_POSITION</td>\n  <td>ecpos</td>\n  <td>no</td>\n  <td>Use this parameter to indicate in a list where this product is show, for ex the 5th product of 10</td>\n  <td>5</td>\n </tr>\n <tr>\n  <td>PRODUCT_TOTAL</td>\n  <td>ecnbr</td>\n  <td>no</td>\n  <td>Use this parameter to indicate the total number of product shown</td>\n  <td>10</td>\n </tr>\n <tr>\n  <td>PRODUCT_REF</td>\n  <td>ecprdr</td>\n  <td>no</td>\n  <td>Use this parameter to indicate the product SKU</td>\n  <td>my-product</td>\n </tr>\n <tr>\n  <td>LANDING_URL</td>\n  <td>eurl</td>\n  <td><b>yes></b></td>\n  <td>Use this parameter to indicate where the user should land after clicking the campaign</td>\n  <td>https://my.site.com/my-product.html</td>\n </tr>\n</table>\n\n# Marketplace\n\n## Access to the API\n\nThe Eulerian Marketplace is a private marketplace allowing you to share segments of users between websites you operate or not, through a DMP Group or not.\n\nThe first mandatory step to start working with the Eulerian Marketplace is to ask your Eulerian representative to create a `DataMember` account for you. This DataMember account will be linked to your customer account in our systems allowing us to provide you with access to the linked websites on which you want to operate.\n\nOnce you are a DataMember you will be issued an authentification token for the API, this token is **NOT THE SAME** as your standard API token, it's specific for the Marketplace and does not replaces the other token. This authentification token is only usable on the Marketplace.\n\n**This product is invite-only for now.**\n\n## Concept\n\nA DataMember can have one or both of these statuses :\n* `provider` meaning that you want to provide & share segments to other DataMember\n* `subscriber` meaning that you want to access available segments provided by DataMember\n\nA DataMember can afterwards authorize websites is has access to, to enter the Marketplace process, through the `DataMember Website` APIs he can :\n* set-up a website he has ownership on to enable it as a **provider** website\n* set-up a website he has ownership on to enable it as a **subscriber** website\n* set-up saved queries of the provider website as a shared query\n* target the shared query to the subscriber website so that the user can then be activated on the subscriber website\n* when the segment is uploaded to the subscriber website it shows up in the `External Segment` service.\n* the shared segment at subscriber website will be updated every 24 hours.\n\n##  Example set-up\n* DataMember `WorldWide Agency` is created\n* `WorldWide Agency` has access to websites `Retail Store` and `Airline North`\n* `WorldWide Agency` wants to share the best customers of `Retail Store` that have bought electronics in the last 90 days with `Airline North`\n* `Retail Store` creates a `SavedQuery` through the user interface and make it shareable through the [Shared Segment](#tag/Shared-Segment/paths/~1ea~1{site}~1db~1ebmdbreqshared~1create.json/post) service.\n* `WorldWide Agency` set-up `Retail Store` as a [DataMember Website](#tag/DataMember-Website/paths/~1marketplace~1datamemberwebsitegrid~1create.json/post) with a provider status.\n* `WorldWide Agency` set-up `Airline North` as a [DataMember Website](#tag/DataMember-Website/paths/~1marketplace~1datamemberwebsitegrid~1create.json/post) with a subscriber status.\n* `WorldWide Agency` enables the sharing of the `SavedQuery` of the best customers of `Retail Store` towards `Airline North` by using the [DataMember Website](#tag/DataMember-Website/paths/~1marketplace~1datamemberwebsitegrid~1make_ebmdbreqshared_available_for_subscriber.json/post)\n* `AirLine North` can see the shared segment in it's interface 24 hours later and can use this segments to activate new connectors or buy this population on other media providers\n* `AriLine North` can use the [External Segment](#tag/External-Segment) service to see which shared segments are available.\n\n# User Interface\n\nThis Service allows you to handle administrative operations linked to the User-Interface, check each sub-services for more information.\n\n\n# ChangeLog\n\n\n## Next\n\n* Additions (2)\n  * [Collect](#section/Collect) > [Adhoc](#tag/Adhoc) > [test](#tag/Adhoc/operation/testAdhoc) : Ability to test features for an adhoc processing if available.\n  * [Collect](#section/Collect) > [EPC](#tag/EPC) > [update_oauth_serviceaccount](#tag/EPC/operation/updateOauthServiceaccountEPC) : Ability to update the oAuth Service Account for a given connector.\n\n* Modifications (2)\n  * [Attribution](#section/Attribution) > [Real-Time-Attribution-Models](#tag/Real-Time-Attribution-Models) : Modification of get_all_name so that it returns the type of the attribution model used in real-time reportings.\n  * [Attribution](#section/Attribution) > [ViewAugmented](#tag/ViewAugmented) > [linked_job](#tag/ViewAugmented/operation/linkedJobViewAugmented) : Show all the possible EPC and indicate if they are linked or not.\n## 19 Feb 2026\n\n* Additions (5)\n  * [Analytics](#section/Analytics) > [Insight](#tag/Insight) : Ability to generate & retrieve any Insights\n  * [Attribution](#section/Attribution) > [Incrementality](#tag/Incrementality) : Ability to generate incrementality tests\n  * [Attribution](#section/Attribution) > [ViewAugmented](#tag/ViewAugmented) : Ability to manage the weighting processing for data-driven models from MMM.\n  * [Collect](#section/Collect) > [Trafficking](#tag/Trafficking) : Ability to generate & retrieve trafficking templates for any supported platforms.\n  * [Collect](#section/Collect) > [UParamInject](#tag/UParamInject) : Manage all types of CRM syncs\n\n* Removed (5)\n  * [Attribution](#section/Attribution) > [MMM-DataSource](#tag/MMM-DataSource) : getall : duplicates search with no added value and no usage.\n  * [Collect](#section/Collect) > [RedirectDomainAllow](#tag/RedirectDomainAllow) : getall : duplicates search with no added value and no usage.\n  * [Collect](#section/Collect) > [ThirdParty-RedirectDomainAllow](#tag/ThirdParty-RedirectDomainAllow) : getall : duplicates search with no added value and no usage.\n  * [DMP](#section/DMP) > [Audience](#tag/Audience) : Duplicates search with no added value and no usage.\n  * [DMP](#section/DMP) > [Segment](#tag/Segment) : getall : duplicates search with no added value and no usage.\n## 08 May 2025\nBatch Report : add new features for Landing page export, management of dimensions on Geoloc Department datasource.\n\nMigrate openAPI Spec v2.0 to OpenAPI Spec v3.1 - update redocly version\n\nOptimized loading of the OpenAPI Spec and visualization\n\nMajor update on examples for the Batch Reporting API in the right panel\n\n* Additions (10)\n  * [Analytics](#section/Analytics) > [Batch-Reporting](#tag/Batch-Reporting) : Support for mcACTION, mcACTIONLABEL1, mcACTIONLABEL2, mcACTIONLABEL3, mcACTIONLABEL4, mcACTIONLABEL5, mcACTIONPARAM, mcACTIONPARAMVALUE paths for querying the goal conversions reports.\n  * [Analytics](#section/Analytics) > [Batch-Reporting](#tag/Batch-Reporting) : Support for mcDEVICEBROWSERVENDOR, mcDEVICEHARDWAREVENDOR, mcDEVICEBROWSERVENDORNAME paths for querying browser reports.\n  * [Analytics](#section/Analytics) > [Batch-Reporting](#tag/Batch-Reporting) : Support for mcOS paths for querying OS reports.\n  * [Analytics](#section/Analytics) > [Batch-Reporting](#tag/Batch-Reporting) : Support for mcPAGELABEL1, mcPAGELABEL2, mcPAGELABEL3, mcPAGELABEL4, mcPAGELABEL5 paths for querying webanalytics page reports through labels.\n  * [Analytics](#section/Analytics) > [DEDimension](#tag/DEDimension) : Ability to search & check for existence for DEDimension\n  * [Collect](#section/Collect) > [Custom-Parameters-Value](#tag/Custom-Parameters-Value) : Ability to manage the custom parameters values\n  * [Collect](#section/Collect) > [SEM-Campaign](#tag/SEM-Campaign) > [create_alias](#tag/SEM-Campaign%2Fpaths%2F~1ea~1{site}~1db~1semcampaign~1create_alias.json%2Fpost) : Ability to create the alias of a SEM campaign\n  * [Collect](#section/Collect) > [SEM-Campaign](#tag/SEM-Campaign) > [get_alias](#tag/SEM-Campaign%2Fpaths%2F~1ea~1{site}~1db~1semcampaign~1get_alias.json%2Fget) : Ability to get the alias of a SEM campaign\n  * [Collect](#section/Collect) > [SEM-Campaign](#tag/SEM-Campaign) > [remove_alias](#tag/SEM-Campaign%2Fpaths%2F~1ea~1{site}~1db~1semcampaign~1remove_alias.json%2Fget) : Ability to remove the alias of a SEM campaign\n  * [User-Interface](#section/User-Interface) > [Account](#tag/Account) : Ability to generate a token for injectiong real-time user-data through a server-side integration.\n\n* Modifications (2)\n  * [Analytics](#section/Analytics) > [Batch-Reporting](#tag/Batch-Reporting) : Modification of the paths and dimensions for country & region report, you now need to use geocountry_fullname / geocountry_name / geocountry_id for countries dimensions and georegion_fullname / georegion_id / georegion_name for regions.\n  * [Analytics](#section/Analytics) > [Reporting:-real-time](#tag/Reporting:-real-time) : The old RealTime API is deprecated in favor of the Batch Reporting API.\n## 05 October 2023\nBatch Report : add new features for Dimension Explorer export, management of dimensions on Geoloc City datasource.\n\n* Additions (1)\n  * [Attribution](#section/Attribution) > [Multi-Touch-Attribution](#tag/Multi-Touch-Attribution) > [generate](#tag/Multi-Touch-Attribution%2Fpaths%2F~1ea~1{site}~1db~1mta~1generate.json%2Fpost) : Ability to generate a MTA report with additional dimension data\n\n* Modifications (3)\n  * [Analytics](#section/Analytics) > [Reporting:-real-time](#tag/Reporting:-real-time) : Action report : path has been changed to include more possibilities for segmentation, please update accordingly.\n  * [Analytics](#section/Analytics) > [Reporting:-real-time](#tag/Reporting:-real-time) : Page report : path has been changed to include more possibilities for segmentation, please update accordingly.\n  * [DMP](#section/DMP) > [Audience-Engine](#tag/Audience-Engine) > count_by_request : Modified name of the count_request to count_by_request to be more consistent throughout the API.\n## 20 November 2022\n\n* Additions (1)\n  * [DMP](#section/DMP) > [Saved-Queries](#tag/Saved-Queries) > [clone_to_audience](#tag/Saved-Queries%2Fpaths%2F~1ea~1{site}~1db~1ebmdbreq~1clone_to_audience.json%2Fpost) : Ability to clone a saved query to create a new audience based on existing rule.\n\n* Modifications (3)\n  * [Analytics](#section/Analytics) > [Datamining:-estimates](#tag/Datamining:-estimates) : Handle CMP parameters on replay\n  * [Analytics](#section/Analytics) > [Report:-predictive](#tag/Report:-predictive) : Handle CMP parameters on replay\n  * [Analytics](#section/Analytics) > [Report:-predictive](#tag/Report:-predictive) : Handle CMP parameters on replay\n## 04 April 2022\n\n* Additions (7)\n  * [Activation](#section/Activation) > [S2S-Estimate](#tag/S2S-Estimate) : Search through the actual content & S2S triggered for estimate.\n  * [Activation](#section/Activation) > [S2S-Order](#tag/S2S-Order) : Search through the actual content & S2S triggered for orders.\n  * [Activation](#section/Activation) > [TMS-Estimate](#tag/TMS-Estimate) : Search through the actual content & TMS triggered for estimate.\n  * [Activation](#section/Activation) > [TMS-Order](#tag/TMS-Order) : Search through the actual content & TMS triggered for orders.\n  * [Collect](#section/Collect) > [Shop](#tag/Shop) : Ability to manage shop list for linking sales & estimates to offline shops.\n  * [Collect](#section/Collect) > [SubKey2](#tag/SubKey2) : Ability to manage subkey2 keys for segmenting all data collected by the platform for a dedicated set of users.\n  * [Collect](#section/Collect) > [Website](#tag/Website) > [hash_apply](#tag/Website%2Fpaths%2F~1ea~1{site}~1db~1website~1hash_apply.json%2Fpost) : Test specific hashing algorithm\n\n* Modifications (1)\n  * [Analytics](#section/Analytics) > [Batch-Reporting](#tag/Batch-Reporting) : For raw output you can now combine multiple reports, check the Combine option.\n",
      "title" : "Eulerian Technologies API",
      "version" : "v20261902",
      "x-logo" : {
         "altText" : "Eulerian Technologies - API",
         "url" : "/internal/logo"
      }
   },
   "openapi" : "3.1.0",
   "paths" : {
      "/ea/{site}/db/action/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new action/goal.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=action&method=create"
            },
            "operationId" : "createGoal",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the action/goal",
                  "example" : "my-test-action-name",
                  "in" : "query",
                  "name" : "action-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "decription of the action/goal.",
                  "example" : "lead form generation",
                  "in" : "query",
                  "name" : "action-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y or N to indicate if we need to store the logs.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "action-actionlog",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y or N to indicate if it is a oneshot action/goal, meaning we do not need an out tag.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "action-oneshot",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y or N to indicate if it is an active action/goal",
                  "example" : "N",
                  "in" : "query",
                  "name" : "action-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y or N to indicate if it is an archive action/goal",
                  "example" : "N",
                  "in" : "query",
                  "name" : "action-archive",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "action_id"
                                 },
                                 {
                                    "name" : "action_name"
                                 },
                                 {
                                    "name" : "action_desc"
                                 },
                                 {
                                    "name" : "action_actionlog"
                                 },
                                 {
                                    "name" : "action_oneshot"
                                 },
                                 {
                                    "name" : "action_active"
                                 },
                                 {
                                    "name" : "action_archive"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "lead form",
                                    "lead generation form",
                                    "N",
                                    "N",
                                    "Y",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new action/goal entry.",
            "tags" : [
               "Goal"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"action-actionlog=Y&action-active=N&action-archive=N&action-desc=lead%20form%20generation&action-name=my-test-action-name&action-oneshot=N\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/action/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'action-actionlog' => 'Y',\n'action-active' => 'N',\n'action-archive' => 'N',\n'action-desc' => 'lead form generation',\n'action-name' => 'my-test-action-name',\n'action-oneshot' => 'N'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/action/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/action/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('action-actionlog=Y&action-active=N&action-archive=N&action-desc=lead%20form%20generation&action-name=my-test-action-name&action-oneshot=N');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'action-actionlog' : 'Y',\n'action-active' : 'N',\n'action-archive' : 'N',\n'action-desc' : 'lead%20form%20generation',\n'action-name' : 'my-test-action-name',\n'action-oneshot' : 'N'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/action/exists.json" : {
         "get" : {
            "description" : "This query will check if a action-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=action&method=exists"
            },
            "operationId" : "existsGoal",
            "parameters" : [
               {
                  "description" : "name of the action to check",
                  "example" : "my-test-action",
                  "in" : "query",
                  "name" : "action-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "action_id"
                                 },
                                 {
                                    "name" : "action_name"
                                 },
                                 {
                                    "name" : "action_desc"
                                 },
                                 {
                                    "name" : "action_actionlog"
                                 },
                                 {
                                    "name" : "action_oneshot"
                                 },
                                 {
                                    "name" : "action_active"
                                 },
                                 {
                                    "name" : "action_archive"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "lead form",
                                    "lead generation form",
                                    "N",
                                    "N",
                                    "Y",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a action-name exists",
            "tags" : [
               "Goal"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/action/exists.json?action-name=my-test-action\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/action/exists.json?action-name=my-test-action',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/action/exists.json?action-name=my-test-action');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'action-name=my-test-action'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/action/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/action/get_tracking_tags.json" : {
         "get" : {
            "description" : "This query allows you to get the tracking tags for the in & out steps of the action/goal you want to track. If you are on a oneshot action/goal you only need the in tag.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=action&method=get_tracking_tags"
            },
            "operationId" : "getTrackingTagsGoal",
            "parameters" : [
               {
                  "description" : "id of the action for which you want the tracking tags",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "action-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "action_id"
                                 },
                                 {
                                    "name" : "tag_actionin"
                                 },
                                 {
                                    "name" : "tag_actionout"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990,
                                    "SmMvxkqDL6S1a502afB.okFNYpmzPW0WrYo74Ug9blbqDcM62v9ejQ--",
                                    "w8QJGwZp6DPssZVf3FnOXy78VDMRjvnSTYuVml8VHlXdhSsB5rmiS4idWv03_f0rvw--"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Return tracking tags in / out for a given action/goal.",
            "tags" : [
               "Goal"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/action/get_tracking_tags.json?action-id=1777564990\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/action/get_tracking_tags.json?action-id=1777564990',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/action/get_tracking_tags.json?action-id=1777564990');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'action-id=1777564990'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/action/get_tracking_tags.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/action/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=action&method=search"
            },
            "operationId" : "searchGoal",
            "parameters" : [
               {
                  "description" : "set to Y or N to filter on actionlog flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "action-actionlog",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "action-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "action-archive",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the action/goal",
                  "example" : "my-test-action",
                  "in" : "query",
                  "name" : "action-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "provide start / exact / contain / end, otherwise it is \"start by\"",
                  "example" : "start",
                  "in" : "query",
                  "name" : "action-name-like",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on oneshot flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "action-oneshot",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "action_id"
                                 },
                                 {
                                    "name" : "action_name"
                                 },
                                 {
                                    "name" : "action_desc"
                                 },
                                 {
                                    "name" : "action_actionlog"
                                 },
                                 {
                                    "name" : "action_oneshot"
                                 },
                                 {
                                    "name" : "action_active"
                                 },
                                 {
                                    "name" : "action_archive"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "lead form",
                                    "lead generation form",
                                    "N",
                                    "N",
                                    "Y",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Goal"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/action/search.json?action-actionlog=Y&action-active=Y&action-archive=Y&action-name=my-test-action&action-name-like=start&action-oneshot=Y&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/action/search.json?action-actionlog=Y&action-active=Y&action-archive=Y&action-name=my-test-action&action-name-like=start&action-oneshot=Y&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/action/search.json?action-actionlog=Y&action-active=Y&action-archive=Y&action-name=my-test-action&action-name-like=start&action-oneshot=Y&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'action-actionlog=Y&action-active=Y&action-archive=Y&action-name=my-test-action&action-name-like=start&action-oneshot=Y&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/action/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/action/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing action/goal.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=action&method=update"
            },
            "operationId" : "updateGoal",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the action for which you want to modify attributes",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "action-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the action/goal",
                  "example" : "my-test-action-name",
                  "in" : "query",
                  "name" : "action-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "decription of the action/goal.",
                  "example" : "lead form generation",
                  "in" : "query",
                  "name" : "action-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y or N to indicate if we need to store the logs.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "action-actionlog",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y or N to indicate if it is a oneshot action/goal, meaning we do not need an out tag.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "action-oneshot",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y or N to indicate if it is an active action/goal.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "action-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y or N to indicate if it is an archive action/goal.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "action-archive",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "action_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchGoal" : {
                        "description" : "Use the value of action_id entry to update a action through action-id parameter.",
                        "operationId" : "searchGoal",
                        "parameters" : {
                           "action-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing action/goal.",
            "tags" : [
               "Goal"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"action-actionlog=Y&action-active=N&action-archive=N&action-desc=lead%20form%20generation&action-id=1777564990&action-name=my-test-action-name&action-oneshot=N\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/action/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'action-actionlog' => 'Y',\n'action-active' => 'N',\n'action-archive' => 'N',\n'action-desc' => 'lead form generation',\n'action-id' => '1777564990',\n'action-name' => 'my-test-action-name',\n'action-oneshot' => 'N'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/action/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/action/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('action-actionlog=Y&action-active=N&action-archive=N&action-desc=lead%20form%20generation&action-id=1777564990&action-name=my-test-action-name&action-oneshot=N');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'action-actionlog' : 'Y',\n'action-active' : 'N',\n'action-archive' : 'N',\n'action-desc' : 'lead%20form%20generation',\n'action-id' : '1777564990',\n'action-name' : 'my-test-action-name',\n'action-oneshot' : 'N'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel1/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new actionlabel1.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel1&method=create"
            },
            "operationId" : "createActionLabel1",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the actionlabel1 template",
                  "example" : "my-test-actionlabel1-name",
                  "in" : "query",
                  "name" : "actionlabel1-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel1_id"
                                 },
                                 {
                                    "name" : "actionlabel1_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new actionlabel1 entry.",
            "tags" : [
               "ActionLabel1"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"actionlabel1-name=my-test-actionlabel1-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel1/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'actionlabel1-name' => 'my-test-actionlabel1-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel1/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel1/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('actionlabel1-name=my-test-actionlabel1-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'actionlabel1-name' : 'my-test-actionlabel1-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel1/exists.json" : {
         "get" : {
            "description" : "This query will check if a actionlabel1-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel1&method=exists"
            },
            "operationId" : "existsActionLabel1",
            "parameters" : [
               {
                  "description" : "name of the actionlabel1 to check",
                  "example" : "my-test-actionlabel1",
                  "in" : "query",
                  "name" : "actionlabel1-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel1_id"
                                 },
                                 {
                                    "name" : "actionlabel1_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a actionlabel1-name exists",
            "tags" : [
               "ActionLabel1"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel1/exists.json?actionlabel1-name=my-test-actionlabel1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel1/exists.json?actionlabel1-name=my-test-actionlabel1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel1/exists.json?actionlabel1-name=my-test-actionlabel1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'actionlabel1-name=my-test-actionlabel1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel1/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel1/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel1&method=search"
            },
            "operationId" : "searchActionLabel1",
            "parameters" : [
               {
                  "description" : "name of the actionlabel1",
                  "example" : "my-test-actionlabel1",
                  "in" : "query",
                  "name" : "actionlabel1-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "actionlabel1-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel1_id"
                                 },
                                 {
                                    "name" : "actionlabel1_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "ActionLabel1"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel1/search.json?actionlabel1-name=my-test-actionlabel1&actionlabel1-name-exact=1&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel1/search.json?actionlabel1-name=my-test-actionlabel1&actionlabel1-name-exact=1&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel1/search.json?actionlabel1-name=my-test-actionlabel1&actionlabel1-name-exact=1&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'actionlabel1-name=my-test-actionlabel1&actionlabel1-name-exact=1&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel1/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel1/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing actionlabel1.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel1&method=update"
            },
            "operationId" : "updateActionLabel1",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the actionlabel1 for which you want to modify attributes",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "actionlabel1-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new actionlabel1 name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "actionlabel1-name",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel1_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchActionLabel1" : {
                        "description" : "Use the value of actionlabel1_id entry to update a actionlabel1 through actionlabel1-id parameter.",
                        "operationId" : "searchActionLabel1",
                        "parameters" : {
                           "actionlabel1-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing actionlabel1.",
            "tags" : [
               "ActionLabel1"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"actionlabel1-id=1777564990&actionlabel1-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel1/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'actionlabel1-id' => '1777564990',\n'actionlabel1-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel1/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel1/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('actionlabel1-id=1777564990&actionlabel1-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'actionlabel1-id' : '1777564990',\n'actionlabel1-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel2/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new actionlabel2.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel2&method=create"
            },
            "operationId" : "createActionLabel2",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the actionlabel2 template",
                  "example" : "my-test-actionlabel2-name",
                  "in" : "query",
                  "name" : "actionlabel2-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel2_id"
                                 },
                                 {
                                    "name" : "actionlabel2_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new actionlabel2 entry.",
            "tags" : [
               "ActionLabel2"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"actionlabel2-name=my-test-actionlabel2-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel2/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'actionlabel2-name' => 'my-test-actionlabel2-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel2/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel2/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('actionlabel2-name=my-test-actionlabel2-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'actionlabel2-name' : 'my-test-actionlabel2-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel2/exists.json" : {
         "get" : {
            "description" : "This query will check if a actionlabel2-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel2&method=exists"
            },
            "operationId" : "existsActionLabel2",
            "parameters" : [
               {
                  "description" : "name of the actionlabel2 to check",
                  "example" : "my-test-actionlabel2",
                  "in" : "query",
                  "name" : "actionlabel2-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel2_id"
                                 },
                                 {
                                    "name" : "actionlabel2_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a actionlabel2-name exists",
            "tags" : [
               "ActionLabel2"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel2/exists.json?actionlabel2-name=my-test-actionlabel2\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel2/exists.json?actionlabel2-name=my-test-actionlabel2',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel2/exists.json?actionlabel2-name=my-test-actionlabel2');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'actionlabel2-name=my-test-actionlabel2'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel2/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel2/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel2&method=search"
            },
            "operationId" : "searchActionLabel2",
            "parameters" : [
               {
                  "description" : "name of the actionlabel2",
                  "example" : "my-test-actionlabel2",
                  "in" : "query",
                  "name" : "actionlabel2-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "actionlabel2-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel2_id"
                                 },
                                 {
                                    "name" : "actionlabel2_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "ActionLabel2"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel2/search.json?actionlabel2-name=my-test-actionlabel2&actionlabel2-name-exact=1&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel2/search.json?actionlabel2-name=my-test-actionlabel2&actionlabel2-name-exact=1&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel2/search.json?actionlabel2-name=my-test-actionlabel2&actionlabel2-name-exact=1&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'actionlabel2-name=my-test-actionlabel2&actionlabel2-name-exact=1&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel2/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel2/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing actionlabel2.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel2&method=update"
            },
            "operationId" : "updateActionLabel2",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the actionlabel2 for which you want to modify attributes",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "actionlabel2-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new actionlabel2 name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "actionlabel2-name",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel2_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchActionLabel2" : {
                        "description" : "Use the value of actionlabel2_id entry to update a actionlabel2 through actionlabel2-id parameter.",
                        "operationId" : "searchActionLabel2",
                        "parameters" : {
                           "actionlabel2-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing actionlabel2.",
            "tags" : [
               "ActionLabel2"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"actionlabel2-id=1777564990&actionlabel2-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel2/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'actionlabel2-id' => '1777564990',\n'actionlabel2-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel2/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel2/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('actionlabel2-id=1777564990&actionlabel2-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'actionlabel2-id' : '1777564990',\n'actionlabel2-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel3/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new actionlabel3.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel3&method=create"
            },
            "operationId" : "createActionLabel3",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the actionlabel3 template",
                  "example" : "my-test-actionlabel3-name",
                  "in" : "query",
                  "name" : "actionlabel3-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel3_id"
                                 },
                                 {
                                    "name" : "actionlabel3_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new actionlabel3 entry.",
            "tags" : [
               "ActionLabel3"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"actionlabel3-name=my-test-actionlabel3-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel3/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'actionlabel3-name' => 'my-test-actionlabel3-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel3/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel3/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('actionlabel3-name=my-test-actionlabel3-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'actionlabel3-name' : 'my-test-actionlabel3-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel3/exists.json" : {
         "get" : {
            "description" : "This query will check if a actionlabel3-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel3&method=exists"
            },
            "operationId" : "existsActionLabel3",
            "parameters" : [
               {
                  "description" : "name of the actionlabel3 to check",
                  "example" : "my-test-actionlabel3",
                  "in" : "query",
                  "name" : "actionlabel3-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel3_id"
                                 },
                                 {
                                    "name" : "actionlabel3_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a actionlabel3-name exists",
            "tags" : [
               "ActionLabel3"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel3/exists.json?actionlabel3-name=my-test-actionlabel3\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel3/exists.json?actionlabel3-name=my-test-actionlabel3',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel3/exists.json?actionlabel3-name=my-test-actionlabel3');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'actionlabel3-name=my-test-actionlabel3'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel3/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel3/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel3&method=search"
            },
            "operationId" : "searchActionLabel3",
            "parameters" : [
               {
                  "description" : "name of the actionlabel3",
                  "example" : "my-test-actionlabel3",
                  "in" : "query",
                  "name" : "actionlabel3-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "actionlabel3-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel3_id"
                                 },
                                 {
                                    "name" : "actionlabel3_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "ActionLabel3"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel3/search.json?actionlabel3-name=my-test-actionlabel3&actionlabel3-name-exact=1&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel3/search.json?actionlabel3-name=my-test-actionlabel3&actionlabel3-name-exact=1&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel3/search.json?actionlabel3-name=my-test-actionlabel3&actionlabel3-name-exact=1&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'actionlabel3-name=my-test-actionlabel3&actionlabel3-name-exact=1&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel3/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel3/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing actionlabel3.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel3&method=update"
            },
            "operationId" : "updateActionLabel3",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the actionlabel3 for which you want to modify attributes",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "actionlabel3-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new actionlabel3 name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "actionlabel3-name",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel3_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchActionLabel3" : {
                        "description" : "Use the value of actionlabel3_id entry to update a actionlabel3 through actionlabel3-id parameter.",
                        "operationId" : "searchActionLabel3",
                        "parameters" : {
                           "actionlabel3-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing actionlabel3.",
            "tags" : [
               "ActionLabel3"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"actionlabel3-id=1777564990&actionlabel3-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel3/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'actionlabel3-id' => '1777564990',\n'actionlabel3-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel3/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel3/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('actionlabel3-id=1777564990&actionlabel3-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'actionlabel3-id' : '1777564990',\n'actionlabel3-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel4/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new actionlabel4.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel4&method=create"
            },
            "operationId" : "createActionLabel4",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the actionlabel4 template",
                  "example" : "my-test-actionlabel4-name",
                  "in" : "query",
                  "name" : "actionlabel4-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel4_id"
                                 },
                                 {
                                    "name" : "actionlabel4_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new actionlabel4 entry.",
            "tags" : [
               "ActionLabel4"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"actionlabel4-name=my-test-actionlabel4-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel4/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'actionlabel4-name' => 'my-test-actionlabel4-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel4/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel4/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('actionlabel4-name=my-test-actionlabel4-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'actionlabel4-name' : 'my-test-actionlabel4-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel4/exists.json" : {
         "get" : {
            "description" : "This query will check if a actionlabel4-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel4&method=exists"
            },
            "operationId" : "existsActionLabel4",
            "parameters" : [
               {
                  "description" : "name of the actionlabel4 to check",
                  "example" : "my-test-actionlabel4",
                  "in" : "query",
                  "name" : "actionlabel4-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel4_id"
                                 },
                                 {
                                    "name" : "actionlabel4_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a actionlabel4-name exists",
            "tags" : [
               "ActionLabel4"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel4/exists.json?actionlabel4-name=my-test-actionlabel4\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel4/exists.json?actionlabel4-name=my-test-actionlabel4',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel4/exists.json?actionlabel4-name=my-test-actionlabel4');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'actionlabel4-name=my-test-actionlabel4'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel4/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel4/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel4&method=search"
            },
            "operationId" : "searchActionLabel4",
            "parameters" : [
               {
                  "description" : "name of the actionlabel4",
                  "example" : "my-test-actionlabel4",
                  "in" : "query",
                  "name" : "actionlabel4-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "actionlabel4-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel4_id"
                                 },
                                 {
                                    "name" : "actionlabel4_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "ActionLabel4"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel4/search.json?actionlabel4-name=my-test-actionlabel4&actionlabel4-name-exact=1&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel4/search.json?actionlabel4-name=my-test-actionlabel4&actionlabel4-name-exact=1&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel4/search.json?actionlabel4-name=my-test-actionlabel4&actionlabel4-name-exact=1&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'actionlabel4-name=my-test-actionlabel4&actionlabel4-name-exact=1&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel4/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel4/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing actionlabel4.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel4&method=update"
            },
            "operationId" : "updateActionLabel4",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the actionlabel4 for which you want to modify attributes",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "actionlabel4-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new actionlabel4 name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "actionlabel4-name",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel4_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchActionLabel4" : {
                        "description" : "Use the value of actionlabel4_id entry to update a actionlabel4 through actionlabel4-id parameter.",
                        "operationId" : "searchActionLabel4",
                        "parameters" : {
                           "actionlabel4-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing actionlabel4.",
            "tags" : [
               "ActionLabel4"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"actionlabel4-id=1777564990&actionlabel4-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel4/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'actionlabel4-id' => '1777564990',\n'actionlabel4-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel4/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel4/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('actionlabel4-id=1777564990&actionlabel4-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'actionlabel4-id' : '1777564990',\n'actionlabel4-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel5/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new actionlabel5.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel5&method=create"
            },
            "operationId" : "createActionLabel5",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the actionlabel5 template",
                  "example" : "my-test-actionlabel5-name",
                  "in" : "query",
                  "name" : "actionlabel5-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel5_id"
                                 },
                                 {
                                    "name" : "actionlabel5_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new actionlabel5 entry.",
            "tags" : [
               "ActionLabel5"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"actionlabel5-name=my-test-actionlabel5-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel5/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'actionlabel5-name' => 'my-test-actionlabel5-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel5/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel5/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('actionlabel5-name=my-test-actionlabel5-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'actionlabel5-name' : 'my-test-actionlabel5-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel5/exists.json" : {
         "get" : {
            "description" : "This query will check if a actionlabel5-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel5&method=exists"
            },
            "operationId" : "existsActionLabel5",
            "parameters" : [
               {
                  "description" : "name of the actionlabel5 to check",
                  "example" : "my-test-actionlabel5",
                  "in" : "query",
                  "name" : "actionlabel5-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel5_id"
                                 },
                                 {
                                    "name" : "actionlabel5_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a actionlabel5-name exists",
            "tags" : [
               "ActionLabel5"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel5/exists.json?actionlabel5-name=my-test-actionlabel5\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel5/exists.json?actionlabel5-name=my-test-actionlabel5',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel5/exists.json?actionlabel5-name=my-test-actionlabel5');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'actionlabel5-name=my-test-actionlabel5'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel5/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel5/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel5&method=search"
            },
            "operationId" : "searchActionLabel5",
            "parameters" : [
               {
                  "description" : "name of the actionlabel5",
                  "example" : "my-test-actionlabel5",
                  "in" : "query",
                  "name" : "actionlabel5-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "actionlabel5-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel5_id"
                                 },
                                 {
                                    "name" : "actionlabel5_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "ActionLabel5"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel5/search.json?actionlabel5-name=my-test-actionlabel5&actionlabel5-name-exact=1&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel5/search.json?actionlabel5-name=my-test-actionlabel5&actionlabel5-name-exact=1&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel5/search.json?actionlabel5-name=my-test-actionlabel5&actionlabel5-name-exact=1&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'actionlabel5-name=my-test-actionlabel5&actionlabel5-name-exact=1&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel5/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/actionlabel5/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing actionlabel5.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=actionlabel5&method=update"
            },
            "operationId" : "updateActionLabel5",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the actionlabel5 for which you want to modify attributes",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "actionlabel5-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new actionlabel5 name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "actionlabel5-name",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlabel5_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchActionLabel5" : {
                        "description" : "Use the value of actionlabel5_id entry to update a actionlabel5 through actionlabel5-id parameter.",
                        "operationId" : "searchActionLabel5",
                        "parameters" : {
                           "actionlabel5-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing actionlabel5.",
            "tags" : [
               "ActionLabel5"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"actionlabel5-id=1777564990&actionlabel5-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel5/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'actionlabel5-id' => '1777564990',\n'actionlabel5-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel5/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/actionlabel5/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('actionlabel5-id=1777564990&actionlabel5-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'actionlabel5-id' : '1777564990',\n'actionlabel5-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/adhoc/get_token.json" : {
         "get" : {
            "description" : "Given a adhoc id, returns the authentification token associated.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=adhoc&method=get_token"
            },
            "operationId" : "getTokenAdhoc",
            "parameters" : [
               {
                  "description" : "the id of the adhoc as provided by the search.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "token"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990,
                                    "My Adhoc",
                                    "DLKFJLKSJDF8765-"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Token for a given adhoc",
            "tags" : [
               "Adhoc"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/get_token.json?job-id=1777564990\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/get_token.json?job-id=1777564990',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/get_token.json?job-id=1777564990');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'job-id=1777564990'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/get_token.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/adhoc/last_status.json" : {
         "get" : {
            "description" : "Given a adhoc check the latest status.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=adhoc&method=last_status"
            },
            "operationId" : "lastStatusAdhoc",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the encrypted token to identify the adhoc to use as a base configuration.",
                  "example" : "DNfSCGZaXkRgrcNJY00KJHJ877634--",
                  "in" : "query",
                  "name" : "token",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 },
                                 {
                                    "name" : "jobrun_status"
                                 },
                                 {
                                    "name" : "jobrun_tm_format"
                                 },
                                 {
                                    "name" : "jobrun_statustm_format"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649901777564990",
                                    "COMPLETED",
                                    "2019-03-04 12:32:56",
                                    "2019-03-04 14:34:01"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Latest status of a adhoc",
            "tags" : [
               "Adhoc"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/last_status.json?token=DNfSCGZaXkRgrcNJY00KJHJ877634--\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/last_status.json?token=DNfSCGZaXkRgrcNJY00KJHJ877634--',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/last_status.json?token=DNfSCGZaXkRgrcNJY00KJHJ877634--');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'token=DNfSCGZaXkRgrcNJY00KJHJ877634--'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/last_status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/adhoc/launch_with_configuration.json" : {
         "post" : {
            "description" : "This API is useful when an identical adhoc needs to be launched but with a specific configuration, like for example if you want to specify a new session timing.\n\nIf you have this configuration : ```<ea type=\"adhoc\"><gridpool name=\"dem\"/><website id=\"29\"/><session>30</session></ea>```\n\nIf you want to modify the session duration to 90 minutes for example you will need to POST the following payload.\n\n```\n{\n \"session\": 90\n}\n```",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=adhoc&method=launch_with_configuration"
            },
            "operationId" : "launchWithConfigurationAdhoc",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the encrypted token to identify the adhoc to use as a base configuration.",
                  "example" : "DNfSCGZaXkRgrcNJY00KJHJ877634--",
                  "in" : "query",
                  "name" : "token",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "content to be POSTed as the new configuration payload (do not use the body name parameter, there is no parameter, POST the configuration directly).",
                  "example" : "{\"session\":90}",
                  "in" : "query",
                  "name" : "body",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649901777564990"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Launch a adhoc with a specific configuration.",
            "tags" : [
               "Adhoc"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"body=%7B%22session%22%3A90%7D&token=DNfSCGZaXkRgrcNJY00KJHJ877634--\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/launch_with_configuration.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'body' => '{\"session\":90}',\n'token' => 'DNfSCGZaXkRgrcNJY00KJHJ877634--'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/launch_with_configuration.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/launch_with_configuration.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('body=%7B%22session%22%3A90%7D&token=DNfSCGZaXkRgrcNJY00KJHJ877634--');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'body' : '%7B%22session%22%3A90%7D',\n'token' : 'DNfSCGZaXkRgrcNJY00KJHJ877634--'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/adhoc/relaunch.json" : {
         "post" : {
            "description" : "This API is useful when a adhoc has failed and you want to re-launch it with the same configuration.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=adhoc&method=relaunch"
            },
            "operationId" : "relaunchAdhoc",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the encrypted token to identify the adhoc to use as a base configuration.",
                  "example" : "DNfSCGZaXkRgrcNJY00KJHJ877634--",
                  "in" : "query",
                  "name" : "token",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649901777564990"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Launch a adhoc.",
            "tags" : [
               "Adhoc"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"token=DNfSCGZaXkRgrcNJY00KJHJ877634--\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/relaunch.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'token' => 'DNfSCGZaXkRgrcNJY00KJHJ877634--'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/relaunch.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/relaunch.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('token=DNfSCGZaXkRgrcNJY00KJHJ877634--');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'token' : 'DNfSCGZaXkRgrcNJY00KJHJ877634--'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/adhoc/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=adhoc&method=search"
            },
            "operationId" : "searchAdhoc",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "job-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the adhoc",
                  "example" : "my-test-adhoc",
                  "in" : "query",
                  "name" : "job-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_datecreate"
                                 },
                                 {
                                    "name" : "websitegrid_id"
                                 },
                                 {
                                    "name" : "job_type"
                                 },
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "account_id"
                                 },
                                 {
                                    "name" : "job_dateupdate"
                                 },
                                 {
                                    "name" : "job_active"
                                 },
                                 {
                                    "name" : "job_params"
                                 },
                                 {
                                    "name" : "job_dw"
                                 },
                                 {
                                    "name" : "job_oneshotrun"
                                 },
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_crontab"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "2",
                                       "adhoc",
                                       "my adhoc",
                                       "115",
                                       "0",
                                       "Y",
                                       "XML describing the adhoc",
                                       "N",
                                       "N",
                                       "286",
                                       "0 9 * * *"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Adhoc"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/search.json?dir=DESC&job-active=Y&job-name=my-test-adhoc&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/search.json?dir=DESC&job-active=Y&job-name=my-test-adhoc&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/search.json?dir=DESC&job-active=Y&job-name=my-test-adhoc&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&job-active=Y&job-name=my-test-adhoc&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/adhoc/status.json" : {
         "get" : {
            "description" : "Given a adhoc, return the history of generation.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=adhoc&method=status"
            },
            "operationId" : "statusAdhoc",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "the encrypted token to identify the adhoc to use as a base configuration.",
                  "example" : "DNfSCGZaXkRgrcNJY00KJHJ877634--",
                  "in" : "query",
                  "name" : "token",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 },
                                 {
                                    "name" : "jobrun_status"
                                 },
                                 {
                                    "name" : "jobrun_tm_format"
                                 },
                                 {
                                    "name" : "jobrun_statustm_format"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649901777564990",
                                    "COMPLETED",
                                    "2019-03-04 12:32:56",
                                    "2019-03-04 14:34:01"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "List status of a adhoc",
            "tags" : [
               "Adhoc"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/status.json?dir=DESC&limit=25&start=0&token=DNfSCGZaXkRgrcNJY00KJHJ877634--\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/status.json?dir=DESC&limit=25&start=0&token=DNfSCGZaXkRgrcNJY00KJHJ877634--',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/status.json?dir=DESC&limit=25&start=0&token=DNfSCGZaXkRgrcNJY00KJHJ877634--');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&start=0&token=DNfSCGZaXkRgrcNJY00KJHJ877634--'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/adhoc/test.json" : {
         "post" : {
            "description" : "Run a series of test if supported by the adhoc module, all provided parameters will be forwarded to the test function.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=adhoc&method=test"
            },
            "operationId" : "testAdhoc",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the adhoc for which you want to modify attributes",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the action to be tested, depending on the module we can have multiple type of tests.",
                  "example" : "parseutm",
                  "in" : "query",
                  "name" : "test-action",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "test_result"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990,
                                    "{ \"test1\" : \"Y\" }"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Test an adhoc",
            "tags" : [
               "Adhoc"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"job-id=1777564990&test-action=parseutm\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/test.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'job-id' => '1777564990',\n'test-action' => 'parseutm'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/test.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/test.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('job-id=1777564990&test-action=parseutm');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'job-id' : '1777564990',\n'test-action' : 'parseutm'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/adhoc/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing adhoc.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=adhoc&method=update"
            },
            "operationId" : "updateAdhoc",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the adhoc for which you want to modify attributes",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new adhoc name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "job-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the active attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "job-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchAdhoc" : {
                        "description" : "Use the value of adhoc_id entry to update a adhoc through adhoc-id parameter.",
                        "operationId" : "searchAdhoc",
                        "parameters" : {
                           "adhoc-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update a adhoc",
            "tags" : [
               "Adhoc"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"job-active=Y&job-id=1777564990&job-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'job-active' => 'Y',\n'job-id' => '1777564990',\n'job-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/adhoc/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('job-active=Y&job-id=1777564990&job-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'job-active' : 'Y',\n'job-id' : '1777564990',\n'job-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/autoreport/exists.json" : {
         "get" : {
            "description" : "This query will check if a autoreport name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=autoreport&method=exists"
            },
            "operationId" : "existsAutoReport",
            "parameters" : [
               {
                  "description" : "name of the autoreport to check",
                  "example" : "my-test-autoreport",
                  "in" : "query",
                  "name" : "job-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_datecreate"
                                 },
                                 {
                                    "name" : "websitegrid_id"
                                 },
                                 {
                                    "name" : "job_type"
                                 },
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "account_id"
                                 },
                                 {
                                    "name" : "job_dateupdate"
                                 },
                                 {
                                    "name" : "job_active"
                                 },
                                 {
                                    "name" : "job_params"
                                 },
                                 {
                                    "name" : "job_dw"
                                 },
                                 {
                                    "name" : "job_oneshotrun"
                                 },
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_crontab"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "2",
                                       "autoreport",
                                       "my autoreport",
                                       "115",
                                       "0",
                                       "Y",
                                       "XML describing the autoreport",
                                       "N",
                                       "N",
                                       "286",
                                       "0 9 * * *"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a autoreport exists",
            "tags" : [
               "AutoReport"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/exists.json?job-name=my-test-autoreport\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/exists.json?job-name=my-test-autoreport',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/exists.json?job-name=my-test-autoreport');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'job-name=my-test-autoreport'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/autoreport/last_status.json" : {
         "get" : {
            "description" : "Given an autoreport check the latest status.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=autoreport&method=last_status"
            },
            "operationId" : "lastStatusAutoReport",
            "parameters" : [
               {
                  "description" : "the id of the autoreport as provided by the search.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 },
                                 {
                                    "name" : "jobrun_status"
                                 },
                                 {
                                    "name" : "jobrun_tm_format"
                                 },
                                 {
                                    "name" : "jobrun_statustm_format"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649901777564990",
                                    "COMPLETED",
                                    "2019-03-04 12:32:56",
                                    "2019-03-04 14:34:01"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Latest status of an autoreport",
            "tags" : [
               "AutoReport"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/last_status.json?job-id=1777564990\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/last_status.json?job-id=1777564990',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/last_status.json?job-id=1777564990');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'job-id=1777564990'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/last_status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/autoreport/launch_with_configuration.json" : {
         "post" : {
            "description" : "This API is useful when an identical autoreport needs to be launched but with a specific configuration, like for example if you want to specify specific dates.\n\nA configuration object will look like this : \n\n```\n{\n  \"params\" : {\n    \"ea-lg\" : \"en\",\n    \"force-date\" : {\n      \"date-from\" : \"12/01/2020\",\n      \"date-to\" : \"12/24/2020\"\n    },\n    \"publish\" : {\n      \"type\" : \"email\",\n      \"action\" : \"append\",\n      \"emails\" : [ \"myemail@aol.com\" ]\n    }\n  }\n}\n```\n``force-date`` and/or ``publish`` configuration are mandatory.\n``publish.action`` can be :\n- append : the ``emails`` provided will be appended to the list.\n- replace: existing emails will be replaced by the one provided in ``emails``",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=autoreport&method=launch_with_configuration"
            },
            "operationId" : "launchWithConfigurationAutoReport",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the id of the autoreport as provided by the search.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649901777564990"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Launch an autoreport with a specific configuration.",
            "tags" : [
               "AutoReport"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"job-id=1777564990\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/launch_with_configuration.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'job-id' => '1777564990'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/launch_with_configuration.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/launch_with_configuration.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('job-id=1777564990');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'job-id' : '1777564990'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/autoreport/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=autoreport&method=search"
            },
            "operationId" : "searchAutoReport",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "job-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the autoreport",
                  "example" : "my-test-autoreport",
                  "in" : "query",
                  "name" : "job-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_datecreate"
                                 },
                                 {
                                    "name" : "websitegrid_id"
                                 },
                                 {
                                    "name" : "job_type"
                                 },
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "account_id"
                                 },
                                 {
                                    "name" : "job_dateupdate"
                                 },
                                 {
                                    "name" : "job_active"
                                 },
                                 {
                                    "name" : "job_params"
                                 },
                                 {
                                    "name" : "job_dw"
                                 },
                                 {
                                    "name" : "job_oneshotrun"
                                 },
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_crontab"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "2",
                                       "autoreport",
                                       "my autoreport",
                                       "115",
                                       "0",
                                       "Y",
                                       "XML describing the autoreport",
                                       "N",
                                       "N",
                                       "286",
                                       "0 9 * * *"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "AutoReport"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/search.json?dir=DESC&job-active=Y&job-name=my-test-autoreport&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/search.json?dir=DESC&job-active=Y&job-name=my-test-autoreport&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/search.json?dir=DESC&job-active=Y&job-name=my-test-autoreport&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&job-active=Y&job-name=my-test-autoreport&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/autoreport/status.json" : {
         "get" : {
            "description" : "Given an autoreport, return the history of generation.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=autoreport&method=status"
            },
            "operationId" : "statusAutoReport",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the id of the autoreport as provided by the search.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the execution process for a specific autoreport. Useful to check the execution after a relaunch.",
                  "example" : "17775649901777564990",
                  "in" : "query",
                  "name" : "jobrun_id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 },
                                 {
                                    "name" : "jobrun_status"
                                 },
                                 {
                                    "name" : "jobrun_tm_format"
                                 },
                                 {
                                    "name" : "jobrun_statustm_format"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649901777564990",
                                    "COMPLETED",
                                    "2019-03-04 12:32:56",
                                    "2019-03-04 14:34:01"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "List status of an autoreport",
            "tags" : [
               "AutoReport"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/status.json?dir=DESC&job-id=1777564990&jobrun_id=17775649901777564990&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/status.json?dir=DESC&job-id=1777564990&jobrun_id=17775649901777564990&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/status.json?dir=DESC&job-id=1777564990&jobrun_id=17775649901777564990&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&job-id=1777564990&jobrun_id=17775649901777564990&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/autoreport/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing autoreport.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=autoreport&method=update"
            },
            "operationId" : "updateAutoReport",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the autoreport for which you want to modify attributes",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new autoreport name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "job-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the active attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "job-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchAutoReport" : {
                        "description" : "Use the value of autoreport_id entry to update a autoreport through autoreport-id parameter.",
                        "operationId" : "searchAutoReport",
                        "parameters" : {
                           "autoreport-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an autoreport",
            "tags" : [
               "AutoReport"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"job-active=Y&job-id=1777564990&job-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'job-active' => 'Y',\n'job-id' => '1777564990',\n'job-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/autoreport/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('job-active=Y&job-id=1777564990&job-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'job-active' : 'Y',\n'job-id' : '1777564990',\n'job-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cgiparam/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new custom parameter.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cgiparam&method=create"
            },
            "operationId" : "createCustomParameters",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the custom parameter",
                  "example" : "my-test-cgiparam-name",
                  "in" : "query",
                  "name" : "cgiparam-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate the description of the custom parameter",
                  "example" : "my desc",
                  "in" : "query",
                  "name" : "cgiparam-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "user",
                  "description" : "indicate the type of the custom parameter",
                  "example" : "user",
                  "in" : "query",
                  "name" : "cgiparam-type",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "user",
                        "none"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cgiparam_id"
                                 },
                                 {
                                    "name" : "cgiparam_name"
                                 },
                                 {
                                    "name" : "cgiparam_desc"
                                 },
                                 {
                                    "name" : "cgiparam_type"
                                 },
                                 {
                                    "name" : "cgiparam_hashdelay"
                                 },
                                 {
                                    "name" : "cgiparam_hashalgo"
                                 },
                                 {
                                    "name" : "cgiparam_visible"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "visitor",
                                    "",
                                    "user",
                                    "",
                                    "",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new custom parameter.",
            "tags" : [
               "Custom Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"cgiparam-desc=my%20desc&cgiparam-name=my-test-cgiparam-name&cgiparam-type=user\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparam/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'cgiparam-desc' => 'my desc',\n'cgiparam-name' => 'my-test-cgiparam-name',\n'cgiparam-type' => 'user'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparam/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparam/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('cgiparam-desc=my%20desc&cgiparam-name=my-test-cgiparam-name&cgiparam-type=user');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'cgiparam-desc' : 'my%20desc',\n'cgiparam-name' : 'my-test-cgiparam-name',\n'cgiparam-type' : 'user'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cgiparam/exists.json" : {
         "get" : {
            "description" : "This query will check if a cgiparam-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cgiparam&method=exists"
            },
            "operationId" : "existsCustomParameters",
            "parameters" : [
               {
                  "description" : "name of the custom parameter to check",
                  "example" : "my-test-cgiparam",
                  "in" : "query",
                  "name" : "cgiparam-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cgiparam_id"
                                 },
                                 {
                                    "name" : "cgiparam_name"
                                 },
                                 {
                                    "name" : "cgiparam_desc"
                                 },
                                 {
                                    "name" : "cgiparam_type"
                                 },
                                 {
                                    "name" : "cgiparam_hashdelay"
                                 },
                                 {
                                    "name" : "cgiparam_hashalgo"
                                 },
                                 {
                                    "name" : "cgiparam_visible"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "visitor",
                                    "",
                                    "user",
                                    "",
                                    "",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a custom parameter exists",
            "tags" : [
               "Custom Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparam/exists.json?cgiparam-name=my-test-cgiparam\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparam/exists.json?cgiparam-name=my-test-cgiparam',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparam/exists.json?cgiparam-name=my-test-cgiparam');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'cgiparam-name=my-test-cgiparam'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparam/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cgiparam/lookup.json" : {
         "get" : {
            "description" : "This query will check in the system where the given custom parameter is used.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cgiparam&method=lookup"
            },
            "operationId" : "lookupCustomParameters",
            "parameters" : [
               {
                  "description" : "id of the custom parameter for which you want to do the lookup.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "cgiparam-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate to limit the search to a specific class of parameters, you can provide multiple classes by using commas. eg: dataconnector,coldebmdb",
                  "example" : "dataconnector",
                  "in" : "query",
                  "name" : "class",
                  "schema" : {
                     "enum" : [
                        "ergmacrotemplate",
                        "opedataparam",
                        "tpcreativeengine",
                        "collectorconfigmthandler",
                        "dataconnector",
                        "clustervalue",
                        "denysitecentric",
                        "clickdispatcher",
                        "view",
                        "tpcampaignelttargeting",
                        "campaignelttargeting",
                        "ebmdb",
                        "coldebmdb"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "default" : "param,rule",
                  "description" : "indicate to limit the search to a specific context, you can provide multiple context by using commas. eg: param,rule",
                  "example" : "param",
                  "in" : "query",
                  "name" : "context",
                  "schema" : {
                     "enum" : [
                        "param",
                        "rule"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "context"
                                 },
                                 {
                                    "name" : "id"
                                 },
                                 {
                                    "name" : "name"
                                 },
                                 {
                                    "name" : "class"
                                 },
                                 {
                                    "name" : "type"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "param",
                                    "6931",
                                    "TV_DEPAT_IDF",
                                    "coldebmdb",
                                    "param"
                                 ],
                                 [
                                    "rule",
                                    "481",
                                    "TV",
                                    "ebmdbreq",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Lookup the usage of the custom parameter.",
            "tags" : [
               "Custom Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparam/lookup.json?cgiparam-id=1777564990&class=dataconnector&context=param\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparam/lookup.json?cgiparam-id=1777564990&class=dataconnector&context=param',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparam/lookup.json?cgiparam-id=1777564990&class=dataconnector&context=param');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'cgiparam-id=1777564990&class=dataconnector&context=param'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparam/lookup.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cgiparam/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cgiparam&method=search"
            },
            "operationId" : "searchCustomParameters",
            "parameters" : [
               {
                  "description" : "name of the custom parameter",
                  "example" : "my-test-cgiparam",
                  "in" : "query",
                  "name" : "cgiparam-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "cgiparam-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on visible flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cgiparam-visible",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cgiparam_id"
                                 },
                                 {
                                    "name" : "cgiparam_name"
                                 },
                                 {
                                    "name" : "cgiparam_desc"
                                 },
                                 {
                                    "name" : "cgiparam_type"
                                 },
                                 {
                                    "name" : "cgiparam_hashdelay"
                                 },
                                 {
                                    "name" : "cgiparam_hashalgo"
                                 },
                                 {
                                    "name" : "cgiparam_visible"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "visitor",
                                    "",
                                    "user",
                                    "",
                                    "",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Custom Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparam/search.json?cgiparam-name=my-test-cgiparam&cgiparam-name-exact=1&cgiparam-visible=Y&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparam/search.json?cgiparam-name=my-test-cgiparam&cgiparam-name-exact=1&cgiparam-visible=Y&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparam/search.json?cgiparam-name=my-test-cgiparam&cgiparam-name-exact=1&cgiparam-visible=Y&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'cgiparam-name=my-test-cgiparam&cgiparam-name-exact=1&cgiparam-visible=Y&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparam/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cgiparam/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing custom parameter.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cgiparam&method=update"
            },
            "operationId" : "updateCustomParameters",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the custom parameter for which you want to modify attributes",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "cgiparam-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new custom parameter name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "cgiparam-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new description",
                  "example" : "my desc",
                  "in" : "query",
                  "name" : "cgiparam-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the visible attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cgiparam-visible",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cgiparam_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchCustomParameters" : {
                        "description" : "Use the value of cgiparam_id entry to update a cgiparam through cgiparam-id parameter.",
                        "operationId" : "searchCustomParameters",
                        "parameters" : {
                           "cgiparam-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update a custom parameter.",
            "tags" : [
               "Custom Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"cgiparam-desc=my%20desc&cgiparam-id=1777564990&cgiparam-name=New%20name&cgiparam-visible=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparam/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'cgiparam-desc' => 'my desc',\n'cgiparam-id' => '1777564990',\n'cgiparam-name' => 'New name',\n'cgiparam-visible' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparam/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparam/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('cgiparam-desc=my%20desc&cgiparam-id=1777564990&cgiparam-name=New%20name&cgiparam-visible=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'cgiparam-desc' : 'my%20desc',\n'cgiparam-id' : '1777564990',\n'cgiparam-name' : 'New%20name',\n'cgiparam-visible' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cgiparamvalue/exists.json" : {
         "get" : {
            "description" : "This query will check if a cgiparamvalue-name exists in the current website for a given custom parameter. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cgiparamvalue&method=exists"
            },
            "operationId" : "existsCustomParametersValue",
            "parameters" : [
               {
                  "description" : "id of the custom parameter to check the value from",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "cgiparam-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "value of the custom parameter to check",
                  "example" : "my-value",
                  "in" : "query",
                  "name" : "cgiparamvalue-value",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cgiparamvalue_id"
                                 },
                                 {
                                    "name" : "cgiparamvalue_value"
                                 },
                                 {
                                    "name" : "cgiparamvalue_idx_2_3"
                                 },
                                 {
                                    "name" : "cgiparamvalue_desc"
                                 },
                                 {
                                    "name" : "cgiparam_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "value-visitor",
                                    "177756499010847",
                                    "my-desc",
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if the value of the custom parameter exists.",
            "tags" : [
               "Custom Parameters Value"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparamvalue/exists.json?cgiparam-id=1777564990&cgiparamvalue-value=my-value\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparamvalue/exists.json?cgiparam-id=1777564990&cgiparamvalue-value=my-value',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparamvalue/exists.json?cgiparam-id=1777564990&cgiparamvalue-value=my-value');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'cgiparam-id=1777564990&cgiparamvalue-value=my-value'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparamvalue/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cgiparamvalue/hash.json" : {
         "get" : {
            "description" : "This query will hash the value of the provided id in case the value collected is not to be shown anymore.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cgiparamvalue&method=hash"
            },
            "operationId" : "hashCustomParametersValue",
            "parameters" : [
               {
                  "description" : "id of the value of the custom parameter be hashed",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "cgiparamvalue-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cgiparamvalue_id"
                                 },
                                 {
                                    "name" : "cgiparamvalue_value"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "value-visitor"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Hash the value of a given custom parameter entry.",
            "tags" : [
               "Custom Parameters Value"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparamvalue/hash.json?cgiparamvalue-id=1777564990\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparamvalue/hash.json?cgiparamvalue-id=1777564990',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparamvalue/hash.json?cgiparamvalue-id=1777564990');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'cgiparamvalue-id=1777564990'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparamvalue/hash.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cgiparamvalue/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cgiparamvalue&method=search"
            },
            "operationId" : "searchCustomParametersValue",
            "parameters" : [
               {
                  "description" : "id of the custom parameter to check the value from",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "cgiparam-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the custom parameter",
                  "example" : "my-test-cgiparam",
                  "in" : "query",
                  "name" : "cgiparamvalue-value",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cgiparamvalue_id"
                                 },
                                 {
                                    "name" : "cgiparamvalue_value"
                                 },
                                 {
                                    "name" : "cgiparamvalue_idx_2_3"
                                 },
                                 {
                                    "name" : "cgiparamvalue_desc"
                                 },
                                 {
                                    "name" : "cgiparam_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "value-visitor",
                                    "177756499010847",
                                    "my-desc",
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Custom Parameters Value"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparamvalue/search.json?cgiparam-id=1777564990&cgiparamvalue-value=my-test-cgiparam&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparamvalue/search.json?cgiparam-id=1777564990&cgiparamvalue-value=my-test-cgiparam&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparamvalue/search.json?cgiparam-id=1777564990&cgiparamvalue-value=my-test-cgiparam&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'cgiparam-id=1777564990&cgiparamvalue-value=my-test-cgiparam&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cgiparamvalue/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/assist_get_available_dimension.json" : {
         "get" : {
            "description" : "Return the available dimensions for Assist analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=assist_get_available_dimension"
            },
            "operationId" : "assistGetAvailableDimensionCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Assist - available dimensions",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/assist_get_available_dimension.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/assist_get_available_dimension.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/assist_get_available_dimension.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/assist_get_available_dimension.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/assist_get_available_goal.json" : {
         "get" : {
            "description" : "Return the available goals for Assist analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=assist_get_available_goal"
            },
            "operationId" : "assistGetAvailableGoalCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Assist - available goals",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/assist_get_available_goal.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/assist_get_available_goal.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/assist_get_available_goal.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/assist_get_available_goal.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/assist_get_available_views.json" : {
         "get" : {
            "description" : "Return the available single-touch attribution rules for Assist analysis.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=assist_get_available_views"
            },
            "operationId" : "assistGetAvailableViewsCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Assist - available STA rules",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/assist_get_available_views.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/assist_get_available_views.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/assist_get_available_views.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/assist_get_available_views.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/bias_get_available_bias.json" : {
         "get" : {
            "description" : "Return the available bias for Bias analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=bias_get_available_bias"
            },
            "operationId" : "biasGetAvailableBiasCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Bias - available bias",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/bias_get_available_bias.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/bias_get_available_bias.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/bias_get_available_bias.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/bias_get_available_bias.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/bias_get_available_dimension.json" : {
         "get" : {
            "description" : "Return the available dimensions for Bias analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=bias_get_available_dimension"
            },
            "operationId" : "biasGetAvailableDimensionCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Bias - available dimensions",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/bias_get_available_dimension.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/bias_get_available_dimension.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/bias_get_available_dimension.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/bias_get_available_dimension.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/bias_get_available_goal.json" : {
         "get" : {
            "description" : "Return the available goals for Bias analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=bias_get_available_goal"
            },
            "operationId" : "biasGetAvailableGoalCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Bias - available goals",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/bias_get_available_goal.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/bias_get_available_goal.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/bias_get_available_goal.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/bias_get_available_goal.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/bias_get_available_models.json" : {
         "get" : {
            "description" : "Return the available models for Bias analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=bias_get_available_models"
            },
            "operationId" : "biasGetAvailableModelsCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Bias - available models",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/bias_get_available_models.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/bias_get_available_models.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/bias_get_available_models.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/bias_get_available_models.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/deviceexclusivity_get_available_goal.json" : {
         "get" : {
            "description" : "Return the available goals for Device Exclusivity analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=deviceexclusivity_get_available_goal"
            },
            "operationId" : "deviceexclusivityGetAvailableGoalCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Device Exclusivity - available goals",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/deviceexclusivity_get_available_goal.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/deviceexclusivity_get_available_goal.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/deviceexclusivity_get_available_goal.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/deviceexclusivity_get_available_goal.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/deviceexclusivity_get_available_mdevicetype.json" : {
         "get" : {
            "description" : "Return the available type of devices for Device Exclusivity analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=deviceexclusivity_get_available_mdevicetype"
            },
            "operationId" : "deviceexclusivityGetAvailableMdevicetypeCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Device Exclusivity - available type of devices",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/deviceexclusivity_get_available_mdevicetype.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/deviceexclusivity_get_available_mdevicetype.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/deviceexclusivity_get_available_mdevicetype.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/deviceexclusivity_get_available_mdevicetype.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/devicepath_get_available_goal.json" : {
         "get" : {
            "description" : "Return the available goals for Device Path analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=devicepath_get_available_goal"
            },
            "operationId" : "devicepathGetAvailableGoalCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Device Path - available goals",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/devicepath_get_available_goal.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/devicepath_get_available_goal.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/devicepath_get_available_goal.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/devicepath_get_available_goal.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/devicepath_get_available_kpi.json" : {
         "get" : {
            "description" : "Return the available KPI for Device Path analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=devicepath_get_available_kpi"
            },
            "operationId" : "devicepathGetAvailableKpiCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "goal for which you want the available KPI",
                  "example" : "order",
                  "in" : "query",
                  "name" : "goal",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Device Path - available KPI for analysis",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/devicepath_get_available_kpi.json?goal=order\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/devicepath_get_available_kpi.json?goal=order',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/devicepath_get_available_kpi.json?goal=order');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'goal=order'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/devicepath_get_available_kpi.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/devicepath_get_available_mdevicetype.json" : {
         "get" : {
            "description" : "Return the available type of devices for Device Path analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=devicepath_get_available_mdevicetype"
            },
            "operationId" : "devicepathGetAvailableMdevicetypeCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Device Path - available type of devices",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/devicepath_get_available_mdevicetype.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/devicepath_get_available_mdevicetype.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/devicepath_get_available_mdevicetype.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/devicepath_get_available_mdevicetype.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/duration_get_available_journey.json" : {
         "get" : {
            "description" : "Return the available journeys for Duration analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=duration_get_available_journey"
            },
            "operationId" : "durationGetAvailableJourneyCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Duration - available journeys",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/duration_get_available_journey.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/duration_get_available_journey.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/duration_get_available_journey.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/duration_get_available_journey.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/duration_get_available_slot.json" : {
         "get" : {
            "description" : "Return the available slots for Duration analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=duration_get_available_slot"
            },
            "operationId" : "durationGetAvailableSlotCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Duration - available slots",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/duration_get_available_slot.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/duration_get_available_slot.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/duration_get_available_slot.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/duration_get_available_slot.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/mediaexclusivity_get_available_dimension.json" : {
         "get" : {
            "description" : "Return the available dimensions for Media Exclusivity analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=mediaexclusivity_get_available_dimension"
            },
            "operationId" : "mediaexclusivityGetAvailableDimensionCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Media Exclusivity - available dimensions",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediaexclusivity_get_available_dimension.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediaexclusivity_get_available_dimension.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediaexclusivity_get_available_dimension.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediaexclusivity_get_available_dimension.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/mediaexclusivity_get_available_goal.json" : {
         "get" : {
            "description" : "Return the available goals for Media Exclusivity analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=mediaexclusivity_get_available_goal"
            },
            "operationId" : "mediaexclusivityGetAvailableGoalCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Media Exclusivity - available goals",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediaexclusivity_get_available_goal.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediaexclusivity_get_available_goal.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediaexclusivity_get_available_goal.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediaexclusivity_get_available_goal.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/mediaexclusivity_get_available_item_by_dimension.json" : {
         "get" : {
            "description" : "Return the available items for a given dimension for Media Exclusivity analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=mediaexclusivity_get_available_item_by_dimension"
            },
            "operationId" : "mediaexclusivityGetAvailableItemByDimensionCustomerJourney",
            "parameters" : [
               {
                  "description" : "Date from which you want the data in the DD/MM/YYYY format given the current language.",
                  "in" : "query",
                  "name" : "date-from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Date to which you want the data in the DD/MM/YYYY format given the current language, included.",
                  "in" : "query",
                  "name" : "date-to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "dimension for which you want the available items, provided by **mediaexclusivity_get_available_dimension**",
                  "example" : "media",
                  "in" : "query",
                  "name" : "dimension",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "goal you want the item for, provided by **mediapath_get_available_goal**",
                  "example" : "order",
                  "in" : "query",
                  "name" : "goal",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Media Exclusivity - available items for a given dimension",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediaexclusivity_get_available_item_by_dimension.json?dimension=media&goal=order\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediaexclusivity_get_available_item_by_dimension.json?dimension=media&goal=order',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediaexclusivity_get_available_item_by_dimension.json?dimension=media&goal=order');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dimension=media&goal=order'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediaexclusivity_get_available_item_by_dimension.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/mediapath_get_available_dimension.json" : {
         "get" : {
            "description" : "Return the available dimensions for Media Path analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=mediapath_get_available_dimension"
            },
            "operationId" : "mediapathGetAvailableDimensionCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Media Path - available dimensions",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediapath_get_available_dimension.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediapath_get_available_dimension.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediapath_get_available_dimension.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediapath_get_available_dimension.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/mediapath_get_available_goal.json" : {
         "get" : {
            "description" : "Return the available goals for Media Path analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=mediapath_get_available_goal"
            },
            "operationId" : "mediapathGetAvailableGoalCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Media Path - available goals",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediapath_get_available_goal.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediapath_get_available_goal.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediapath_get_available_goal.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediapath_get_available_goal.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/mediapath_get_available_item_by_dimension.json" : {
         "get" : {
            "description" : "Return the available items for a given dimension for Media Path analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=mediapath_get_available_item_by_dimension"
            },
            "operationId" : "mediapathGetAvailableItemByDimensionCustomerJourney",
            "parameters" : [
               {
                  "description" : "Date from which you want the data in the DD/MM/YYYY format given the current language.",
                  "in" : "query",
                  "name" : "date-from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Date to which you want the data in the DD/MM/YYYY format given the current language, included.",
                  "in" : "query",
                  "name" : "date-to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "dimension for which you want the available items, provided by **mediapath_get_available_dimension**",
                  "example" : "media",
                  "in" : "query",
                  "name" : "dimension",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "goal you want the item for, provided by **mediapath_get_available_goal**",
                  "example" : "order",
                  "in" : "query",
                  "name" : "goal",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Media Path - available items for a given dimension",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediapath_get_available_item_by_dimension.json?dimension=media&goal=order\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediapath_get_available_item_by_dimension.json?dimension=media&goal=order',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediapath_get_available_item_by_dimension.json?dimension=media&goal=order');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dimension=media&goal=order'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediapath_get_available_item_by_dimension.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/mediapath_get_available_kpi.json" : {
         "get" : {
            "description" : "Return the available KPI for Media Path analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=mediapath_get_available_kpi"
            },
            "operationId" : "mediapathGetAvailableKpiCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "goal for which you want the available KPI",
                  "example" : "order",
                  "in" : "query",
                  "name" : "goal",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Media Path - available KPI for analysis",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediapath_get_available_kpi.json?goal=order\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediapath_get_available_kpi.json?goal=order',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediapath_get_available_kpi.json?goal=order');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'goal=order'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/mediapath_get_available_kpi.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/qualifyengage_get_available_dimension.json" : {
         "get" : {
            "description" : "Return the available dimensions for Qualify Engage analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=qualifyengage_get_available_dimension"
            },
            "operationId" : "qualifyengageGetAvailableDimensionCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Qualify Engage - available dimensions",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/qualifyengage_get_available_dimension.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/qualifyengage_get_available_dimension.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/qualifyengage_get_available_dimension.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/qualifyengage_get_available_dimension.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/qualifyengage_get_available_profilesequence.json" : {
         "get" : {
            "description" : "Return the available profile sequences for Qualify Engage analysis.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=qualifyengage_get_available_profilesequence"
            },
            "operationId" : "qualifyengageGetAvailableProfilesequenceCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Qualify Engage - available profile sequence.",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/qualifyengage_get_available_profilesequence.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/qualifyengage_get_available_profilesequence.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/qualifyengage_get_available_profilesequence.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/qualifyengage_get_available_profilesequence.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/qualifyengage_get_available_views.json" : {
         "get" : {
            "description" : "Return the available single-touch attribution rules for Qualify Engage analysis.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=qualifyengage_get_available_views"
            },
            "operationId" : "qualifyengageGetAvailableViewsCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Qualify Engage - available STA rules",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/qualifyengage_get_available_views.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/qualifyengage_get_available_views.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/qualifyengage_get_available_views.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/qualifyengage_get_available_views.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/touch_get_available_goal.json" : {
         "get" : {
            "description" : "Return the available goals for Touch analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=touch_get_available_goal"
            },
            "operationId" : "touchGetAvailableGoalCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Touch - available goals",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/touch_get_available_goal.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/touch_get_available_goal.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/touch_get_available_goal.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/touch_get_available_goal.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/velocity_get_available_dimension.json" : {
         "get" : {
            "description" : "Return the available dimensions for Velocity analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=velocity_get_available_dimension"
            },
            "operationId" : "velocityGetAvailableDimensionCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Velocity - available dimensions",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_dimension.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_dimension.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_dimension.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_dimension.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/velocity_get_available_item_by_dimension.json" : {
         "get" : {
            "description" : "Return the available items for a given dimension for Velocity analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=velocity_get_available_item_by_dimension"
            },
            "operationId" : "velocityGetAvailableItemByDimensionCustomerJourney",
            "parameters" : [
               {
                  "description" : "Date from which you want the data in the DD/MM/YYYY format given the current language.",
                  "example" : "01/15/2026 - for the 15th january 2026",
                  "in" : "query",
                  "name" : "date-from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Date to which you want the data in the DD/MM/YYYY format given the current language, included.",
                  "in" : "query",
                  "name" : "date-to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "dimension for which you want the available items, provided by **velocity_get_available_dimension**",
                  "example" : "media",
                  "in" : "query",
                  "name" : "dimension",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "journey you want the item for, provided by **velocity_get_available_journey**",
                  "in" : "query",
                  "name" : "journey",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Velocity - available items for a given dimension",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_item_by_dimension.json?date-from=01%2F15%2F2026%20-%20for%20the%2015th%20january%202026&dimension=media\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_item_by_dimension.json?date-from=01/15/2026 - for the 15th january 2026&dimension=media',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_item_by_dimension.json?date-from=01/15/2026 - for the 15th january 2026&dimension=media');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'date-from=01%2F15%2F2026%20-%20for%20the%2015th%20january%202026&dimension=media'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_item_by_dimension.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/velocity_get_available_journey.json" : {
         "get" : {
            "description" : "Return the available journeys for Velocity analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=velocity_get_available_journey"
            },
            "operationId" : "velocityGetAvailableJourneyCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Velocity - available journeys",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_journey.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_journey.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_journey.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_journey.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/velocity_get_available_kpi.json" : {
         "get" : {
            "description" : "Return the available KPI for Velocity analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=velocity_get_available_kpi"
            },
            "operationId" : "velocityGetAvailableKpiCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "goal for which you want the available KPI",
                  "example" : "order",
                  "in" : "query",
                  "name" : "goal",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Velocity - available KPI for analysis",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_kpi.json?goal=order\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_kpi.json?goal=order',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_kpi.json?goal=order');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'goal=order'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_kpi.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cj/velocity_get_available_scale.json" : {
         "get" : {
            "description" : "Return the available scales for Velocity analysis",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cj&method=velocity_get_available_scale"
            },
            "operationId" : "velocityGetAvailableScaleCustomerJourney",
            "parameters" : [
               {
                  "description" : "Language for which you want the text translated to",
                  "enum" : [
                     "en",
                     "fr",
                     "es"
                  ],
                  "example" : "en",
                  "in" : "path",
                  "name" : "ea-lg",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Velocity - available scales",
            "tags" : [
               "Customer Journey"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_scale.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_scale.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_scale.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cj/velocity_get_available_scale.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cluster/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new audience.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cluster&method=create"
            },
            "operationId" : "createAudience",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the audience.",
                  "example" : "my-test-audience-name",
                  "in" : "query",
                  "name" : "cluster-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y or N to indicate if this audience is archive or not.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "cluster-archive",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y or N to indicate if this audience is active or not",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cluster-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "example" : "My Test Cluster",
                  "in" : "query",
                  "name" : "cluster-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "A (automatic) or D (downgradable) for the mode of the audience",
                  "example" : "A",
                  "in" : "query",
                  "name" : "cluster-mode",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cluster_id"
                                 },
                                 {
                                    "name" : "cluster_name"
                                 },
                                 {
                                    "name" : "cluster_mode"
                                 },
                                 {
                                    "name" : "cluster_desc"
                                 },
                                 {
                                    "name" : "cluster_active"
                                 },
                                 {
                                    "name" : "cluster_reportable"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "82",
                                    "cluster-api-1521558201",
                                    "A",
                                    "",
                                    "Y",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new audience.",
            "tags" : [
               "Audience"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"cluster-active=Y&cluster-archive=N&cluster-desc=My%20Test%20Cluster&cluster-mode=A&cluster-name=my-test-audience-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'cluster-active' => 'Y',\n'cluster-archive' => 'N',\n'cluster-desc' => 'My Test Cluster',\n'cluster-mode' => 'A',\n'cluster-name' => 'my-test-audience-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('cluster-active=Y&cluster-archive=N&cluster-desc=My%20Test%20Cluster&cluster-mode=A&cluster-name=my-test-audience-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'cluster-active' : 'Y',\n'cluster-archive' : 'N',\n'cluster-desc' : 'My%20Test%20Cluster',\n'cluster-mode' : 'A',\n'cluster-name' : 'my-test-audience-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cluster/del_label.json" : {
         "delete" : {
            "description" : "This query removes the link between a label and an audience .\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cluster&method=del_label"
            },
            "operationId" : "delLabelAudience",
            "parameters" : [
               {
                  "description" : "id of the audience for which you want to remove the label.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "cluster-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the label you want to remove from the audience.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "label-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Remove a label for an audience.",
            "tags" : [
               "Audience"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X DELETE \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/del_label.json?cluster-id=1777564990&label-id=1777564990\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/del_label.json?cluster-id=1777564990&label-id=1777564990',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/del_label.json?cluster-id=1777564990&label-id=1777564990');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'cluster-id=1777564990&label-id=1777564990'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/del_label.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cluster/exists.json" : {
         "get" : {
            "description" : " This query will check if a cluster-name (audience name) exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cluster&method=exists"
            },
            "operationId" : "existsAudience",
            "parameters" : [
               {
                  "description" : "name of the audience to check",
                  "example" : "my-test-audience",
                  "in" : "query",
                  "name" : "cluster-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cluster_archive"
                                 },
                                 {
                                    "name" : "cluster_idhck"
                                 },
                                 {
                                    "name" : "cluster_version"
                                 },
                                 {
                                    "name" : "cluster_name"
                                 },
                                 {
                                    "name" : "cluster_desc"
                                 },
                                 {
                                    "name" : "cluster_active"
                                 },
                                 {
                                    "name" : "cluster_id"
                                 },
                                 {
                                    "name" : "cluster_mode"
                                 },
                                 {
                                    "name" : "cluster_reportable"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "Y",
                                    "0",
                                    "1",
                                    "add1 - 1521557761 - 1521557784",
                                    "fdesc descffgdfg",
                                    "N",
                                    "1",
                                    "D",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a cluster-name exists",
            "tags" : [
               "Audience"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/exists.json?cluster-name=my-test-audience\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/exists.json?cluster-name=my-test-audience',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/exists.json?cluster-name=my-test-audience');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'cluster-name=my-test-audience'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cluster/lookup.json" : {
         "get" : {
            "description" : "This query will check in the system where the given audience is used.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cluster&method=lookup"
            },
            "operationId" : "lookupAudience",
            "parameters" : [
               {
                  "description" : "indicate to limit the search to a specific class of parameters, you can provide multiple classes by using commas. eg: dataconnector,coldebmdb",
                  "example" : "dataconnector",
                  "in" : "query",
                  "name" : "class",
                  "schema" : {
                     "enum" : [
                        "ergmacrotemplate",
                        "opedataparam",
                        "tpcreativeengine",
                        "collectorconfigmthandler",
                        "dataconnector",
                        "clustervalue",
                        "denysitecentric",
                        "clickdispatcher",
                        "view",
                        "tpcampaignelttargeting",
                        "campaignelttargeting",
                        "ebmdb",
                        "coldebmdb"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the audience for which you want to do the lookup.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "cluster-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "rule",
                  "description" : "indicate to limit the search to a specific context, you can provide multiple context by using commas. eg: rule",
                  "example" : "rule",
                  "in" : "query",
                  "name" : "context",
                  "schema" : {
                     "enum" : [
                        "rule"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "context"
                                 },
                                 {
                                    "name" : "id"
                                 },
                                 {
                                    "name" : "name"
                                 },
                                 {
                                    "name" : "class"
                                 },
                                 {
                                    "name" : "type"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "rule",
                                    "481",
                                    "TV",
                                    "ebmdbreq",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Lookup the usage of the audience.",
            "tags" : [
               "Audience"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/lookup.json?class=dataconnector&cluster-id=1777564990&context=rule\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/lookup.json?class=dataconnector&cluster-id=1777564990&context=rule',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/lookup.json?class=dataconnector&cluster-id=1777564990&context=rule');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'class=dataconnector&cluster-id=1777564990&context=rule'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/lookup.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cluster/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cluster&method=search"
            },
            "operationId" : "searchAudience",
            "parameters" : [
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cluster-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cluster-archive",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "LIKE search on description",
                  "example" : "Test",
                  "in" : "query",
                  "name" : "cluster-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to A (automatic) or D (downgradable) to filter on mode",
                  "example" : "A",
                  "in" : "query",
                  "name" : "cluster-mode",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the audience",
                  "example" : "my-test-audience",
                  "in" : "query",
                  "name" : "cluster-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "cluster-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on reportable flag",
                  "example" : "N",
                  "in" : "query",
                  "name" : "cluster-reportable",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "version number of the audience",
                  "example" : 2,
                  "in" : "query",
                  "name" : "cluster-version",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "list of label ids you want to filter on",
                  "example" : "1777564990,1777478590",
                  "in" : "query",
                  "name" : "label-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "default" : "N",
                  "description" : "provide the labels linked to the audience, separated by a comma if you have more than one",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "with-label",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cluster_mode"
                                 },
                                 {
                                    "name" : "cluster_id"
                                 },
                                 {
                                    "name" : "cluster_active"
                                 },
                                 {
                                    "name" : "cluster_desc"
                                 },
                                 {
                                    "name" : "cluster_version"
                                 },
                                 {
                                    "name" : "cluster_name"
                                 },
                                 {
                                    "name" : "cluster_idhck"
                                 },
                                 {
                                    "name" : "cluster_archive"
                                 },
                                 {
                                    "name" : "cluster_reportable"
                                 },
                                 {
                                    "name" : "cluster_labels"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "D",
                                    "1",
                                    "N",
                                    "fdesc descffgdfg",
                                    "1",
                                    "add1 - 1521557761 - 1521557784",
                                    "0",
                                    "Y",
                                    "N",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Audience"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/search.json?cluster-active=Y&cluster-archive=Y&cluster-desc=Test&cluster-mode=A&cluster-name=my-test-audience&cluster-name-exact=1&cluster-reportable=N&cluster-version=2&dir=DESC&label-id=1777564990%2C1777478590&limit=25&start=0&with-label=Y\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/search.json?cluster-active=Y&cluster-archive=Y&cluster-desc=Test&cluster-mode=A&cluster-name=my-test-audience&cluster-name-exact=1&cluster-reportable=N&cluster-version=2&dir=DESC&label-id=1777564990,1777478590&limit=25&start=0&with-label=Y',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/search.json?cluster-active=Y&cluster-archive=Y&cluster-desc=Test&cluster-mode=A&cluster-name=my-test-audience&cluster-name-exact=1&cluster-reportable=N&cluster-version=2&dir=DESC&label-id=1777564990,1777478590&limit=25&start=0&with-label=Y');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'cluster-active=Y&cluster-archive=Y&cluster-desc=Test&cluster-mode=A&cluster-name=my-test-audience&cluster-name-exact=1&cluster-reportable=N&cluster-version=2&dir=DESC&label-id=1777564990%2C1777478590&limit=25&start=0&with-label=Y'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cluster/set_label.json" : {
         "post" : {
            "description" : "This query allows for linking a label to an audience.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cluster&method=set_label"
            },
            "operationId" : "setLabelAudience",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the audience for which you want to set the label.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "cluster-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the label you want to link to the audience.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "label-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "labellink_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Set a label on an audience.",
            "tags" : [
               "Audience"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"cluster-id=1777564990&label-id=1777564990\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/set_label.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'cluster-id' => '1777564990',\n'label-id' => '1777564990'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/set_label.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/set_label.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('cluster-id=1777564990&label-id=1777564990');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'cluster-id' : '1777564990',\n'label-id' : '1777564990'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cluster/update.json" : {
         "post" : {
            "description" : "This query allows for updating an audience.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cluster&method=update"
            },
            "operationId" : "updateAudience",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the audience for which you want to modify attributes",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "cluster-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new audience name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "cluster-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new audience description",
                  "example" : "Test",
                  "in" : "query",
                  "name" : "cluster-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new audience mode, set to A (automatic) or D (downgradable)",
                  "example" : "A",
                  "in" : "query",
                  "name" : "cluster-mode",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the active attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cluster-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the archive attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cluster-archive",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the reportable attribute. **WARNING** there is a fixed limit of audience that can be reportable at any given time.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cluster-reportable",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cluster_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchAudience" : {
                        "description" : "Use the value of cluster_id entry to update a cluster through cluster-id parameter.",
                        "operationId" : "searchAudience",
                        "parameters" : {
                           "cluster-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an audience.",
            "tags" : [
               "Audience"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"cluster-active=Y&cluster-archive=Y&cluster-desc=Test&cluster-id=1777564990&cluster-mode=A&cluster-name=New%20name&cluster-reportable=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'cluster-active' => 'Y',\n'cluster-archive' => 'Y',\n'cluster-desc' => 'Test',\n'cluster-id' => '1777564990',\n'cluster-mode' => 'A',\n'cluster-name' => 'New name',\n'cluster-reportable' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('cluster-active=Y&cluster-archive=Y&cluster-desc=Test&cluster-id=1777564990&cluster-mode=A&cluster-name=New%20name&cluster-reportable=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'cluster-active' : 'Y',\n'cluster-archive' : 'Y',\n'cluster-desc' : 'Test',\n'cluster-id' : '1777564990',\n'cluster-mode' : 'A',\n'cluster-name' : 'New%20name',\n'cluster-reportable' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cluster/update_clustervalue_sort.json" : {
         "post" : {
            "description" : "This query allows you to update the sorting order for all the segment of an audience. WARNING: this can have an impact on the collected statistics.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cluster&method=update_clustervalue_sort"
            },
            "operationId" : "updateClustervalueSortAudience",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the audience for which you want to modify attributes",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "cluster-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "JSON Array holding the new order for each segment (clustervalue_id) belonging to the audience, you need to provide **all** the existing ids.",
                  "example" : [
                     87,
                     65,
                     32,
                     105
                  ],
                  "in" : "query",
                  "name" : "clustervalue-sort",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cluster_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Change segment sorting for an audience.",
            "tags" : [
               "Audience"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"cluster-id=1777564990&clustervalue-sort=ARRAY%280x55e8f2d3b578%29\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/update_clustervalue_sort.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'cluster-id' => '1777564990',\n'clustervalue-sort' => 'ARRAY(0x55e8f2d3b578)'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/update_clustervalue_sort.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/update_clustervalue_sort.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('cluster-id=1777564990&clustervalue-sort=ARRAY%280x55e8f2d3b578%29');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'cluster-id' : '1777564990',\n'clustervalue-sort' : 'ARRAY%280x55e8f2d3b578%29'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cluster/upgrade_version.json" : {
         "post" : {
            "description" : "This query allows for upgrading the version of audience. WARNING : this will lead to a reset of users linked to the previous version of the audience.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cluster&method=upgrade_version"
            },
            "operationId" : "upgradeVersionAudience",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the audience for which you want to modify attributes",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "cluster-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cluster_id"
                                 },
                                 {
                                    "name" : "cluster_version"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990,
                                    2
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Upgrade the version number of the audience.",
            "tags" : [
               "Audience"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"cluster-id=1777564990\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/upgrade_version.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'cluster-id' => '1777564990'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/upgrade_version.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cluster/upgrade_version.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('cluster-id=1777564990');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'cluster-id' : '1777564990'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/clustervalue/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new segment.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=clustervalue&method=create"
            },
            "operationId" : "createSegment",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the segment",
                  "example" : "my-test-segment-name",
                  "in" : "query",
                  "name" : "clustervalue-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the audience to which the segment is to be linked to.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "cluster-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "example" : "<a />",
                  "in" : "query",
                  "name" : "clustervalue-ergmacro",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "clustervalue_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777561390
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new segment.",
            "tags" : [
               "Segment"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"cluster-id=1777564990&clustervalue-ergmacro=%3Ca%20%2F%3E&clustervalue-name=my-test-segment-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'cluster-id' => '1777564990',\n'clustervalue-ergmacro' => '<a />',\n'clustervalue-name' => 'my-test-segment-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('cluster-id=1777564990&clustervalue-ergmacro=%3Ca%20%2F%3E&clustervalue-name=my-test-segment-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'cluster-id' : '1777564990',\n'clustervalue-ergmacro' : '%3Ca%20%2F%3E',\n'clustervalue-name' : 'my-test-segment-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/clustervalue/del_label.json" : {
         "delete" : {
            "description" : "This query removes the link between a label and a segment.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=clustervalue&method=del_label"
            },
            "operationId" : "delLabelSegment",
            "parameters" : [
               {
                  "description" : "id of the segment for which you want to remove the label.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "clustervalue-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the label you want to remove from the audience.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "label-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Remove a label for a segment.",
            "tags" : [
               "Segment"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X DELETE \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/del_label.json?clustervalue-id=1777564990&label-id=1777564990\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/del_label.json?clustervalue-id=1777564990&label-id=1777564990',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/del_label.json?clustervalue-id=1777564990&label-id=1777564990');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'clustervalue-id=1777564990&label-id=1777564990'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/del_label.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/clustervalue/exists.json" : {
         "get" : {
            "description" : "This query will check if a segment (clustervalue-name) exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=clustervalue&method=exists"
            },
            "operationId" : "existsSegment",
            "parameters" : [
               {
                  "description" : "name of the segment to check",
                  "example" : "my-test-segment",
                  "in" : "query",
                  "name" : "clustervalue-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "clustervalue_sort"
                                 },
                                 {
                                    "name" : "cluster_id"
                                 },
                                 {
                                    "name" : "clustervalue_archive"
                                 },
                                 {
                                    "name" : "clustervalue_ergmacro"
                                 },
                                 {
                                    "name" : "clustervalue_name"
                                 },
                                 {
                                    "name" : "clustervalue_id"
                                 },
                                 {
                                    "name" : "clustervalue_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "5",
                                    "1",
                                    "Y",
                                    "<a />",
                                    "add-test - 1521559936 - 1521559965 - 1521560013",
                                    "1",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a segment exists",
            "tags" : [
               "Segment"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/exists.json?clustervalue-name=my-test-segment\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/exists.json?clustervalue-name=my-test-segment',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/exists.json?clustervalue-name=my-test-segment');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'clustervalue-name=my-test-segment'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/clustervalue/lookup.json" : {
         "get" : {
            "description" : "This query will check in the system where the given segment is used.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=clustervalue&method=lookup"
            },
            "operationId" : "lookupSegment",
            "parameters" : [
               {
                  "description" : "indicate to limit the search to a specific class of parameters, you can provide multiple classes by using commas. eg: dataconnector,coldebmdb",
                  "example" : "dataconnector",
                  "in" : "query",
                  "name" : "class",
                  "schema" : {
                     "enum" : [
                        "ergmacrotemplate",
                        "opedataparam",
                        "tpcreativeengine",
                        "collectorconfigmthandler",
                        "dataconnector",
                        "clustervalue",
                        "denysitecentric",
                        "clickdispatcher",
                        "view",
                        "tpcampaignelttargeting",
                        "campaignelttargeting",
                        "ebmdb",
                        "coldebmdb"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the segment for which you want to do the lookup.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "clustervalue-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "rule",
                  "description" : "indicate to limit the search to a specific context, you can provide multiple context by using commas. eg: rule",
                  "example" : "rule",
                  "in" : "query",
                  "name" : "context",
                  "schema" : {
                     "enum" : [
                        "rule"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "context"
                                 },
                                 {
                                    "name" : "id"
                                 },
                                 {
                                    "name" : "name"
                                 },
                                 {
                                    "name" : "class"
                                 },
                                 {
                                    "name" : "type"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "rule",
                                    "481",
                                    "TV",
                                    "ebmdbreq",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Lookup the usage of the segment.",
            "tags" : [
               "Segment"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/lookup.json?class=dataconnector&clustervalue-id=1777564990&context=rule\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/lookup.json?class=dataconnector&clustervalue-id=1777564990&context=rule',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/lookup.json?class=dataconnector&clustervalue-id=1777564990&context=rule');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'class=dataconnector&clustervalue-id=1777564990&context=rule'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/lookup.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/clustervalue/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=clustervalue&method=search"
            },
            "operationId" : "searchSegment",
            "parameters" : [
               {
                  "description" : "id of the audience linked to segment",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "cluster-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "clustervalue-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "clustervalue-archive",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the segment",
                  "example" : "my-test-segment",
                  "in" : "query",
                  "name" : "clustervalue-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "provide start / exact / contain / end, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "clustervalue-name-like",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "list of label ids you want to filter on",
                  "example" : "1777564990,1777478590",
                  "in" : "query",
                  "name" : "label-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "default" : "N",
                  "description" : "provide the labels linked to the segment, separated by a comma if you have more than one",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "with-label",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y to drop the exist segment",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "without-exit",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "clustervalue_name"
                                 },
                                 {
                                    "name" : "clustervalue_active"
                                 },
                                 {
                                    "name" : "clustervalue_id"
                                 },
                                 {
                                    "name" : "clustervalue_ergmacro"
                                 },
                                 {
                                    "name" : "clustervalue_archive"
                                 },
                                 {
                                    "name" : "cluster_id"
                                 },
                                 {
                                    "name" : "clustervalue_sort"
                                 },
                                 {
                                    "name" : "clustervalue_labels"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "add-test - 1521559936 - 1521559965 - 1521560013",
                                    "Y",
                                    "1",
                                    "<a />",
                                    "Y",
                                    "1",
                                    "5",
                                    ""
                                 ],
                                 [
                                    "dfsdfsdf",
                                    "Y",
                                    "2",
                                    "<a><p n=\"version\">2</p><e n=\"cgip:sdfds\"><eq d=\"sdfds\"><![CDATA[dsfdsf]]></eq></e></a>",
                                    "N",
                                    "2",
                                    "1",
                                    ""
                                 ],
                                 [
                                    "dfgdfgdfg",
                                    "Y",
                                    "3",
                                    null,
                                    "N",
                                    "2",
                                    "3",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 3
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Segment"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/search.json?cluster-id=1777564990&clustervalue-active=Y&clustervalue-archive=Y&clustervalue-name=my-test-segment&clustervalue-name-like=1&dir=DESC&label-id=1777564990%2C1777478590&limit=25&start=0&with-label=Y&without-exit=Y\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/search.json?cluster-id=1777564990&clustervalue-active=Y&clustervalue-archive=Y&clustervalue-name=my-test-segment&clustervalue-name-like=1&dir=DESC&label-id=1777564990,1777478590&limit=25&start=0&with-label=Y&without-exit=Y',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/search.json?cluster-id=1777564990&clustervalue-active=Y&clustervalue-archive=Y&clustervalue-name=my-test-segment&clustervalue-name-like=1&dir=DESC&label-id=1777564990,1777478590&limit=25&start=0&with-label=Y&without-exit=Y');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'cluster-id=1777564990&clustervalue-active=Y&clustervalue-archive=Y&clustervalue-name=my-test-segment&clustervalue-name-like=1&dir=DESC&label-id=1777564990%2C1777478590&limit=25&start=0&with-label=Y&without-exit=Y'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/clustervalue/set_label.json" : {
         "post" : {
            "description" : "This query allows for linking a label to a segment.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=clustervalue&method=set_label"
            },
            "operationId" : "setLabelSegment",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the segment for which you want to set the label.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "clustervalue-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the label you want to link to the segment.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "label-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "labellink_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Set a label on a segment.",
            "tags" : [
               "Segment"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"clustervalue-id=1777564990&label-id=1777564990\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/set_label.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'clustervalue-id' => '1777564990',\n'label-id' => '1777564990'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/set_label.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/set_label.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('clustervalue-id=1777564990&label-id=1777564990');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'clustervalue-id' : '1777564990',\n'label-id' : '1777564990'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/clustervalue/update.json" : {
         "post" : {
            "description" : "This query allows for updating a segment.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=clustervalue&method=update"
            },
            "operationId" : "updateSegment",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the segment for which you want to modify attributes",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "clustervalue-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new segment name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "clustervalue-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new clustervalue ergmacro trigger rule",
                  "example" : "<o />",
                  "in" : "query",
                  "name" : "clustervalue-ergmacro",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the active attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "clustervalue-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the archive attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "clustervalue-archive",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "clustervalue_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchSegment" : {
                        "description" : "Use the value of clustervalue_id entry to update a clustervalue through clustervalue-id parameter.",
                        "operationId" : "searchSegment",
                        "parameters" : {
                           "clustervalue-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update a segment.",
            "tags" : [
               "Segment"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"clustervalue-active=Y&clustervalue-archive=Y&clustervalue-ergmacro=%3Co%20%2F%3E&clustervalue-id=1777564990&clustervalue-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'clustervalue-active' => 'Y',\n'clustervalue-archive' => 'Y',\n'clustervalue-ergmacro' => '<o />',\n'clustervalue-id' => '1777564990',\n'clustervalue-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/clustervalue/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('clustervalue-active=Y&clustervalue-archive=Y&clustervalue-ergmacro=%3Co%20%2F%3E&clustervalue-id=1777564990&clustervalue-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'clustervalue-active' : 'Y',\n'clustervalue-archive' : 'Y',\n'clustervalue-ergmacro' : '%3Co%20%2F%3E',\n'clustervalue-id' : '1777564990',\n'clustervalue-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigmt/clone.json" : {
         "post" : {
            "description" : "This method allows you to clone the configuration of a tag.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigmt&method=clone"
            },
            "operationId" : "cloneTMS",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the tag you want to clone.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "collectorconfigmt-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "Y",
                  "description" : "indicate if you want to create the missing entries if possible at target website.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "create-missing",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Clone a tag",
            "tags" : [
               "TMS"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"collectorconfigmt-id=1777564991&create-missing=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/clone.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'collectorconfigmt-id' => '1777564991',\n'create-missing' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/clone.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/clone.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('collectorconfigmt-id=1777564991&create-missing=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'collectorconfigmt-id' : '1777564991',\n'create-missing' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigmt/consent_status.json" : {
         "get" : {
            "description" : "This query allows for returning all consent information linked to tags.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigmt&method=consent_status"
            },
            "operationId" : "consentStatusTMS",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "collectorconfigmt_id"
                                 },
                                 {
                                    "name" : "collectorconfigmt_name"
                                 },
                                 {
                                    "name" : "collectorconfigpm_mode"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_name"
                                 },
                                 {
                                    "name" : "tcfv2vendor_id"
                                 },
                                 {
                                    "name" : "tcfv2vendor_name"
                                 },
                                 {
                                    "name" : "tcfv2vendorcustom_id"
                                 },
                                 {
                                    "name" : "tcfv2vendorcustom_name"
                                 },
                                 {
                                    "name" : "tcfv2purpose_id"
                                 },
                                 {
                                    "name" : "tcfv2purpose_name"
                                 },
                                 {
                                    "name" : "tcfv2specialfeature_id"
                                 },
                                 {
                                    "name" : "tcfv2specialfeature_name"
                                 },
                                 {
                                    "name" : "collectorconfigmt_archive"
                                 },
                                 {
                                    "name" : "collectorconfigmt_active"
                                 }
                              ],
                              "rows" : [
                                 []
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Display consent information",
            "tags" : [
               "TMS"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/consent_status.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/consent_status.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/consent_status.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/consent_status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigmt/copy.json" : {
         "post" : {
            "description" : "This method allows you to copy the configuration of a tag from a given site to another site.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigmt&method=copy"
            },
            "operationId" : "copyTMS",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the tag you want to copy.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "collectorconfigmt-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the target website to which you want to copy the tag.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "tgt-website-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "Y",
                  "description" : "indicate if you want to create the missing entries if possible at target website.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "create-missing",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Copy a tag to another website.",
            "tags" : [
               "TMS"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"collectorconfigmt-id=1777564991&create-missing=Y&tgt-website-id=1777564991\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/copy.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'collectorconfigmt-id' => '1777564991',\n'create-missing' => 'Y',\n'tgt-website-id' => '1777564991'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/copy.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/copy.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('collectorconfigmt-id=1777564991&create-missing=Y&tgt-website-id=1777564991');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'collectorconfigmt-id' : '1777564991',\n'create-missing' : 'Y',\n'tgt-website-id' : '1777564991'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigmt/exists.json" : {
         "post" : {
            "description" : "This query will check if a tag name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigmt&method=exists"
            },
            "operationId" : "existsTMS",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the tag to check",
                  "example" : "my-test-tag",
                  "in" : "query",
                  "name" : "collectorconfigmt-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a tag exists",
            "tags" : [
               "TMS"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"collectorconfigmt-name=my-test-tag\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/exists.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'collectorconfigmt-name' => 'my-test-tag'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/exists.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/exists.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('collectorconfigmt-name=my-test-tag');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'collectorconfigmt-name' : 'my-test-tag'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigmt/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigmt&method=search"
            },
            "operationId" : "searchTMS",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "set to Y or N to filter on archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "publisher-archive",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "first name of the publisher",
                  "example" : "my-test-publisher-fname",
                  "in" : "query",
                  "name" : "publisher-fname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "publisher-fname-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "last name of the publisher",
                  "example" : "my-test-publisher-lname",
                  "in" : "query",
                  "name" : "publisher-lname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "publisher-lname-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the publisher",
                  "example" : "my-test-publisher",
                  "in" : "query",
                  "name" : "publisher-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "publisher-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "phone of the publisher",
                  "example" : "my-test-publisher-phone",
                  "in" : "query",
                  "name" : "publisher-phone",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "publisher-phone-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on servable flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "publisher-servable",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "collectorconfigmt_mtnativeadhoc"
                                 },
                                 {
                                    "name" : "mtnative_id"
                                 },
                                 {
                                    "name" : "collectorconfigmt_isdataconnector"
                                 },
                                 {
                                    "name" : "collectorconfigmt_ssurl"
                                 },
                                 {
                                    "name" : "collectorconfigmt_archive"
                                 },
                                 {
                                    "name" : "collectorconfigmt_jssrc"
                                 },
                                 {
                                    "name" : "collectorconfigmt_authtoken"
                                 },
                                 {
                                    "name" : "publisher_id"
                                 },
                                 {
                                    "name" : "collectorconfigmt_timeout"
                                 },
                                 {
                                    "name" : "collectorconfigmt_onload"
                                 },
                                 {
                                    "name" : "collectorconfigmt_prejs"
                                 },
                                 {
                                    "name" : "collectorconfigmt_stop"
                                 },
                                 {
                                    "name" : "collectorconfigmt_name"
                                 },
                                 {
                                    "name" : "collectorconfigmt_priority"
                                 },
                                 {
                                    "name" : "collectorconfigmt_noscript"
                                 },
                                 {
                                    "name" : "collectorconfigmt_embedjs"
                                 },
                                 {
                                    "name" : "collectorconfigmt_img"
                                 },
                                 {
                                    "name" : "collectorconfigmt_postjs"
                                 },
                                 {
                                    "name" : "collectorconfigmt_id"
                                 },
                                 {
                                    "name" : "collectorconfigmt_start"
                                 },
                                 {
                                    "name" : "collectorconfigmt_active"
                                 },
                                 {
                                    "name" : "collectorconfigmt_iframe"
                                 }
                              ],
                              "rows" : [
                                 [
                                    null,
                                    "73",
                                    "N",
                                    null,
                                    "N",
                                    null,
                                    "pDNfSCGZaXkRglPltlN.gs1jO4kZxFG_dxvqXyHkvsWMij.rAA--",
                                    "0",
                                    "5000",
                                    "N",
                                    null,
                                    "0",
                                    "EMS - Confirmation",
                                    "0",
                                    null,
                                    "N",
                                    null,
                                    null,
                                    "3",
                                    "0",
                                    "N",
                                    null
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "TMS"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/search.json?dir=DESC&limit=25&publisher-archive=Y&publisher-fname=my-test-publisher-fname&publisher-fname-exact=1&publisher-lname=my-test-publisher-lname&publisher-lname-exact=1&publisher-name=my-test-publisher&publisher-name-exact=1&publisher-phone=my-test-publisher-phone&publisher-phone-exact=1&publisher-servable=Y&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/search.json?dir=DESC&limit=25&publisher-archive=Y&publisher-fname=my-test-publisher-fname&publisher-fname-exact=1&publisher-lname=my-test-publisher-lname&publisher-lname-exact=1&publisher-name=my-test-publisher&publisher-name-exact=1&publisher-phone=my-test-publisher-phone&publisher-phone-exact=1&publisher-servable=Y&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/search.json?dir=DESC&limit=25&publisher-archive=Y&publisher-fname=my-test-publisher-fname&publisher-fname-exact=1&publisher-lname=my-test-publisher-lname&publisher-lname-exact=1&publisher-name=my-test-publisher&publisher-name-exact=1&publisher-phone=my-test-publisher-phone&publisher-phone-exact=1&publisher-servable=Y&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&publisher-archive=Y&publisher-fname=my-test-publisher-fname&publisher-fname-exact=1&publisher-lname=my-test-publisher-lname&publisher-lname-exact=1&publisher-name=my-test-publisher&publisher-name-exact=1&publisher-phone=my-test-publisher-phone&publisher-phone-exact=1&publisher-servable=Y&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigmt/set_active.json" : {
         "post" : {
            "description" : "This method allows you to activate a tag on your website.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigmt&method=set_active"
            },
            "operationId" : "setActiveTMS",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the tag you want to activate.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "collectorconfigmt-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Activate a tag",
            "tags" : [
               "TMS"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"collectorconfigmt-id=1777564991\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/set_active.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'collectorconfigmt-id' => '1777564991'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/set_active.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/set_active.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('collectorconfigmt-id=1777564991');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'collectorconfigmt-id' : '1777564991'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigmt/set_inactive.json" : {
         "post" : {
            "description" : "This method allows you to disactivate a tag on your website.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigmt&method=set_inactive"
            },
            "operationId" : "setInactiveTMS",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the tag you want to disactivate.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "collectorconfigmt-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Disactivate a tag",
            "tags" : [
               "TMS"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"collectorconfigmt-id=1777564991\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/set_inactive.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'collectorconfigmt-id' => '1777564991'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/set_inactive.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/set_inactive.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('collectorconfigmt-id=1777564991');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'collectorconfigmt-id' : '1777564991'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigmt/set_pending.json" : {
         "post" : {
            "description" : "This method allows you to change the status of the tag to a Pending tag, so that the target user account can change the status to active or inactive.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigmt&method=set_pending"
            },
            "operationId" : "setPendingTMS",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the tag you want to set in Pending mode.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "collectorconfigmt-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Enable as a pending tag.",
            "tags" : [
               "TMS"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"collectorconfigmt-id=1777564991\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/set_pending.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'collectorconfigmt-id' => '1777564991'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/set_pending.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/set_pending.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('collectorconfigmt-id=1777564991');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'collectorconfigmt-id' : '1777564991'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigmt/set_test.json" : {
         "post" : {
            "description" : "This method allows you to change the status of the tag to a Test tag, when you want only a specific subset of users can check the behaviour of the tag on the website.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigmt&method=set_test"
            },
            "operationId" : "setTestTMS",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the tag you want to set in test mode.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "collectorconfigmt-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Enable as test tag.",
            "tags" : [
               "TMS"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"collectorconfigmt-id=1777564991\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/set_test.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'collectorconfigmt-id' => '1777564991'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/set_test.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/set_test.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('collectorconfigmt-id=1777564991');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'collectorconfigmt-id' : '1777564991'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigmt/update.json" : {
         "post" : {
            "description" : "This query allows for updating the attributes of an existing tag.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigmt&method=update"
            },
            "operationId" : "updateTMS",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the tag for which you want to modify attributes",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "collectorconfigmt-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new collectorconfigmt name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "collectorconfigmt-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new collectorconfigmt onload",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "collectorconfigmt-onload",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "new collectorconfigmt embedjs",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "collectorconfigmt-embedjs",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "new archive status",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "collectorconfigmt-archive",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "new collectorconfigmt timeout in milliseconds",
                  "example" : 556,
                  "in" : "query",
                  "name" : "collectorconfigmt-timeout",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new collectorconfigmt start date in epoch time",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "collectorconfigmt-start",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new collectorconfigmt stop date in epoch time",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "collectorconfigmt-stop",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new collectorconfigmt priority, between 0 & 10, lower to higher",
                  "example" : 5,
                  "in" : "query",
                  "name" : "collectorconfigmt-priority",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "collectorconfigmt_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       73
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchTMS" : {
                        "description" : "Use the value of collectorconfigmt_id entry to update a collectorconfigmt through collectorconfigmt-id parameter.",
                        "operationId" : "searchTMS",
                        "parameters" : {
                           "collectorconfigmt-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing tag.",
            "tags" : [
               "TMS"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"collectorconfigmt-archive=Y&collectorconfigmt-embedjs=Y&collectorconfigmt-id=1777564991&collectorconfigmt-name=New%20name&collectorconfigmt-onload=Y&collectorconfigmt-priority=5&collectorconfigmt-start=1777564991&collectorconfigmt-stop=1777564991&collectorconfigmt-timeout=556\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'collectorconfigmt-archive' => 'Y',\n'collectorconfigmt-embedjs' => 'Y',\n'collectorconfigmt-id' => '1777564991',\n'collectorconfigmt-name' => 'New name',\n'collectorconfigmt-onload' => 'Y',\n'collectorconfigmt-priority' => '5',\n'collectorconfigmt-start' => '1777564991',\n'collectorconfigmt-stop' => '1777564991',\n'collectorconfigmt-timeout' => '556'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigmt/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('collectorconfigmt-archive=Y&collectorconfigmt-embedjs=Y&collectorconfigmt-id=1777564991&collectorconfigmt-name=New%20name&collectorconfigmt-onload=Y&collectorconfigmt-priority=5&collectorconfigmt-start=1777564991&collectorconfigmt-stop=1777564991&collectorconfigmt-timeout=556');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'collectorconfigmt-archive' : 'Y',\n'collectorconfigmt-embedjs' : 'Y',\n'collectorconfigmt-id' : '1777564991',\n'collectorconfigmt-name' : 'New%20name',\n'collectorconfigmt-onload' : 'Y',\n'collectorconfigmt-priority' : '5',\n'collectorconfigmt-start' : '1777564991',\n'collectorconfigmt-stop' : '1777564991',\n'collectorconfigmt-timeout' : '556'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigpmcategory/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new collectorconfigpmcategory for CMP.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigpmcategory&method=create"
            },
            "operationId" : "createCategory",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the collectorconfigpmcategory",
                  "example" : "my-test-category-name",
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate if this category is mandatory or not, this means the tags linked to that this category is mandatory or not, this means the tags linked to that category cannot be disabled.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-mandatory",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate if this category can be shonw to the end-user.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-selected",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate if this category is archived or not.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-archive",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate if this category is noconsent or not.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-noconsent",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "collectorconfigpmcategory_id"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_name"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_mandatory"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_selected"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_archive"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_noconsent"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "10",
                                    "api-1521206069",
                                    "N",
                                    "Y",
                                    "N",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new CMP category.",
            "tags" : [
               "Category"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"collectorconfigpmcategory-archive=Y&collectorconfigpmcategory-mandatory=N&collectorconfigpmcategory-name=my-test-category-name&collectorconfigpmcategory-noconsent=Y&collectorconfigpmcategory-selected=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategory/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'collectorconfigpmcategory-archive' => 'Y',\n'collectorconfigpmcategory-mandatory' => 'N',\n'collectorconfigpmcategory-name' => 'my-test-category-name',\n'collectorconfigpmcategory-noconsent' => 'Y',\n'collectorconfigpmcategory-selected' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategory/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategory/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('collectorconfigpmcategory-archive=Y&collectorconfigpmcategory-mandatory=N&collectorconfigpmcategory-name=my-test-category-name&collectorconfigpmcategory-noconsent=Y&collectorconfigpmcategory-selected=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'collectorconfigpmcategory-archive' : 'Y',\n'collectorconfigpmcategory-mandatory' : 'N',\n'collectorconfigpmcategory-name' : 'my-test-category-name',\n'collectorconfigpmcategory-noconsent' : 'Y',\n'collectorconfigpmcategory-selected' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigpmcategory/exists.json" : {
         "get" : {
            "description" : "This query will check if a collectorconfigpmcategory-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigpmcategory&method=exists"
            },
            "operationId" : "existsCategory",
            "parameters" : [
               {
                  "description" : "name of the collectorconfigpmcategory to check",
                  "example" : "my-test-category-template",
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "collectorconfigpmcategory_name"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_id"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_mandatory"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_sort"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_selected"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_archive"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_noconsent"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "fonctionnel",
                                    "1",
                                    "N",
                                    "1",
                                    "Y",
                                    "N",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a collectorconfigpmcategory-name exists",
            "tags" : [
               "Category"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategory/exists.json?collectorconfigpmcategory-name=my-test-category-template\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategory/exists.json?collectorconfigpmcategory-name=my-test-category-template',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategory/exists.json?collectorconfigpmcategory-name=my-test-category-template');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'collectorconfigpmcategory-name=my-test-category-template'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategory/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigpmcategory/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigpmcategory&method=search"
            },
            "operationId" : "searchCategory",
            "parameters" : [
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-archive",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the collectorconfigpmcategory",
                  "example" : "my-test-category-name",
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on noconsent flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-noconsent",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on selected flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-selected",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "collectorconfigpmcategory_id"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_name"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_mandatory"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_sort"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_selected"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_archive"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_noconsent"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "fonctionnel",
                                    "N",
                                    "1",
                                    "Y",
                                    "N",
                                    "N"
                                 ],
                                 [
                                    "2",
                                    "publicitaire",
                                    "N",
                                    "2",
                                    "Y",
                                    "N",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Category"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategory/search.json?collectorconfigpmcategory-active=Y&collectorconfigpmcategory-archive=Y&collectorconfigpmcategory-name=my-test-category-name&collectorconfigpmcategory-name-exact=1&collectorconfigpmcategory-noconsent=Y&collectorconfigpmcategory-selected=Y&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategory/search.json?collectorconfigpmcategory-active=Y&collectorconfigpmcategory-archive=Y&collectorconfigpmcategory-name=my-test-category-name&collectorconfigpmcategory-name-exact=1&collectorconfigpmcategory-noconsent=Y&collectorconfigpmcategory-selected=Y&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategory/search.json?collectorconfigpmcategory-active=Y&collectorconfigpmcategory-archive=Y&collectorconfigpmcategory-name=my-test-category-name&collectorconfigpmcategory-name-exact=1&collectorconfigpmcategory-noconsent=Y&collectorconfigpmcategory-selected=Y&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'collectorconfigpmcategory-active=Y&collectorconfigpmcategory-archive=Y&collectorconfigpmcategory-name=my-test-category-name&collectorconfigpmcategory-name-exact=1&collectorconfigpmcategory-noconsent=Y&collectorconfigpmcategory-selected=Y&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategory/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigpmcategory/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing collectorconfigpmcategory.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigpmcategory&method=update"
            },
            "operationId" : "updateCategory",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the collectorconfigpmcategory for which you want to modify attributes",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new collectorconfigpmcategory name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the mandatory attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-mandatory",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the selected attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-selected",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the achive attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-archive",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the noconsent attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-noconsent",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set the sort order to the new provided index.",
                  "example" : 2,
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-sort",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "collectorconfigpmcategory_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564991
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchCategory" : {
                        "description" : "Use the value of collectorconfigpmcategory_id entry to update a collectorconfigpmcategory through collectorconfigpmcategory-id parameter.",
                        "operationId" : "searchCategory",
                        "parameters" : {
                           "collectorconfigpmcategory-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing collectorconfigpmcategory.",
            "tags" : [
               "Category"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"collectorconfigpmcategory-archive=Y&collectorconfigpmcategory-id=1777564991&collectorconfigpmcategory-mandatory=Y&collectorconfigpmcategory-name=New%20name&collectorconfigpmcategory-noconsent=Y&collectorconfigpmcategory-selected=Y&collectorconfigpmcategory-sort=2\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategory/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'collectorconfigpmcategory-archive' => 'Y',\n'collectorconfigpmcategory-id' => '1777564991',\n'collectorconfigpmcategory-mandatory' => 'Y',\n'collectorconfigpmcategory-name' => 'New name',\n'collectorconfigpmcategory-noconsent' => 'Y',\n'collectorconfigpmcategory-selected' => 'Y',\n'collectorconfigpmcategory-sort' => '2'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategory/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategory/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('collectorconfigpmcategory-archive=Y&collectorconfigpmcategory-id=1777564991&collectorconfigpmcategory-mandatory=Y&collectorconfigpmcategory-name=New%20name&collectorconfigpmcategory-noconsent=Y&collectorconfigpmcategory-selected=Y&collectorconfigpmcategory-sort=2');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'collectorconfigpmcategory-archive' : 'Y',\n'collectorconfigpmcategory-id' : '1777564991',\n'collectorconfigpmcategory-mandatory' : 'Y',\n'collectorconfigpmcategory-name' : 'New%20name',\n'collectorconfigpmcategory-noconsent' : 'Y',\n'collectorconfigpmcategory-selected' : 'Y',\n'collectorconfigpmcategory-sort' : '2'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigpmcategorydataconnector/get_by_dataconnector.json" : {
         "get" : {
            "description" : "This query allows for returning the list of categories linked to one or more dataconnector-id.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigpmcategorydataconnector&method=get_by_dataconnector"
            },
            "operationId" : "getByDataconnectorServer2ServerDataConnector",
            "parameters" : [
               {
                  "description" : "id of the dataconnector-id you want to request. You can provide a list of id if you join them with |, ex: dataconnector-id=1|456|54 will fetch 3 entries",
                  "example" : "1|456|54",
                  "in" : "query",
                  "name" : "dataconnector-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "collectorconfigpmcategory_id"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_name"
                                 },
                                 {
                                    "name" : "dataconnector_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "2",
                                    "publicitaire",
                                    "1"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get all the linked categories.",
            "tags" : [
               "Server2Server DataConnector"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorydataconnector/get_by_dataconnector.json?dataconnector-id=1%7C456%7C54\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorydataconnector/get_by_dataconnector.json?dataconnector-id=1|456|54',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorydataconnector/get_by_dataconnector.json?dataconnector-id=1|456|54');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dataconnector-id=1%7C456%7C54'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorydataconnector/get_by_dataconnector.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigpmcategorydataconnector/getall_by_category.json" : {
         "get" : {
            "description" : "This query will retrieve all the dataconnectors linked to the provided category. No pagination, no filtering is available.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigpmcategorydataconnector&method=getall_by_category"
            },
            "operationId" : "getallByCategoryServer2ServerDataConnector",
            "parameters" : [
               {
                  "description" : "id of the CMP category you want the dataconnectors linked to.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "dataconnector_id"
                                 },
                                 {
                                    "name" : "dataconnector_name"
                                 },
                                 {
                                    "name" : "dataconnector_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "sdfsdfsd",
                                    "T"
                                 ],
                                 [
                                    "43",
                                    "sdfdfghfhdjd",
                                    "N"
                                 ],
                                 [
                                    "46",
                                    "sdfddfsgg",
                                    "N"
                                 ],
                                 [
                                    "82",
                                    "test-cat2",
                                    "N"
                                 ],
                                 [
                                    "100",
                                    "test-cat4",
                                    "N"
                                 ],
                                 [
                                    "109",
                                    "test-cat5",
                                    "N"
                                 ],
                                 [
                                    "127",
                                    "54654656",
                                    "N"
                                 ],
                                 [
                                    "136",
                                    "dsfsdfsdfsdfs",
                                    "N"
                                 ],
                                 [
                                    "145",
                                    "sdfffds2323",
                                    "N"
                                 ],
                                 [
                                    "235",
                                    "new-add2",
                                    "N"
                                 ],
                                 [
                                    "244",
                                    "add-new23",
                                    "N"
                                 ],
                                 [
                                    "262",
                                    "tatreztretret",
                                    "N"
                                 ],
                                 [
                                    "289",
                                    "test - add slint",
                                    "N"
                                 ],
                                 [
                                    "343",
                                    "test-tms-vk",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 14
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get all entries for a given category.",
            "tags" : [
               "Server2Server DataConnector"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorydataconnector/getall_by_category.json?collectorconfigpmcategory-id=1777564991&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorydataconnector/getall_by_category.json?collectorconfigpmcategory-id=1777564991&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorydataconnector/getall_by_category.json?collectorconfigpmcategory-id=1777564991&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'collectorconfigpmcategory-id=1777564991&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorydataconnector/getall_by_category.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigpmcategorydataconnector/is_linked.json" : {
         "get" : {
            "description" : "This query will return the CMP category to which the provided dataconnector is linked to, error otherwise.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigpmcategorydataconnector&method=is_linked"
            },
            "operationId" : "isLinkedServer2ServerDataConnector",
            "parameters" : [
               {
                  "description" : "id of the tag you want to link.",
                  "example" : 1777564931,
                  "in" : "query",
                  "name" : "dataconnector-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "collectorconfigpmcategory_id"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_name"
                                 },
                                 {
                                    "name" : "dataconnector_id"
                                 },
                                 {
                                    "name" : "dataconnector_name"
                                 },
                                 {
                                    "name" : "dataconnector_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "fonctionnel - 1521206885 - 1521206946 - 1521206953",
                                    1,
                                    "sdfsdfsd",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if the category is linked to a dataconnector.",
            "tags" : [
               "Server2Server DataConnector"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorydataconnector/is_linked.json?dataconnector-id=1777564931\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorydataconnector/is_linked.json?dataconnector-id=1777564931',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorydataconnector/is_linked.json?dataconnector-id=1777564931');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dataconnector-id=1777564931'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorydataconnector/is_linked.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigpmcategorydataconnector/link.json" : {
         "post" : {
            "description" : "This query will link the provided dataconnector to the provided CMP category.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigpmcategorydataconnector&method=link"
            },
            "operationId" : "linkServer2ServerDataConnector",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the CMP category you want to link.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the dataconnector you want to link.",
                  "example" : 1777564931,
                  "in" : "query",
                  "name" : "dataconnector-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Link a dataconnector to an CMP category.",
            "tags" : [
               "Server2Server DataConnector"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"collectorconfigpmcategory-id=1777564991&dataconnector-id=1777564931\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorydataconnector/link.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'collectorconfigpmcategory-id' => '1777564991',\n'dataconnector-id' => '1777564931'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorydataconnector/link.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorydataconnector/link.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('collectorconfigpmcategory-id=1777564991&dataconnector-id=1777564931');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'collectorconfigpmcategory-id' : '1777564991',\n'dataconnector-id' : '1777564931'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigpmcategorylang/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new CMP category.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigpmcategorylang&method=create"
            },
            "operationId" : "createCategoryLanguage",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the lang to use (available list through get_available_lang)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "lang-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the collectorconfigpmcategory for which you want to create the language texts",
                  "example" : 1,
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new header name",
                  "example" : "New header name",
                  "in" : "query",
                  "name" : "collectorconfigpmcategorylang-hdr",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new description of the category",
                  "example" : "New description",
                  "in" : "query",
                  "name" : "collectorconfigpmcategorylang-desc",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "collectorconfigpmcategorylang_id"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategorylang_hdr"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategorylang_desc"
                                 },
                                 {
                                    "name" : "lang_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "37",
                                    "HDR Cat FR",
                                    "Description categorie",
                                    "fr"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new collectorconfigpmcategorylang entry.",
            "tags" : [
               "Category Language"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"collectorconfigpmcategory-id=1&collectorconfigpmcategorylang-desc=New%20description&collectorconfigpmcategorylang-hdr=New%20header%20name&lang-id=1\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'collectorconfigpmcategory-id' => '1',\n'collectorconfigpmcategorylang-desc' => 'New description',\n'collectorconfigpmcategorylang-hdr' => 'New header name',\n'lang-id' => '1'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('collectorconfigpmcategory-id=1&collectorconfigpmcategorylang-desc=New%20description&collectorconfigpmcategorylang-hdr=New%20header%20name&lang-id=1');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'collectorconfigpmcategory-id' : '1',\n'collectorconfigpmcategorylang-desc' : 'New%20description',\n'collectorconfigpmcategorylang-hdr' : 'New%20header%20name',\n'lang-id' : '1'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigpmcategorylang/exists.json" : {
         "get" : {
            "description" : "This query will check if a collectorconfigpmcategory exists in a given lang.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigpmcategorylang&method=exists"
            },
            "operationId" : "existsCategoryLanguage",
            "parameters" : [
               {
                  "description" : "id of the collectorconfigpmcategory for which you want to create the language texts",
                  "example" : 1777564931,
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the lang to use (available list through get_available_lang)",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "lang-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "collectorconfigpmcategorylang_id"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_id"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategorylang_desc"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategorylang_hdr"
                                 },
                                 {
                                    "name" : "lang_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "10",
                                    "1",
                                    null,
                                    "HDR Cat FR",
                                    "fr"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a collectorconfigpmcategorylang-name exists",
            "tags" : [
               "Category Language"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/exists.json?collectorconfigpmcategory-id=1777564931&lang-id=1777564991\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/exists.json?collectorconfigpmcategory-id=1777564931&lang-id=1777564991',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/exists.json?collectorconfigpmcategory-id=1777564931&lang-id=1777564991');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'collectorconfigpmcategory-id=1777564931&lang-id=1777564991'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigpmcategorylang/get_all_lang.json" : {
         "get" : {
            "description" : "This query will retrieve all the availables languages defined for a given category.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigpmcategorylang&method=get_all_lang"
            },
            "operationId" : "getAllLangCategoryLanguage",
            "parameters" : [
               {
                  "description" : "id of the collectorconfigpmcategory for which you want to create the language texts",
                  "example" : 1777564931,
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "collectorconfigpmcategorylang_id"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategorylang_hdr"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategorylang_desc"
                                 },
                                 {
                                    "name" : "lang_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "19",
                                    "HDR Cat EN",
                                    "",
                                    "en"
                                 ],
                                 [
                                    "28",
                                    "HDR Cat ES",
                                    "",
                                    "es"
                                 ],
                                 [
                                    "10",
                                    "HDR Cat FR",
                                    "",
                                    "fr"
                                 ],
                                 [
                                    "37",
                                    "HDR Cat IT",
                                    "",
                                    "it"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 4
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get all language.",
            "tags" : [
               "Category Language"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/get_all_lang.json?collectorconfigpmcategory-id=1777564931\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/get_all_lang.json?collectorconfigpmcategory-id=1777564931',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/get_all_lang.json?collectorconfigpmcategory-id=1777564931');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'collectorconfigpmcategory-id=1777564931'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/get_all_lang.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigpmcategorylang/get_available_lang.json" : {
         "get" : {
            "description" : "This query will retrieve all the availables languages authorized by CMP.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigpmcategorylang&method=get_available_lang"
            },
            "operationId" : "getAvailableLangCategoryLanguage",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "lang_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "fr"
                                 ],
                                 [
                                    "en"
                                 ],
                                 [
                                    "es"
                                 ],
                                 [
                                    "it"
                                 ],
                                 [
                                    "de"
                                 ],
                                 [
                                    "nl"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 6
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "This query will retrieve all the availables languages authorized by CMP.",
            "tags" : [
               "Category Language"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/get_available_lang.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/get_available_lang.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/get_available_lang.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/get_available_lang.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigpmcategorylang/get_for_lang.json" : {
         "get" : {
            "description" : " This query will retrieve the texts for a  given category in a given language.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigpmcategorylang&method=get_for_lang"
            },
            "operationId" : "getForLangCategoryLanguage",
            "parameters" : [
               {
                  "description" : "id of the collectorconfigpmcategory for which you want to create the language texts",
                  "example" : 1777564931,
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the lang to use (available list through get_available_lang)",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "lang-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "collectorconfigpmcategorylang_id"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategorylang_hdr"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategorylang_desc"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "10",
                                    "HDR Cat FR",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get all the entries for a category & language.",
            "tags" : [
               "Category Language"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/get_for_lang.json?collectorconfigpmcategory-id=1777564931&lang-id=1777564991\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/get_for_lang.json?collectorconfigpmcategory-id=1777564931&lang-id=1777564991',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/get_for_lang.json?collectorconfigpmcategory-id=1777564931&lang-id=1777564991');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'collectorconfigpmcategory-id=1777564931&lang-id=1777564991'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/get_for_lang.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigpmcategorylang/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing collectorconfigpmcategory template. You must provide at least one of hdr or desc parameters for the update to be done.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigpmcategorylang&method=update"
            },
            "operationId" : "updateCategoryLanguage",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the collectorconfigpmcategorylang for which you want to modify attributes",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "collectorconfigpmcategorylang-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new header name",
                  "example" : "New header name",
                  "in" : "query",
                  "name" : "collectorconfigpmcategorylang-hdr",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new description of the category",
                  "example" : "New description",
                  "in" : "query",
                  "name" : "collectorconfigpmcategorylang-desc",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "collectorconfigpmcategorylang_id"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategorylang_hdr"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategorylang_desc"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "New HDR 1521470031",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Update an existing category.",
            "tags" : [
               "Category Language"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"collectorconfigpmcategorylang-desc=New%20description&collectorconfigpmcategorylang-hdr=New%20header%20name&collectorconfigpmcategorylang-id=1777564991\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'collectorconfigpmcategorylang-desc' => 'New description',\n'collectorconfigpmcategorylang-hdr' => 'New header name',\n'collectorconfigpmcategorylang-id' => '1777564991'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorylang/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('collectorconfigpmcategorylang-desc=New%20description&collectorconfigpmcategorylang-hdr=New%20header%20name&collectorconfigpmcategorylang-id=1777564991');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'collectorconfigpmcategorylang-desc' : 'New%20description',\n'collectorconfigpmcategorylang-hdr' : 'New%20header%20name',\n'collectorconfigpmcategorylang-id' : '1777564991'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigpmcategorymt/get_by_collectorconfigmt.json" : {
         "get" : {
            "description" : "This query allows for returning the list of categories linked to one or more collectorconfigmt-id.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigpmcategorymt&method=get_by_collectorconfigmt"
            },
            "operationId" : "getByCollectorconfigmtTMSTags",
            "parameters" : [
               {
                  "description" : "id of the collectorconfigmt-id you want to request. You can provide a list of id if you join them with |, ex: collectorconfigmt-id=1|456|54 will fetch 3 entries",
                  "example" : "1|456|54",
                  "in" : "query",
                  "name" : "collectorconfigmt-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "collectorconfigpmcategory_id"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_name"
                                 },
                                 {
                                    "name" : "collectorconfigmt_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "2",
                                    "publicitaire",
                                    "1"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get all the linked categories.",
            "tags" : [
               "TMS Tags"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorymt/get_by_collectorconfigmt.json?collectorconfigmt-id=1%7C456%7C54\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorymt/get_by_collectorconfigmt.json?collectorconfigmt-id=1|456|54',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorymt/get_by_collectorconfigmt.json?collectorconfigmt-id=1|456|54');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'collectorconfigmt-id=1%7C456%7C54'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorymt/get_by_collectorconfigmt.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigpmcategorymt/getall_by_category.json" : {
         "get" : {
            "description" : "This query will retrieve all the tags linked to the provided category. No pagination, no filtering is available.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigpmcategorymt&method=getall_by_category"
            },
            "operationId" : "getallByCategoryTMSTags",
            "parameters" : [
               {
                  "description" : "id of the CMP category you want the tags linked to.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "collectorconfigmt_id"
                                 },
                                 {
                                    "name" : "collectorconfigmt_name"
                                 },
                                 {
                                    "name" : "collectorconfigmt_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "sdfsdfsd",
                                    "T"
                                 ],
                                 [
                                    "43",
                                    "sdfdfghfhdjd",
                                    "N"
                                 ],
                                 [
                                    "46",
                                    "sdfddfsgg",
                                    "N"
                                 ],
                                 [
                                    "82",
                                    "test-cat2",
                                    "N"
                                 ],
                                 [
                                    "100",
                                    "test-cat4",
                                    "N"
                                 ],
                                 [
                                    "109",
                                    "test-cat5",
                                    "N"
                                 ],
                                 [
                                    "127",
                                    "54654656",
                                    "N"
                                 ],
                                 [
                                    "136",
                                    "dsfsdfsdfsdfs",
                                    "N"
                                 ],
                                 [
                                    "145",
                                    "sdfffds2323",
                                    "N"
                                 ],
                                 [
                                    "235",
                                    "new-add2",
                                    "N"
                                 ],
                                 [
                                    "244",
                                    "add-new23",
                                    "N"
                                 ],
                                 [
                                    "262",
                                    "tatreztretret",
                                    "N"
                                 ],
                                 [
                                    "289",
                                    "test - add slint",
                                    "N"
                                 ],
                                 [
                                    "343",
                                    "test-tms-vk",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 14
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get all entries for a given category.",
            "tags" : [
               "TMS Tags"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorymt/getall_by_category.json?collectorconfigpmcategory-id=1777564991&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorymt/getall_by_category.json?collectorconfigpmcategory-id=1777564991&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorymt/getall_by_category.json?collectorconfigpmcategory-id=1777564991&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'collectorconfigpmcategory-id=1777564991&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorymt/getall_by_category.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigpmcategorymt/is_linked.json" : {
         "get" : {
            "description" : "This query will return the CMP category to which the provided tag is linked to, error otherwise.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigpmcategorymt&method=is_linked"
            },
            "operationId" : "isLinkedTMSTags",
            "parameters" : [
               {
                  "description" : "id of the tag you want to link.",
                  "example" : 1777564931,
                  "in" : "query",
                  "name" : "collectorconfigmt-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "collectorconfigpmcategory_id"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_name"
                                 },
                                 {
                                    "name" : "collectorconfigmt_id"
                                 },
                                 {
                                    "name" : "collectorconfigmt_name"
                                 },
                                 {
                                    "name" : "collectorconfigmt_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "fonctionnel - 1521206885 - 1521206946 - 1521206953",
                                    1,
                                    "sdfsdfsd",
                                    "T"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if the category is linked to a tag.",
            "tags" : [
               "TMS Tags"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorymt/is_linked.json?collectorconfigmt-id=1777564931\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorymt/is_linked.json?collectorconfigmt-id=1777564931',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorymt/is_linked.json?collectorconfigmt-id=1777564931');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'collectorconfigmt-id=1777564931'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorymt/is_linked.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/collectorconfigpmcategorymt/link.json" : {
         "post" : {
            "description" : "This query will link the provided tag to the provided CMP category.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=collectorconfigpmcategorymt&method=link"
            },
            "operationId" : "linkTMSTags",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the CMP category you want to link.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "collectorconfigpmcategory-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the tag you want to link.",
                  "example" : 1777564931,
                  "in" : "query",
                  "name" : "collectorconfigmt-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Link a tag to an CMP category.",
            "tags" : [
               "TMS Tags"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"collectorconfigmt-id=1777564931&collectorconfigpmcategory-id=1777564991\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorymt/link.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'collectorconfigmt-id' => '1777564931',\n'collectorconfigpmcategory-id' => '1777564991'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorymt/link.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/collectorconfigpmcategorymt/link.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('collectorconfigmt-id=1777564931&collectorconfigpmcategory-id=1777564991');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'collectorconfigmt-id' : '1777564931',\n'collectorconfigpmcategory-id' : '1777564991'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/contextflag/exists.json" : {
         "get" : {
            "description" : " This query will check if a contextflag-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=contextflag&method=exists"
            },
            "operationId" : "existsContextFlag",
            "parameters" : [
               {
                  "description" : "name of the contextflag to check",
                  "example" : "my-test-contextflag",
                  "in" : "query",
                  "name" : "contextflag-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "contextflag_id"
                                 },
                                 {
                                    "name" : "contextflag_name"
                                 },
                                 {
                                    "name" : "contextflagcategory_id"
                                 },
                                 {
                                    "name" : "contextflag_active"
                                 },
                                 {
                                    "name" : "contextflag_desc"
                                 },
                                 {
                                    "name" : "contextflag_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "contextflag name 1",
                                    "15",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a contextflag-name exists",
            "tags" : [
               "ContextFlag"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflag/exists.json?contextflag-name=my-test-contextflag\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflag/exists.json?contextflag-name=my-test-contextflag',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflag/exists.json?contextflag-name=my-test-contextflag');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'contextflag-name=my-test-contextflag'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflag/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/contextflag/lookup.json" : {
         "get" : {
            "description" : "This query will check in the system where the given contextflag is used.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=contextflag&method=lookup"
            },
            "operationId" : "lookupContextFlag",
            "parameters" : [
               {
                  "description" : "indicate to limit the search to a specific class of parameters, you can provide multiple classes by using commas. eg: dataconnector,coldebmdb",
                  "example" : "dataconnector",
                  "in" : "query",
                  "name" : "class",
                  "schema" : {
                     "enum" : [
                        "ergmacrotemplate",
                        "opedataparam",
                        "tpcreativeengine",
                        "collectorconfigmthandler",
                        "dataconnector",
                        "contextflagvalue",
                        "denysitecentric",
                        "clickdispatcher",
                        "view",
                        "tpcampaignelttargeting",
                        "campaignelttargeting",
                        "ebmdb",
                        "coldebmdb"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "default" : "rule",
                  "description" : "indicate to limit the search to a specific context, you can provide multiple context by using commas. eg: rule",
                  "example" : "rule",
                  "in" : "query",
                  "name" : "context",
                  "schema" : {
                     "enum" : [
                        "rule"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the contextflag for which you want to do the lookup.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "contextflag-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "context"
                                 },
                                 {
                                    "name" : "id"
                                 },
                                 {
                                    "name" : "name"
                                 },
                                 {
                                    "name" : "class"
                                 },
                                 {
                                    "name" : "type"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "rule",
                                    "481",
                                    "TV",
                                    "ebmdbreq",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Lookup the usage of the contextflag.",
            "tags" : [
               "ContextFlag"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflag/lookup.json?class=dataconnector&context=rule&contextflag-id=1777564991\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflag/lookup.json?class=dataconnector&context=rule&contextflag-id=1777564991',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflag/lookup.json?class=dataconnector&context=rule&contextflag-id=1777564991');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'class=dataconnector&context=rule&contextflag-id=1777564991'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflag/lookup.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/contextflag/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=contextflag&method=search"
            },
            "operationId" : "searchContextFlag",
            "parameters" : [
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "contextflag-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the contextflag",
                  "example" : "my-test-contextflag",
                  "in" : "query",
                  "name" : "contextflag-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "contextflag-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the contextflag category, you can provide multiple entries separated by |",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "contextflagcategory-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "contextflag_id"
                                 },
                                 {
                                    "name" : "contextflag_name"
                                 },
                                 {
                                    "name" : "contextflagcategory_id"
                                 },
                                 {
                                    "name" : "contextflag_active"
                                 },
                                 {
                                    "name" : "contextflag_desc"
                                 },
                                 {
                                    "name" : "contextflag_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "contextflag name 1",
                                    "15",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "ContextFlag"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflag/search.json?contextflag-active=Y&contextflag-name=my-test-contextflag&contextflag-name-exact=1&contextflagcategory-id=1777564991&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflag/search.json?contextflag-active=Y&contextflag-name=my-test-contextflag&contextflag-name-exact=1&contextflagcategory-id=1777564991&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflag/search.json?contextflag-active=Y&contextflag-name=my-test-contextflag&contextflag-name-exact=1&contextflagcategory-id=1777564991&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'contextflag-active=Y&contextflag-name=my-test-contextflag&contextflag-name-exact=1&contextflagcategory-id=1777564991&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflag/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/contextflag/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing contextflag.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=contextflag&method=update"
            },
            "operationId" : "updateContextFlag",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the contextflag for which you want to modify attributes",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "contextflag-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the active attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "contextflag-active",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "contextflag_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564991
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchContextFlag" : {
                        "description" : "Use the value of contextflag_id entry to update a contextflag through contextflag-id parameter.",
                        "operationId" : "searchContextFlag",
                        "parameters" : {
                           "contextflag-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing contextflag.",
            "tags" : [
               "ContextFlag"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"contextflag-active=Y&contextflag-id=1777564991\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflag/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'contextflag-active' => 'Y',\n'contextflag-id' => '1777564991'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflag/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflag/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('contextflag-active=Y&contextflag-id=1777564991');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'contextflag-active' : 'Y',\n'contextflag-id' : '1777564991'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/contextflagcategory/exists.json" : {
         "get" : {
            "description" : " This query will check if a contextflagcategory-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=contextflagcategory&method=exists"
            },
            "operationId" : "existsContextFlagCategory",
            "parameters" : [
               {
                  "description" : "name of the contextflagcategory to check",
                  "example" : "my-test-contextflagcategory",
                  "in" : "query",
                  "name" : "contextflagcategory-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "contextflagcategory_id"
                                 },
                                 {
                                    "name" : "contextflagcategory_name"
                                 },
                                 {
                                    "name" : "contextflagcategorycategory_id"
                                 },
                                 {
                                    "name" : "contextflagcategory_active"
                                 },
                                 {
                                    "name" : "contextflagcategory_desc"
                                 },
                                 {
                                    "name" : "contextflagcategory_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "contextflagcategory name 1",
                                    "15",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a contextflagcategory-name exists",
            "tags" : [
               "ContextFlag Category"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflagcategory/exists.json?contextflagcategory-name=my-test-contextflagcategory\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflagcategory/exists.json?contextflagcategory-name=my-test-contextflagcategory',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflagcategory/exists.json?contextflagcategory-name=my-test-contextflagcategory');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'contextflagcategory-name=my-test-contextflagcategory'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflagcategory/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/contextflagcategory/lookup.json" : {
         "get" : {
            "description" : "This query will check in the system where the given contextflagcategory is used.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=contextflagcategory&method=lookup"
            },
            "operationId" : "lookupContextFlagCategory",
            "parameters" : [
               {
                  "description" : "indicate to limit the search to a specific class of parameters, you can provide multiple classes by using commas. eg: dataconnector,coldebmdb",
                  "example" : "dataconnector",
                  "in" : "query",
                  "name" : "class",
                  "schema" : {
                     "enum" : [
                        "ergmacrotemplate",
                        "opedataparam",
                        "tpcreativeengine",
                        "collectorconfigmthandler",
                        "dataconnector",
                        "contextflagcategoryvalue",
                        "denysitecentric",
                        "clickdispatcher",
                        "view",
                        "tpcampaignelttargeting",
                        "campaignelttargeting",
                        "ebmdb",
                        "coldebmdb"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "default" : "rule",
                  "description" : "indicate to limit the search to a specific context, you can provide multiple context by using commas. eg: rule",
                  "example" : "rule",
                  "in" : "query",
                  "name" : "context",
                  "schema" : {
                     "enum" : [
                        "rule"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the contextflagcategory for which you want to do the lookup.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "contextflagcategory-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "context"
                                 },
                                 {
                                    "name" : "id"
                                 },
                                 {
                                    "name" : "name"
                                 },
                                 {
                                    "name" : "class"
                                 },
                                 {
                                    "name" : "type"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "rule",
                                    "481",
                                    "TV",
                                    "ebmdbreq",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Lookup the usage of the contextflagcategory.",
            "tags" : [
               "ContextFlag Category"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflagcategory/lookup.json?class=dataconnector&context=rule&contextflagcategory-id=1777564991\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflagcategory/lookup.json?class=dataconnector&context=rule&contextflagcategory-id=1777564991',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflagcategory/lookup.json?class=dataconnector&context=rule&contextflagcategory-id=1777564991');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'class=dataconnector&context=rule&contextflagcategory-id=1777564991'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflagcategory/lookup.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/contextflagcategory/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=contextflagcategory&method=search"
            },
            "operationId" : "searchContextFlagCategory",
            "parameters" : [
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "contextflagcategory-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the contextflagcategory",
                  "example" : "my-test-contextflagcategory",
                  "in" : "query",
                  "name" : "contextflagcategory-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "contextflagcategory-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the contextflagcategory category, you can provide multiple entries separated by |",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "contextflagcategorycategory-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "contextflagcategory_id"
                                 },
                                 {
                                    "name" : "contextflagcategory_name"
                                 },
                                 {
                                    "name" : "contextflagcategorycategory_id"
                                 },
                                 {
                                    "name" : "contextflagcategory_active"
                                 },
                                 {
                                    "name" : "contextflagcategory_desc"
                                 },
                                 {
                                    "name" : "contextflagcategory_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "contextflagcategory name 1",
                                    "15",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "ContextFlag Category"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflagcategory/search.json?contextflagcategory-active=Y&contextflagcategory-name=my-test-contextflagcategory&contextflagcategory-name-exact=1&contextflagcategorycategory-id=1777564991&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflagcategory/search.json?contextflagcategory-active=Y&contextflagcategory-name=my-test-contextflagcategory&contextflagcategory-name-exact=1&contextflagcategorycategory-id=1777564991&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflagcategory/search.json?contextflagcategory-active=Y&contextflagcategory-name=my-test-contextflagcategory&contextflagcategory-name-exact=1&contextflagcategorycategory-id=1777564991&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'contextflagcategory-active=Y&contextflagcategory-name=my-test-contextflagcategory&contextflagcategory-name-exact=1&contextflagcategorycategory-id=1777564991&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflagcategory/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/contextflagcategory/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing contextflagcategory.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=contextflagcategory&method=update"
            },
            "operationId" : "updateContextFlagCategory",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the contextflagcategory for which you want to modify attributes",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "contextflagcategory-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the active attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "contextflagcategory-active",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "contextflagcategory_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564991
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchContextFlagCategory" : {
                        "description" : "Use the value of contextflagcategory_id entry to update a contextflagcategory through contextflagcategory-id parameter.",
                        "operationId" : "searchContextFlagCategory",
                        "parameters" : {
                           "contextflagcategory-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing contextflagcategory.",
            "tags" : [
               "ContextFlag Category"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"contextflagcategory-active=Y&contextflagcategory-id=1777564991\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflagcategory/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'contextflagcategory-active' => 'Y',\n'contextflagcategory-id' => '1777564991'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflagcategory/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/contextflagcategory/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('contextflagcategory-active=Y&contextflagcategory-id=1777564991');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'contextflagcategory-active' : 'Y',\n'contextflagcategory-id' : '1777564991'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cookiecontrol/advanced.json" : {
         "get" : {
            "description" : "Know how many times a cookie has been seen along with his cookiepedia data",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cookiecontrol&method=advanced"
            },
            "operationId" : "advancedCookieControl",
            "parameters" : [
               {
                  "description" : "Serve a csv file as the output",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "as-csv",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Id of the cookiepediacompany. Multiple values separated by \"|\" ",
                  "example" : "1",
                  "in" : "query",
                  "name" : "cookiepediacompany-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Id of the cookiepediacompanytool. Multiple values separated by \"|\" ",
                  "example" : "1",
                  "in" : "query",
                  "name" : "cookiepediacompanytool-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Date from, expected format: mm/dd/yyyy",
                  "example" : "06/20/2020",
                  "in" : "query",
                  "name" : "date-from",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "M",
                  "description" : "Date scale",
                  "example" : "M",
                  "in" : "query",
                  "name" : "date-scale",
                  "schema" : {
                     "enum" : [
                        "H",
                        "D",
                        "M"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Date to, expected format: mm/dd/yyyy",
                  "example" : "06/25/2020",
                  "in" : "query",
                  "name" : "date-to",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Id of the devicebrowservendor. Multiple values separated by \"|\" ",
                  "example" : "-12356332",
                  "in" : "query",
                  "name" : "devicebrowservendor-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Id of the devicetype. Multiple values separated by \",\"",
                  "example" : "1,2",
                  "in" : "query",
                  "name" : "ea-subk",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Id of the user segmentation key. Multiple values separated by \",\"",
                  "example" : "1,2",
                  "in" : "query",
                  "name" : "ea-subk2",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Load the cookiecontrol advanced report",
            "tags" : [
               "CookieControl"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrol/advanced.json?as-csv=Y&cookiepediacompany-id=1&cookiepediacompanytool-id=1&date-from=06%2F20%2F2020&date-scale=M&date-to=06%2F25%2F2020&devicebrowservendor-id=-12356332&dir=DESC&ea-subk=1%2C2&ea-subk2=1%2C2&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrol/advanced.json?as-csv=Y&cookiepediacompany-id=1&cookiepediacompanytool-id=1&date-from=06/20/2020&date-scale=M&date-to=06/25/2020&devicebrowservendor-id=-12356332&dir=DESC&ea-subk=1,2&ea-subk2=1,2&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrol/advanced.json?as-csv=Y&cookiepediacompany-id=1&cookiepediacompanytool-id=1&date-from=06/20/2020&date-scale=M&date-to=06/25/2020&devicebrowservendor-id=-12356332&dir=DESC&ea-subk=1,2&ea-subk2=1,2&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'as-csv=Y&cookiepediacompany-id=1&cookiepediacompanytool-id=1&date-from=06%2F20%2F2020&date-scale=M&date-to=06%2F25%2F2020&devicebrowservendor-id=-12356332&dir=DESC&ea-subk=1%2C2&ea-subk2=1%2C2&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrol/advanced.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cookiecontrol/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cookiecontrol&method=search"
            },
            "operationId" : "searchCookieControl",
            "parameters" : [
               {
                  "description" : "name of the cookiecontrol",
                  "example" : 3,
                  "in" : "query",
                  "name" : "cookiecontrol-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the cookiecontrol",
                  "example" : "etuix",
                  "in" : "query",
                  "name" : "cookiecontrol-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "must match the regexp /^(exact|contain|end|start)$/ default=start",
                  "example" : "contain",
                  "in" : "query",
                  "name" : "cookiecontrol-name-like",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the cookiecontrolfamily",
                  "example" : 10,
                  "in" : "query",
                  "name" : "cookiecontrolfamily-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cookiecontrol_name"
                                 },
                                 {
                                    "name" : "cookiecontrol_id"
                                 },
                                 {
                                    "name" : "cookiecontrolfamily_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "user_language_pref_cookie",
                                    "1",
                                    "10"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "CookieControl"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrol/search.json?cookiecontrol-id=3&cookiecontrol-name=etuix&cookiecontrol-name-like=contain&cookiecontrolfamily-id=10&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrol/search.json?cookiecontrol-id=3&cookiecontrol-name=etuix&cookiecontrol-name-like=contain&cookiecontrolfamily-id=10&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrol/search.json?cookiecontrol-id=3&cookiecontrol-name=etuix&cookiecontrol-name-like=contain&cookiecontrolfamily-id=10&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'cookiecontrol-id=3&cookiecontrol-name=etuix&cookiecontrol-name-like=contain&cookiecontrolfamily-id=10&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrol/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cookiecontrol/simple.json" : {
         "get" : {
            "description" : "Know which companies are setting the fewest/most cookies",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cookiecontrol&method=simple"
            },
            "operationId" : "simpleCookieControl",
            "parameters" : [
               {
                  "description" : "Date from, expected format: mm/dd/yyyy",
                  "example" : "06/20/2020",
                  "in" : "query",
                  "name" : "date-from",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "M",
                  "description" : "Date scale",
                  "example" : "M",
                  "in" : "query",
                  "name" : "date-scale",
                  "schema" : {
                     "enum" : [
                        "H",
                        "D",
                        "M"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Date to, expected format: mm/dd/yyyy",
                  "example" : "06/25/2020",
                  "in" : "query",
                  "name" : "date-to",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "first_3_evo"
                                 },
                                 {
                                    "name" : "timerange"
                                 },
                                 {
                                    "name" : "first_3_tot"
                                 },
                                 {
                                    "name" : "last_3_tot"
                                 },
                                 {
                                    "name" : "first_10_no_agg"
                                 },
                                 {
                                    "name" : "last_3_evo"
                                 }
                              ],
                              "rows" : [
                                 [
                                    {
                                       "affinity" : "int",
                                       "cookiepediacompany_name" : "AT Internet",
                                       "seen" : 76691
                                    },
                                    {
                                       "affinity" : "int",
                                       "cookiepediacompany_name" : "Microsoft",
                                       "seen" : 222436
                                    },
                                    {
                                       "affinity" : "int",
                                       "cookiepediacompany_name" : "Facebook",
                                       "seen" : 2961583
                                    }
                                 ],
                                 [],
                                 [
                                    {
                                       "affinity" : "int",
                                       "cookiepediacompany_name" : "Adobe",
                                       "seen" : 14364236
                                    },
                                    {
                                       "affinity" : "int",
                                       "cookiepediacompany_name" : "Alphabet",
                                       "seen" : 11747268
                                    },
                                    {
                                       "affinity" : "int",
                                       "cookiepediacompany_name" : "Facebook",
                                       "seen" : 2961583
                                    }
                                 ],
                                 [
                                    {
                                       "affinity" : "pct",
                                       "cookiepediacompany_name" : "AT Internet",
                                       "seen" : "0.32"
                                    },
                                    {
                                       "affinity" : "pct",
                                       "cookiepediacompany_name" : "Facebook",
                                       "seen" : "0.32"
                                    },
                                    {
                                       "affinity" : "pct",
                                       "cookiepediacompany_name" : "Alphabet",
                                       "seen" : "0.3"
                                    }
                                 ],
                                 {
                                    "other" : {
                                       "affinity" : "int",
                                       "cookiepediacompany_name" : "Autres partenaires",
                                       "seen" : [
                                          155731237
                                       ]
                                    },
                                    "top10" : [
                                       {
                                          "affinity" : "int",
                                          "cookiepediacompany_name" : "Adobe",
                                          "seen" : [
                                             14364236
                                          ]
                                       },
                                       {
                                          "affinity" : "int",
                                          "cookiepediacompany_name" : "Alphabet",
                                          "seen" : [
                                             11747268
                                          ]
                                       },
                                       {
                                          "affinity" : "int",
                                          "cookiepediacompany_name" : "Facebook",
                                          "seen" : [
                                             2961583
                                          ]
                                       },
                                       {
                                          "affinity" : "int",
                                          "cookiepediacompany_name" : "Microsoft",
                                          "seen" : [
                                             222436
                                          ]
                                       },
                                       {
                                          "affinity" : "int",
                                          "cookiepediacompany_name" : "AT Internet",
                                          "seen" : [
                                             76691
                                          ]
                                       }
                                    ]
                                 },
                                 [
                                    1591135200
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 6
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Load the cookiecontrol simple report",
            "tags" : [
               "CookieControl"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrol/simple.json?date-from=06%2F20%2F2020&date-scale=M&date-to=06%2F25%2F2020&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrol/simple.json?date-from=06/20/2020&date-scale=M&date-to=06/25/2020&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrol/simple.json?date-from=06/20/2020&date-scale=M&date-to=06/25/2020&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'date-from=06%2F20%2F2020&date-scale=M&date-to=06%2F25%2F2020&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrol/simple.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cookiecontrolfamily/create.json" : {
         "post" : {
            "description" : "This allows to create a new cookiecontrolfamily\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cookiecontrolfamily&method=create"
            },
            "operationId" : "createCookieControlFamily",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the cookiecontrolfamily",
                  "example" : "dmp_cookies",
                  "in" : "query",
                  "name" : "cookiecontrolfamily-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "N",
                  "description" : "the archived status: Y/N, default=N (No)",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cookiecontrolfamily-archive",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cookiecontrolfamily_id"
                                 },
                                 {
                                    "name" : "cookiecontrolfamily_name"
                                 },
                                 {
                                    "name" : "cookiecontrolfamily_archive"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "dmp_cookies",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new cookiecontrolfamily",
            "tags" : [
               "CookieControlFamily"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"cookiecontrolfamily-archive=Y&cookiecontrolfamily-name=dmp_cookies\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolfamily/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'cookiecontrolfamily-archive' => 'Y',\n'cookiecontrolfamily-name' => 'dmp_cookies'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolfamily/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolfamily/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('cookiecontrolfamily-archive=Y&cookiecontrolfamily-name=dmp_cookies');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'cookiecontrolfamily-archive' : 'Y',\n'cookiecontrolfamily-name' : 'dmp_cookies'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cookiecontrolfamily/remove.json" : {
         "delete" : {
            "description" : "This allows to delete an existing cookiecontrolfamily entry.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cookiecontrolfamily&method=remove"
            },
            "operationId" : "removeCookieControlFamily",
            "parameters" : [
               {
                  "description" : "id of the cookiecontrolfamily you want to remove.",
                  "example" : 10,
                  "in" : "query",
                  "name" : "cookiecontrolfamily-id",
                  "required" : true,
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Remove an existing cookiecontrolfamily entry.",
            "tags" : [
               "CookieControlFamily"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X DELETE \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolfamily/remove.json?cookiecontrolfamily-id=10\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolfamily/remove.json?cookiecontrolfamily-id=10',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolfamily/remove.json?cookiecontrolfamily-id=10');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'cookiecontrolfamily-id=10'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolfamily/remove.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cookiecontrolfamily/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cookiecontrolfamily&method=search"
            },
            "operationId" : "searchCookieControlFamily",
            "parameters" : [
               {
                  "description" : "Y=archived, N=not_archived",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cookiecontrolfamily-archive",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the cookiecontrolfamily",
                  "example" : 1,
                  "in" : "query",
                  "name" : "cookiecontrolfamily-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the cookiecontrolfamily",
                  "example" : "session_cookies",
                  "in" : "query",
                  "name" : "cookiecontrolfamily-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "must match the regexp /^(exact|contain|end|start)$/ default=start",
                  "example" : "contain",
                  "in" : "query",
                  "name" : "cookiecontrolfamily-name-like",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cookiecontrolfamily_id"
                                 },
                                 {
                                    "name" : "cookiecontrolfamily_name"
                                 },
                                 {
                                    "name" : "cookiecontrolfamily_archive"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "dmp_cookies",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "CookieControlFamily"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolfamily/search.json?cookiecontrolfamily-archive=Y&cookiecontrolfamily-id=1&cookiecontrolfamily-name=session_cookies&cookiecontrolfamily-name-like=contain&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolfamily/search.json?cookiecontrolfamily-archive=Y&cookiecontrolfamily-id=1&cookiecontrolfamily-name=session_cookies&cookiecontrolfamily-name-like=contain&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolfamily/search.json?cookiecontrolfamily-archive=Y&cookiecontrolfamily-id=1&cookiecontrolfamily-name=session_cookies&cookiecontrolfamily-name-like=contain&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'cookiecontrolfamily-archive=Y&cookiecontrolfamily-id=1&cookiecontrolfamily-name=session_cookies&cookiecontrolfamily-name-like=contain&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolfamily/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cookiecontrolfamily/update.json" : {
         "post" : {
            "description" : "This allows to update an existing cookiecontrolfamily parameter.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cookiecontrolfamily&method=update"
            },
            "operationId" : "updateCookieControlFamily",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the cookiecontrolfamily parameter for which you want to modify attributes",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "cookiecontrolfamily-id",
                  "required" : true,
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "new cookiecontrolfamily parameter name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "cookiecontrolfamily-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the archive attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cookiecontrolfamily-archive",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cookiecontrolfamily_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564991
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchCookieControlFamily" : {
                        "description" : "Use the value of cookiecontrolfamily_id entry to update a cookiecontrolfamily through cookiecontrolfamily-id parameter.",
                        "operationId" : "searchCookieControlFamily",
                        "parameters" : {
                           "cookiecontrolfamily-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update a cookiecontrolfamily parameter.",
            "tags" : [
               "CookieControlFamily"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"cookiecontrolfamily-archive=Y&cookiecontrolfamily-id=1777564991&cookiecontrolfamily-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolfamily/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'cookiecontrolfamily-archive' => 'Y',\n'cookiecontrolfamily-id' => '1777564991',\n'cookiecontrolfamily-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolfamily/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolfamily/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('cookiecontrolfamily-archive=Y&cookiecontrolfamily-id=1777564991&cookiecontrolfamily-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'cookiecontrolfamily-archive' : 'Y',\n'cookiecontrolfamily-id' : '1777564991',\n'cookiecontrolfamily-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cookiecontrolrules/create.json" : {
         "post" : {
            "description" : "This allows to create a new cookiecontrolrules\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cookiecontrolrules&method=create"
            },
            "operationId" : "createCookieControlRules",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the cookiecontrolrules",
                  "example" : "dmp_cookie_rule",
                  "in" : "query",
                  "name" : "cookiecontrolrules-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "N",
                  "description" : "boolean highlighting whether the matching cookies are mandatory: Y/N",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cookiecontrolrules-mandatory",
                  "schema" : {
                     "type" : "boolean"
                  }
               },
               {
                  "description" : "the pattern to match the targeted cookie names",
                  "example" : "^w_d{0,3}$",
                  "in" : "query",
                  "name" : "cookiecontrolrules-pattern",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "N",
                  "description" : "if \"Y\": cookiecontrolrules-pattern is a regexp matched againsted all the cookiecontrol_name, if \"N\": we are working directly on the cookiecontrol_id",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cookiecontrolrules-patternregex",
                  "schema" : {
                     "type" : "boolean"
                  }
               },
               {
                  "default" : "N",
                  "description" : "boolean highlighting if the matching cookies should be dropped: Y/N",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cookiecontrolrules-todrop",
                  "schema" : {
                     "type" : "boolean"
                  }
               },
               {
                  "default" : "0",
                  "description" : "matching cookies will be dropped if their value remains the same and the ttl( in seconds) is expired",
                  "example" : "5000",
                  "in" : "query",
                  "name" : "cookiecontrolrules-todropvaluettl",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cookiecontrolrules_id"
                                 },
                                 {
                                    "name" : "cookiecontrolrules_name"
                                 },
                                 {
                                    "name" : "cookiecontrolrules_sort"
                                 },
                                 {
                                    "name" : "cookiecontrolrules_pattern"
                                 },
                                 {
                                    "name" : "cookiecontrolrules_patternregex"
                                 },
                                 {
                                    "name" : "cookiecontrolrules_todrop"
                                 },
                                 {
                                    "name" : "cookiecontrolrules_todropvaluettl"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "dmp_cookie_rule",
                                    "3",
                                    "^w_d{0,3}$",
                                    "Y",
                                    "Y",
                                    "0"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new cookiecontrolrules",
            "tags" : [
               "CookieControlRules"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"cookiecontrolrules-mandatory=Y&cookiecontrolrules-name=dmp_cookie_rule&cookiecontrolrules-pattern=%5Ew_d%7B0%2C3%7D%24&cookiecontrolrules-patternregex=Y&cookiecontrolrules-todrop=Y&cookiecontrolrules-todropvaluettl=5000\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolrules/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'cookiecontrolrules-mandatory' => 'Y',\n'cookiecontrolrules-name' => 'dmp_cookie_rule',\n'cookiecontrolrules-pattern' => '^w_d{0,3}$',\n'cookiecontrolrules-patternregex' => 'Y',\n'cookiecontrolrules-todrop' => 'Y',\n'cookiecontrolrules-todropvaluettl' => '5000'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolrules/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolrules/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('cookiecontrolrules-mandatory=Y&cookiecontrolrules-name=dmp_cookie_rule&cookiecontrolrules-pattern=%5Ew_d%7B0%2C3%7D%24&cookiecontrolrules-patternregex=Y&cookiecontrolrules-todrop=Y&cookiecontrolrules-todropvaluettl=5000');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'cookiecontrolrules-mandatory' : 'Y',\n'cookiecontrolrules-name' : 'dmp_cookie_rule',\n'cookiecontrolrules-pattern' : '%5Ew_d%7B0%2C3%7D%24',\n'cookiecontrolrules-patternregex' : 'Y',\n'cookiecontrolrules-todrop' : 'Y',\n'cookiecontrolrules-todropvaluettl' : '5000'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cookiecontrolrules/remove.json" : {
         "delete" : {
            "description" : "This allows to delete an existing cookiecontrolrules entry.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cookiecontrolrules&method=remove"
            },
            "operationId" : "removeCookieControlRules",
            "parameters" : [
               {
                  "description" : "id of the cookiecontrolrules you want to remove.",
                  "example" : 10,
                  "in" : "query",
                  "name" : "cookiecontrolrules-id",
                  "required" : true,
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Remove an existing cookiecontrolrules entry.",
            "tags" : [
               "CookieControlRules"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X DELETE \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolrules/remove.json?cookiecontrolrules-id=10\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolrules/remove.json?cookiecontrolrules-id=10',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolrules/remove.json?cookiecontrolrules-id=10');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'cookiecontrolrules-id=10'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolrules/remove.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cookiecontrolrules/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cookiecontrolrules&method=search"
            },
            "operationId" : "searchCookieControlRules",
            "parameters" : [
               {
                  "description" : "id of the cookiecontrolrules for which you want to modify attributes",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "cookiecontrolrules-id",
                  "required" : true,
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "default" : "N",
                  "description" : "boolean highlighting whether the matching cookies are mandatory: Y/N",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cookiecontrolrules-mandatory",
                  "schema" : {
                     "type" : "boolean"
                  }
               },
               {
                  "description" : "name of the cookiecontrolrules",
                  "example" : "dmp_cookie_rule",
                  "in" : "query",
                  "name" : "cookiecontrolrules-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the pattern to match the targeted cookie names",
                  "example" : "^w_d{0,3}$",
                  "in" : "query",
                  "name" : "cookiecontrolrules-pattern",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "boolean highlighting if the pattern is a regexp: Y/N",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cookiecontrolrules-patternregex",
                  "schema" : {
                     "type" : "boolean"
                  }
               },
               {
                  "description" : "the sorting index of the cookiecontrolrules",
                  "example" : "1",
                  "in" : "query",
                  "name" : "cookiecontrolrules-sort",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "boolean highlighting if the matching cookie should be dropped: Y/N",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cookiecontrolrules-todrop",
                  "schema" : {
                     "type" : "boolean"
                  }
               },
               {
                  "description" : "matching cookies will be dropped if their value remains the same and the ttl( in seconds) is expired",
                  "example" : "500",
                  "in" : "query",
                  "name" : "cookiecontrolrules-todropvaluettl",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cookiecontrolrules_id"
                                 },
                                 {
                                    "name" : "cookiecontrolrules_name"
                                 },
                                 {
                                    "name" : "cookiecontrolrules_sort"
                                 },
                                 {
                                    "name" : "cookiecontrolrules_pattern"
                                 },
                                 {
                                    "name" : "cookiecontrolrules_patternregex"
                                 },
                                 {
                                    "name" : "cookiecontrolrules_todrop"
                                 },
                                 {
                                    "name" : "cookiecontrolrules_todropvaluettl"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "dmp_cookie_rule",
                                    "3",
                                    "^w_d{0,3}$",
                                    "Y",
                                    "Y",
                                    "0"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "CookieControlRules"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolrules/search.json?cookiecontrolrules-id=1777564991&cookiecontrolrules-mandatory=Y&cookiecontrolrules-name=dmp_cookie_rule&cookiecontrolrules-pattern=%5Ew_d%7B0%2C3%7D%24&cookiecontrolrules-patternregex=Y&cookiecontrolrules-sort=1&cookiecontrolrules-todrop=Y&cookiecontrolrules-todropvaluettl=500&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolrules/search.json?cookiecontrolrules-id=1777564991&cookiecontrolrules-mandatory=Y&cookiecontrolrules-name=dmp_cookie_rule&cookiecontrolrules-pattern=^w_d{0,3}$&cookiecontrolrules-patternregex=Y&cookiecontrolrules-sort=1&cookiecontrolrules-todrop=Y&cookiecontrolrules-todropvaluettl=500&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolrules/search.json?cookiecontrolrules-id=1777564991&cookiecontrolrules-mandatory=Y&cookiecontrolrules-name=dmp_cookie_rule&cookiecontrolrules-pattern=^w_d{0,3}$&cookiecontrolrules-patternregex=Y&cookiecontrolrules-sort=1&cookiecontrolrules-todrop=Y&cookiecontrolrules-todropvaluettl=500&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'cookiecontrolrules-id=1777564991&cookiecontrolrules-mandatory=Y&cookiecontrolrules-name=dmp_cookie_rule&cookiecontrolrules-pattern=%5Ew_d%7B0%2C3%7D%24&cookiecontrolrules-patternregex=Y&cookiecontrolrules-sort=1&cookiecontrolrules-todrop=Y&cookiecontrolrules-todropvaluettl=500&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolrules/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cookiecontrolrules/update.json" : {
         "post" : {
            "description" : "This allows to update an existing cookiecontrolrules parameter.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cookiecontrolrules&method=update"
            },
            "operationId" : "updateCookieControlRules",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the cookiecontrolrules for which you want to modify attributes",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "cookiecontrolrules-id",
                  "required" : true,
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the cookiecontrolrules",
                  "example" : "dmp_cookie_rule",
                  "in" : "query",
                  "name" : "cookiecontrolrules-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "N",
                  "description" : "boolean highlighting whether the matching cookies are mandatory: Y/N",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cookiecontrolrules-mandatory",
                  "schema" : {
                     "type" : "boolean"
                  }
               },
               {
                  "description" : "the sorting index of the cookiecontrolrules",
                  "example" : "1",
                  "in" : "query",
                  "name" : "cookiecontrolrules-sort",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "the pattern to match the targeted cookie names",
                  "example" : "^w_d{0,3}$",
                  "in" : "query",
                  "name" : "cookiecontrolrules-pattern",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "N",
                  "description" : "boolean highlighting if the pattern is a regexp: Y/N",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cookiecontrolrules-patternregex",
                  "schema" : {
                     "type" : "boolean"
                  }
               },
               {
                  "default" : "N",
                  "description" : "boolean highlighting if the matching cookie should be dropped: Y/N",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "cookiecontrolrules-todrop",
                  "schema" : {
                     "type" : "boolean"
                  }
               },
               {
                  "default" : "0",
                  "description" : "matching cookies will be dropped if their value remains the same and the ttl( in seconds) is expired",
                  "example" : "500",
                  "in" : "query",
                  "name" : "cookiecontrolrules-todropvaluettl",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cookiecontrolrules_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564991
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchCookieControlRules" : {
                        "description" : "Use the value of cookiecontrolrules_id entry to update a cookiecontrolrules through cookiecontrolrules-id parameter.",
                        "operationId" : "searchCookieControlRules",
                        "parameters" : {
                           "cookiecontrolrules-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update a cookiecontrolrules parameter.",
            "tags" : [
               "CookieControlRules"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"cookiecontrolrules-id=1777564991&cookiecontrolrules-mandatory=Y&cookiecontrolrules-name=dmp_cookie_rule&cookiecontrolrules-pattern=%5Ew_d%7B0%2C3%7D%24&cookiecontrolrules-patternregex=Y&cookiecontrolrules-sort=1&cookiecontrolrules-todrop=Y&cookiecontrolrules-todropvaluettl=500\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolrules/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'cookiecontrolrules-id' => '1777564991',\n'cookiecontrolrules-mandatory' => 'Y',\n'cookiecontrolrules-name' => 'dmp_cookie_rule',\n'cookiecontrolrules-pattern' => '^w_d{0,3}$',\n'cookiecontrolrules-patternregex' => 'Y',\n'cookiecontrolrules-sort' => '1',\n'cookiecontrolrules-todrop' => 'Y',\n'cookiecontrolrules-todropvaluettl' => '500'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolrules/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolrules/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('cookiecontrolrules-id=1777564991&cookiecontrolrules-mandatory=Y&cookiecontrolrules-name=dmp_cookie_rule&cookiecontrolrules-pattern=%5Ew_d%7B0%2C3%7D%24&cookiecontrolrules-patternregex=Y&cookiecontrolrules-sort=1&cookiecontrolrules-todrop=Y&cookiecontrolrules-todropvaluettl=500');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'cookiecontrolrules-id' : '1777564991',\n'cookiecontrolrules-mandatory' : 'Y',\n'cookiecontrolrules-name' : 'dmp_cookie_rule',\n'cookiecontrolrules-pattern' : '%5Ew_d%7B0%2C3%7D%24',\n'cookiecontrolrules-patternregex' : 'Y',\n'cookiecontrolrules-sort' : '1',\n'cookiecontrolrules-todrop' : 'Y',\n'cookiecontrolrules-todropvaluettl' : '500'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/cookiecontrolvalueexample/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=cookiecontrolvalueexample&method=search"
            },
            "operationId" : "searchCookieControlValueExample",
            "parameters" : [
               {
                  "description" : "id of the cookiecontrol",
                  "example" : 10,
                  "in" : "query",
                  "name" : "cookiecontrol-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the cookiecontrolvalueexample",
                  "example" : 3,
                  "in" : "query",
                  "name" : "cookiecontrolvalueexample-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "value of the cookiecontrolvalueexample, it is a hashed value of the raw value.",
                  "example" : "0kWiz384s4iM.zZbfljeoVoJuErSLfrp0zOQKJipHQLEhlHEqDSg--",
                  "in" : "query",
                  "name" : "cookiecontrolvalueexample-value",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "must match the regexp /^(exact|contain|end|start)$/ default=start",
                  "example" : "contain",
                  "in" : "query",
                  "name" : "cookiecontrolvalueexample-value-like",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cookiecontrolvalueexample_id"
                                 },
                                 {
                                    "name" : "cookiecontrol_id"
                                 },
                                 {
                                    "name" : "cookiecontrolvalueexample_value"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "1",
                                    "0kWiz384s4iM.zZbfljeoVoJuErSLfrp0zOQKJipHQLEh74EqDSg--"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "CookieControlValueExample"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolvalueexample/search.json?cookiecontrol-id=10&cookiecontrolvalueexample-id=3&cookiecontrolvalueexample-value=0kWiz384s4iM.zZbfljeoVoJuErSLfrp0zOQKJipHQLEhlHEqDSg--&cookiecontrolvalueexample-value-like=contain&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolvalueexample/search.json?cookiecontrol-id=10&cookiecontrolvalueexample-id=3&cookiecontrolvalueexample-value=0kWiz384s4iM.zZbfljeoVoJuErSLfrp0zOQKJipHQLEhlHEqDSg--&cookiecontrolvalueexample-value-like=contain&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolvalueexample/search.json?cookiecontrol-id=10&cookiecontrolvalueexample-id=3&cookiecontrolvalueexample-value=0kWiz384s4iM.zZbfljeoVoJuErSLfrp0zOQKJipHQLEhlHEqDSg--&cookiecontrolvalueexample-value-like=contain&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'cookiecontrol-id=10&cookiecontrolvalueexample-id=3&cookiecontrolvalueexample-value=0kWiz384s4iM.zZbfljeoVoJuErSLfrp0zOQKJipHQLEhlHEqDSg--&cookiecontrolvalueexample-value-like=contain&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/cookiecontrolvalueexample/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/creative/exists.json" : {
         "get" : {
            "description" : "This query will check if a creative name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=creative&method=exists"
            },
            "operationId" : "existsCreative",
            "parameters" : [
               {
                  "description" : "name of the creative to check",
                  "example" : "my-test-creative",
                  "in" : "query",
                  "name" : "creative-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "creative_archive"
                                 },
                                 {
                                    "name" : "creative_desc"
                                 },
                                 {
                                    "name" : "creative_clickthruurl"
                                 },
                                 {
                                    "name" : "contenttype_id"
                                 },
                                 {
                                    "name" : "creativetype_id"
                                 },
                                 {
                                    "name" : "creative_name"
                                 },
                                 {
                                    "name" : "creative_creativebackup"
                                 },
                                 {
                                    "name" : "creative_datecreate"
                                 },
                                 {
                                    "name" : "creative_id"
                                 },
                                 {
                                    "name" : "creative_creativeurl"
                                 },
                                 {
                                    "name" : "creative_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "N",
                                    null,
                                    null,
                                    "4",
                                    "25",
                                    "habillage_aufeminin",
                                    "0",
                                    "1382854785",
                                    "12",
                                    null,
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a creative exists",
            "tags" : [
               "Creative"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/creative/exists.json?creative-name=my-test-creative\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/creative/exists.json?creative-name=my-test-creative',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/creative/exists.json?creative-name=my-test-creative');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'creative-name=my-test-creative'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/creative/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/creative/get_creative_by_location.json" : {
         "get" : {
            "description" : "Given a creative-id or a creative-name return the list of creatives linked to them.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=creative&method=get_creative_by_location"
            },
            "operationId" : "getCreativeByLocationCreative",
            "parameters" : [
               {
                  "description" : "id of the creative. You can search for multiple ids by using pipes, eg: creative-id=123|78|34",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "creative-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the creative. You can search for multiple names by using pipes, eg: creative-name=test1|test3|placement10",
                  "example" : "creative-468x790",
                  "in" : "query",
                  "name" : "creative-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "creative_archive"
                                 },
                                 {
                                    "name" : "creative_desc"
                                 },
                                 {
                                    "name" : "creative_clickthruurl"
                                 },
                                 {
                                    "name" : "contenttype_id"
                                 },
                                 {
                                    "name" : "creativetype_id"
                                 },
                                 {
                                    "name" : "creative_name"
                                 },
                                 {
                                    "name" : "creative_creativebackup"
                                 },
                                 {
                                    "name" : "creative_datecreate"
                                 },
                                 {
                                    "name" : "creative_id"
                                 },
                                 {
                                    "name" : "creative_creativeurl"
                                 },
                                 {
                                    "name" : "creative_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "N",
                                    null,
                                    null,
                                    "4",
                                    "25",
                                    "habillage_aufeminin",
                                    "0",
                                    "1382854785",
                                    "12",
                                    null,
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get creatives linked to location.",
            "tags" : [
               "Creative"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/creative/get_creative_by_location.json?creative-id=1777564991&creative-name=creative-468x790&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/creative/get_creative_by_location.json?creative-id=1777564991&creative-name=creative-468x790&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/creative/get_creative_by_location.json?creative-id=1777564991&creative-name=creative-468x790&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'creative-id=1777564991&creative-name=creative-468x790&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/creative/get_creative_by_location.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/creative/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=creative&method=search"
            },
            "operationId" : "searchCreative",
            "parameters" : [
               {
                  "description" : "id of the contenttype you want to filter on, you can provide multiple ids separated by pipes, eg: contenttype-id=23|9|76",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "contenttype-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "creative-archive",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the creative",
                  "example" : "my-test-creative",
                  "in" : "query",
                  "name" : "creative-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "creative-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on servable flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "creative-servable",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the creativetype you want to filter on, you can provide multiple ids separated by pipes, eg: creativetype-id=23|9|76",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "creativetype-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "id of the location you want to filter on, you can provide multiple ids separated by pipes, eg: location-id=23|9|76",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "location-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "creative_archive"
                                 },
                                 {
                                    "name" : "creative_desc"
                                 },
                                 {
                                    "name" : "creative_clickthruurl"
                                 },
                                 {
                                    "name" : "contenttype_id"
                                 },
                                 {
                                    "name" : "creativetype_id"
                                 },
                                 {
                                    "name" : "creative_name"
                                 },
                                 {
                                    "name" : "creative_creativebackup"
                                 },
                                 {
                                    "name" : "creative_datecreate"
                                 },
                                 {
                                    "name" : "creative_id"
                                 },
                                 {
                                    "name" : "creative_creativeurl"
                                 },
                                 {
                                    "name" : "creative_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "N",
                                    null,
                                    null,
                                    "4",
                                    "25",
                                    "habillage_aufeminin",
                                    "0",
                                    "1382854785",
                                    "12",
                                    null,
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Creative"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/creative/search.json?contenttype-id=1777564991&creative-archive=Y&creative-name=my-test-creative&creative-name-exact=1&creative-servable=Y&creativetype-id=1777564991&dir=DESC&limit=25&location-id=1777564991&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/creative/search.json?contenttype-id=1777564991&creative-archive=Y&creative-name=my-test-creative&creative-name-exact=1&creative-servable=Y&creativetype-id=1777564991&dir=DESC&limit=25&location-id=1777564991&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/creative/search.json?contenttype-id=1777564991&creative-archive=Y&creative-name=my-test-creative&creative-name-exact=1&creative-servable=Y&creativetype-id=1777564991&dir=DESC&limit=25&location-id=1777564991&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'contenttype-id=1777564991&creative-archive=Y&creative-name=my-test-creative&creative-name-exact=1&creative-servable=Y&creativetype-id=1777564991&dir=DESC&limit=25&location-id=1777564991&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/creative/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/dataconnector/clone.json" : {
         "post" : {
            "description" : "This method allows you to clone the configuration of a S2S.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=dataconnector&method=clone"
            },
            "operationId" : "cloneS2S",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the S2S you want to clone.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "dataconnector-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "Y",
                  "description" : "indicate if you want to create the missing entries if possible at target website.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "create-missing",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Clone a S2S",
            "tags" : [
               "S2S"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"create-missing=Y&dataconnector-id=1777564991\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/dataconnector/clone.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'create-missing' => 'Y',\n'dataconnector-id' => '1777564991'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/dataconnector/clone.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/dataconnector/clone.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('create-missing=Y&dataconnector-id=1777564991');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'create-missing' : 'Y',\n'dataconnector-id' : '1777564991'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/dataconnector/consent_status.json" : {
         "get" : {
            "description" : "This query allows for returning all consent information linked to s2s connectors.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=dataconnector&method=consent_status"
            },
            "operationId" : "consentStatusS2S",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "dataconnector_id"
                                 },
                                 {
                                    "name" : "dataconnector_name"
                                 },
                                 {
                                    "name" : "collectorconfigpm_mode"
                                 },
                                 {
                                    "name" : "collectorconfigpmcategory_name"
                                 },
                                 {
                                    "name" : "tcfv2vendor_id"
                                 },
                                 {
                                    "name" : "tcfv2vendor_name"
                                 },
                                 {
                                    "name" : "tcfv2vendorcustom_id"
                                 },
                                 {
                                    "name" : "tcfv2vendorcustom_name"
                                 },
                                 {
                                    "name" : "tcfv2purpose_id"
                                 },
                                 {
                                    "name" : "tcfv2purpose_name"
                                 },
                                 {
                                    "name" : "tcfv2specialfeature_id"
                                 },
                                 {
                                    "name" : "tcfv2specialfeature_name"
                                 },
                                 {
                                    "name" : "dataconnector_archive"
                                 },
                                 {
                                    "name" : "dataconnector_active"
                                 }
                              ],
                              "rows" : [
                                 []
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Display consent information",
            "tags" : [
               "S2S"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/dataconnector/consent_status.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/dataconnector/consent_status.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/dataconnector/consent_status.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/dataconnector/consent_status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/dataconnector/copy.json" : {
         "post" : {
            "description" : "This method allows you to copy the configuration of a S2S from a given site to another site.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=dataconnector&method=copy"
            },
            "operationId" : "copyS2S",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the S2S you want to copy.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "dataconnector-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the target website to which you want to copy the S2S.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "tgt-website-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "Y",
                  "description" : "indicate if you want to create the missing entries if possible at target website.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "create-missing",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Copy a S2S to another website.",
            "tags" : [
               "S2S"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"create-missing=Y&dataconnector-id=1777564991&tgt-website-id=1777564991\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/dataconnector/copy.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'create-missing' => 'Y',\n'dataconnector-id' => '1777564991',\n'tgt-website-id' => '1777564991'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/dataconnector/copy.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/dataconnector/copy.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('create-missing=Y&dataconnector-id=1777564991&tgt-website-id=1777564991');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'create-missing' : 'Y',\n'dataconnector-id' : '1777564991',\n'tgt-website-id' : '1777564991'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/dedimension/exists.json" : {
         "get" : {
            "description" : "This query will check if a dedimension-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=dedimension&method=exists"
            },
            "operationId" : "existsDEDimension",
            "parameters" : [
               {
                  "description" : "name of the dedimension to check",
                  "example" : "my-test-dedimension",
                  "in" : "query",
                  "name" : "dedimension-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "dedimension_id"
                                 },
                                 {
                                    "name" : "dedimension_name"
                                 },
                                 {
                                    "name" : "dedimension_desc"
                                 },
                                 {
                                    "name" : "dedimension_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "country",
                                    "country mapping",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a dedimension-name exists",
            "tags" : [
               "DEDimension"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/dedimension/exists.json?dedimension-name=my-test-dedimension\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/dedimension/exists.json?dedimension-name=my-test-dedimension',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/dedimension/exists.json?dedimension-name=my-test-dedimension');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dedimension-name=my-test-dedimension'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/dedimension/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/dedimension/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=dedimension&method=search"
            },
            "operationId" : "searchDEDimension",
            "parameters" : [
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "dedimension-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "search on description",
                  "example" : "Test",
                  "in" : "query",
                  "name" : "dedimension-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the dedimension",
                  "example" : "my-test-dedimension",
                  "in" : "query",
                  "name" : "dedimension-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "dedimension-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "dedimension_id"
                                 },
                                 {
                                    "name" : "dedimension_name"
                                 },
                                 {
                                    "name" : "dedimension_desc"
                                 },
                                 {
                                    "name" : "dedimension_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "country",
                                    "country mapping",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "DEDimension"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/dedimension/search.json?dedimension-active=Y&dedimension-desc=Test&dedimension-name=my-test-dedimension&dedimension-name-exact=1&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/dedimension/search.json?dedimension-active=Y&dedimension-desc=Test&dedimension-name=my-test-dedimension&dedimension-name-exact=1&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/dedimension/search.json?dedimension-active=Y&dedimension-desc=Test&dedimension-name=my-test-dedimension&dedimension-name-exact=1&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dedimension-active=Y&dedimension-desc=Test&dedimension-name=my-test-dedimension&dedimension-name-exact=1&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/dedimension/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/deny/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new deny.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=deny&method=create"
            },
            "operationId" : "createDeny",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the deny template",
                  "example" : "my-test-deny-name",
                  "in" : "query",
                  "name" : "deny-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y or N to indicate if this deny is an IP or not.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "deny-isip",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Pattern for which the deny is to be applied on the IP or domain.",
                  "example" : "my-site",
                  "in" : "query",
                  "name" : "deny-pat",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "example" : "start",
                  "in" : "query",
                  "name" : "deny-rule",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Data-collection mask to be blocked, must be one of these : all, tag, bpromo, click, nc, view, action, scart, tporder.",
                  "example" : "all",
                  "in" : "query",
                  "name" : "deny-ergmask",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "deny_id"
                                 },
                                 {
                                    "name" : "deny_name"
                                 },
                                 {
                                    "name" : "deny_isip"
                                 },
                                 {
                                    "name" : "deny_pat"
                                 },
                                 {
                                    "name" : "deny_rule"
                                 },
                                 {
                                    "name" : "deny_pattern"
                                 },
                                 {
                                    "name" : "deny_ergmask"
                                 }
                              ],
                              "rows" : [
                                 [
                                    748,
                                    "Test 1532865373",
                                    "Y",
                                    "192.1868",
                                    "start",
                                    "192.1868%",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new deny entry.",
            "tags" : [
               "Deny"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"deny-ergmask=all&deny-isip=N&deny-name=my-test-deny-name&deny-pat=my-site&deny-rule=start\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/deny/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'deny-ergmask' => 'all',\n'deny-isip' => 'N',\n'deny-name' => 'my-test-deny-name',\n'deny-pat' => 'my-site',\n'deny-rule' => 'start'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/deny/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/deny/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('deny-ergmask=all&deny-isip=N&deny-name=my-test-deny-name&deny-pat=my-site&deny-rule=start');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'deny-ergmask' : 'all',\n'deny-isip' : 'N',\n'deny-name' : 'my-test-deny-name',\n'deny-pat' : 'my-site',\n'deny-rule' : 'start'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/deny/exists.json" : {
         "get" : {
            "description" : "This query will check if a deny-name exists in the current website. We first check the exact match, if not found we check in lowercase. Unicity on the name is not guaranteed, only on the pattern.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=deny&method=exists"
            },
            "operationId" : "existsDeny",
            "parameters" : [
               {
                  "description" : "name of the deny to check",
                  "example" : "my-test-deny",
                  "in" : "query",
                  "name" : "deny-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "deny_id"
                                 },
                                 {
                                    "name" : "deny_isip"
                                 },
                                 {
                                    "name" : "deny_name"
                                 },
                                 {
                                    "name" : "deny_visible"
                                 },
                                 {
                                    "name" : "deny_pattern"
                                 },
                                 {
                                    "name" : "deny_ergmask"
                                 }
                              ],
                              "rows" : [
                                 [
                                    712,
                                    "N",
                                    "test-1532861800",
                                    "Y",
                                    "%eulerian",
                                    null
                                 ],
                                 [
                                    721,
                                    "N",
                                    "test-1532861800",
                                    "Y",
                                    "eulerian%",
                                    null
                                 ],
                                 [
                                    730,
                                    "N",
                                    "test-1532861800",
                                    "Y",
                                    "%eulerian%",
                                    null
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 3
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a deny-name exists",
            "tags" : [
               "Deny"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/deny/exists.json?deny-name=my-test-deny\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/deny/exists.json?deny-name=my-test-deny',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/deny/exists.json?deny-name=my-test-deny');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'deny-name=my-test-deny'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/deny/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/deny/remove.json" : {
         "delete" : {
            "description" : "This query allows for deleting an existing deny entry.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=deny&method=remove"
            },
            "operationId" : "removeDeny",
            "parameters" : [
               {
                  "description" : "id of the deny you want to remove.",
                  "example" : 563,
                  "in" : "query",
                  "name" : "deny-id",
                  "required" : true,
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Remove an existing deny entry.",
            "tags" : [
               "Deny"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X DELETE \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/deny/remove.json?deny-id=563\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/deny/remove.json?deny-id=563',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/deny/remove.json?deny-id=563');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'deny-id=563'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/deny/remove.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/deny/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=deny&method=search"
            },
            "operationId" : "searchDeny",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "deny_id"
                                 },
                                 {
                                    "name" : "deny_isip"
                                 },
                                 {
                                    "name" : "deny_name"
                                 },
                                 {
                                    "name" : "deny_visible"
                                 },
                                 {
                                    "name" : "deny_pattern"
                                 },
                                 {
                                    "name" : "deny_ergmask"
                                 }
                              ],
                              "rows" : [
                                 [
                                    712,
                                    "N",
                                    "test-1532861800",
                                    "Y",
                                    "%eulerian",
                                    null
                                 ],
                                 [
                                    721,
                                    "N",
                                    "test-1532861800",
                                    "Y",
                                    "eulerian%",
                                    null
                                 ],
                                 [
                                    730,
                                    "N",
                                    "test-1532861800",
                                    "Y",
                                    "%eulerian%",
                                    null
                                 ],
                                 [
                                    739,
                                    "N",
                                    "test-1532861800",
                                    "Y",
                                    "%eulurian",
                                    null
                                 ],
                                 [
                                    748,
                                    "Y",
                                    null,
                                    "Y",
                                    "195.101.219.2%",
                                    null
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 5
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Deny"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/deny/search.json?dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/deny/search.json?dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/deny/search.json?dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/deny/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/deny/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing deny.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=deny&method=update"
            },
            "operationId" : "updateDeny",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the deny for which you want to modify attributes",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "deny-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the deny template",
                  "example" : "my-test-deny-name",
                  "in" : "query",
                  "name" : "deny-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y or N to indicate if this deny is an IP or not.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "deny-isip",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Pattern for which the deny is to be applied on the IP or domain.",
                  "example" : "my-site",
                  "in" : "query",
                  "name" : "deny-pat",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "example" : "start",
                  "in" : "query",
                  "name" : "deny-rule",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Data-collection mask to be blocked, must be one of these : all, tag, bpromo, click, nc, view, action, scart, tporder.",
                  "example" : "all",
                  "in" : "query",
                  "name" : "deny-ergmask",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "deny_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564991
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchDeny" : {
                        "description" : "Use the value of deny_id entry to update a deny through deny-id parameter.",
                        "operationId" : "searchDeny",
                        "parameters" : {
                           "deny-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing deny.",
            "tags" : [
               "Deny"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"deny-ergmask=all&deny-id=1777564991&deny-isip=N&deny-name=my-test-deny-name&deny-pat=my-site&deny-rule=start\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/deny/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'deny-ergmask' => 'all',\n'deny-id' => '1777564991',\n'deny-isip' => 'N',\n'deny-name' => 'my-test-deny-name',\n'deny-pat' => 'my-site',\n'deny-rule' => 'start'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/deny/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/deny/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('deny-ergmask=all&deny-id=1777564991&deny-isip=N&deny-name=my-test-deny-name&deny-pat=my-site&deny-rule=start');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'deny-ergmask' : 'all',\n'deny-id' : '1777564991',\n'deny-isip' : 'N',\n'deny-name' : 'my-test-deny-name',\n'deny-pat' : 'my-site',\n'deny-rule' : 'start'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdb/allowed_uniq.json" : {
         "get" : {
            "description" : "This query returns the list of allowed uniq keys that can be used to count users in other APIs.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdb&method=allowed_uniq"
            },
            "operationId" : "allowedUniqAudienceEngine",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "name"
                                 },
                                 {
                                    "name" : "label"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "iu",
                                       "User ID CRM"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Allowed type of uniq for user deduplication when counting.",
            "tags" : [
               "Audience Engine"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/allowed_uniq.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/allowed_uniq.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/allowed_uniq.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/allowed_uniq.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdb/available_cold_columns.json" : {
         "get" : {
            "description" : "This query returns all the available columns, when you want to download a list of users validating a saved query.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdb&method=available_cold_columns"
            },
            "operationId" : "availableColdColumnsAudienceEngine",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "key"
                                 },
                                 {
                                    "name" : "name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "eulerianid",
                                       "text of the eulerianid field"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "List the available colums for cold audience engine file download.",
            "tags" : [
               "Audience Engine"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/available_cold_columns.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/available_cold_columns.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/available_cold_columns.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/available_cold_columns.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdb/count_by_criteria.json" : {
         "get" : {
            "description" : "This query count the number of users linked to a custom criteria.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdb&method=count_by_criteria"
            },
            "operationId" : "countByCriteriaAudienceEngine",
            "parameters" : [
               {
                  "description" : "id of the custom criteria",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "ebmdb-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "iufuniqrecent",
                  "description" : "unique reference to be used for counting",
                  "example" : "iu",
                  "in" : "query",
                  "name" : "uniq",
                  "schema" : {
                     "enum" : [
                        "iu",
                        "iuf",
                        "iuflive",
                        "iuuniqrecent",
                        "iufuniqrecent"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "count"
                                 },
                                 {
                                    "name" : "total"
                                 },
                                 {
                                    "name" : "ratio"
                                 },
                                 {
                                    "name" : "nodes"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "98755444",
                                       "14654654",
                                       "23.2%",
                                       ""
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Count users linked to a custom criteria",
            "tags" : [
               "Audience Engine"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/count_by_criteria.json?ebmdb-id=1777564991&uniq=iu\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/count_by_criteria.json?ebmdb-id=1777564991&uniq=iu',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/count_by_criteria.json?ebmdb-id=1777564991&uniq=iu');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ebmdb-id=1777564991&uniq=iu'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/count_by_criteria.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdb/count_by_ebmdbreq.json" : {
         "get" : {
            "description" : "This query count the number of users linked to a provided saved query.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdb&method=count_by_ebmdbreq"
            },
            "operationId" : "countByEbmdbreqAudienceEngine",
            "parameters" : [
               {
                  "description" : "id of the saved query to use as filter",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "ebmdbreq-filter",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the saved query",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "ebmdbreq-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "enforce attribute for each node so that you can have a proper counting for each part of the request",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-nodes-count",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "count"
                                 },
                                 {
                                    "name" : "total"
                                 },
                                 {
                                    "name" : "ratio"
                                 },
                                 {
                                    "name" : "nodes"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "98755444",
                                       "14654654",
                                       "23.2%",
                                       "{\"node-1\":3265}",
                                       "<a n=\"node-1\"><e n=\"exists\"><eq>1</eq></e></a>"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Count users linked to a saved query",
            "tags" : [
               "Audience Engine"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/count_by_ebmdbreq.json?ebmdbreq-filter=1777564991&ebmdbreq-id=1777564991&with-nodes-count=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/count_by_ebmdbreq.json?ebmdbreq-filter=1777564991&ebmdbreq-id=1777564991&with-nodes-count=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/count_by_ebmdbreq.json?ebmdbreq-filter=1777564991&ebmdbreq-id=1777564991&with-nodes-count=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ebmdbreq-filter=1777564991&ebmdbreq-id=1777564991&with-nodes-count=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/count_by_ebmdbreq.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdb/count_by_request.json" : {
         "get" : {
            "description" : "This query count the number of users linked to a custom request.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdb&method=count_by_request"
            },
            "operationId" : "countByRequestAudienceEngine",
            "parameters" : [
               {
                  "description" : "ergmacro of the request to count.",
                  "example" : "<a><e n=\"iufuniqrecent\"><eq>1</eq></e></a>",
                  "in" : "query",
                  "name" : "ergmacro",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "count"
                                 },
                                 {
                                    "name" : "total"
                                 },
                                 {
                                    "name" : "ratio"
                                 },
                                 {
                                    "name" : "nodes"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "98755444",
                                       "14654654",
                                       "23.2%",
                                       ""
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Count users linked to a custom request",
            "tags" : [
               "Audience Engine"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/count_by_request.json?ergmacro=%3Ca%3E%3Ce%20n\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/count_by_request.json?ergmacro=<a><e n=\"iufuniqrecent\"><eq>1</eq></e></a>',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/count_by_request.json?ergmacro=<a><e n=\"iufuniqrecent\"><eq>1</eq></e></a>');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ergmacro=%3Ca%3E%3Ce%20n'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/count_by_request.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdb/count_by_value.json" : {
         "get" : {
            "description" : "This query count the number of users linked to a custom criteria and provide the distribution by value.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdb&method=count_by_value"
            },
            "operationId" : "countByValueAudienceEngine",
            "parameters" : [
               {
                  "description" : "id of the custom criteria",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "ebmdb-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "iufuniqrecent",
                  "description" : "unique reference to be used for counting",
                  "example" : "iu",
                  "in" : "query",
                  "name" : "uniq",
                  "schema" : {
                     "enum" : [
                        "iu",
                        "iuf",
                        "iuflive",
                        "iuuniqrecent",
                        "iufuniqrecent"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "default" : 0,
                  "description" : "if set and possible for the targeted parameter, will provide the count values for each possible value of the parameter",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-subvalues",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "count"
                                 },
                                 {
                                    "name" : "total"
                                 },
                                 {
                                    "name" : "ratio"
                                 },
                                 {
                                    "name" : "nodes"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "98755444",
                                       "14654654",
                                       "23.2%",
                                       ""
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Count users linked to a custom criteria with distributed values",
            "tags" : [
               "Audience Engine"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/count_by_value.json?ebmdb-id=1777564991&uniq=iu&with-subvalues=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/count_by_value.json?ebmdb-id=1777564991&uniq=iu&with-subvalues=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/count_by_value.json?ebmdb-id=1777564991&uniq=iu&with-subvalues=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ebmdb-id=1777564991&uniq=iu&with-subvalues=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/count_by_value.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdb/create.json" : {
         "post" : {
            "description" : "This query allows for creating a custom criteria so that it can become available in the Audience Engine.\n\nThe following rules must be taken in account when creating your custom criterias :\n\n* if you create a criteria which has a listtype as a fullmap : you **must** manage the associated fullmap through the ``criteria_create_fullmap``, ``criteria_update_fullmap`` and ``criteria_del_fullamp`` calls so that you can manage the associations. This listtype is very useful when you want to map values that are negatives values. For example: you have the crm value for a given parameter which is -2 to make it available in the audience engine you need to map it to a positive value, for example -2 becomes 1.\n\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdb&method=create"
            },
            "operationId" : "createAudienceEngine",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the criteria to check",
                  "example" : "my-test-criteria",
                  "in" : "query",
                  "name" : "ebmdb-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "key on which the criteria is based:\n* `treeiup:$iduserparam_id` will use the data linked to the CRM parameter with id=$iduserparam_id\n* `treepup:$partneruserparam_id` will use the data linked to the data provider parameter with id=$partneruserparam_id\n",
                  "example" : "treeiup:1777564991",
                  "in" : "query",
                  "name" : "ebmdb-key",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "The available types are :\n* BE : list of non-empty values\n* SE : boolean\n* I4E / I8E : signed integers 32 or 64 bits\n* U4A / U8E : unsigned integers 32 or 64 bits\n* F1E .. F9E : float with precision ranging from (1 digits to 9 digits)\n",
                  "example" : "BE",
                  "in" : "query",
                  "name" : "ebmdb-type",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "BE",
                        "SE",
                        "I4E",
                        "I8E",
                        "U4E",
                        "U8E",
                        "F1E",
                        "F2E",
                        "F3E",
                        "F4E",
                        "F5E",
                        "F6E",
                        "F7E",
                        "F8E",
                        "F9E",
                        "EPOCHAGE",
                        "EPOCHAGED",
                        "EPOCHDAGED",
                        "YYYYMMDDAGED",
                        "MMDDYYYYAGED"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "type of list for the linked entries.",
                  "example" : "pupmap",
                  "in" : "query",
                  "name" : "ebmdb-listtype",
                  "schema" : {
                     "enum" : [
                        "",
                        "pupmap",
                        "iupmap",
                        "fullmap"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ebmdb_name"
                                 },
                                 {
                                    "name" : "ebmdb_listtype"
                                 },
                                 {
                                    "name" : "ebmdb_key"
                                 },
                                 {
                                    "name" : "ebmdb_type"
                                 },
                                 {
                                    "name" : "ebmdb_desc"
                                 },
                                 {
                                    "name" : "ebmdb_id"
                                 },
                                 {
                                    "name" : "ebmdb_criticity"
                                 },
                                 {
                                    "name" : "ebmdb_threshold"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "crm_city2",
                                       "iupmap",
                                       "treeiup:307",
                                       "B",
                                       null,
                                       "217",
                                       "NORMAL",
                                       0
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Add a custom criteria",
            "tags" : [
               "Audience Engine"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"ebmdb-key=treeiup%3A1777564991&ebmdb-listtype=pupmap&ebmdb-name=my-test-criteria&ebmdb-type=BE\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'ebmdb-key' => 'treeiup:1777564991',\n'ebmdb-listtype' => 'pupmap',\n'ebmdb-name' => 'my-test-criteria',\n'ebmdb-type' => 'BE'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('ebmdb-key=treeiup%3A1777564991&ebmdb-listtype=pupmap&ebmdb-name=my-test-criteria&ebmdb-type=BE');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'ebmdb-key' : 'treeiup%3A1777564991',\n'ebmdb-listtype' : 'pupmap',\n'ebmdb-name' : 'my-test-criteria',\n'ebmdb-type' : 'BE'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdb/distribute_by_criteria.json" : {
         "get" : {
            "description" : "This query allows you to request a population and get the distribution for the requested criterias.\n\nFor example you could ask on your population of buyers the distribution of the AGE crm parameter, the API will provide as a result:\n\n * criteria = AGE, value = 15, count = 654684.\n * criteria = AGE, value = 25, count = 68.\n * criteria = AGE, value = 35, count = 654.\n\nSo you know, in the requested population the number of users for a given age.\n\n\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdb&method=distribute_by_criteria"
            },
            "operationId" : "distributeByCriteriaAudienceEngine",
            "parameters" : [
               {
                  "description" : "list of criterias separated by a comma for which you want the distribution, these criterias must exists.",
                  "example" : "AGE,GENDER",
                  "in" : "query",
                  "name" : "criteria",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the saved request you want to use to select your population.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "ebmdbreq-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "total_users"
                                 },
                                 {
                                    "name" : "criteria"
                                 },
                                 {
                                    "name" : "value"
                                 },
                                 {
                                    "name" : "count"
                                 }
                              ],
                              "rows" : [
                                 [
                                    8260491,
                                    "AGE",
                                    15,
                                    654684
                                 ],
                                 [
                                    8260491,
                                    "AGE",
                                    25,
                                    68
                                 ],
                                 [
                                    8260491,
                                    "AGE",
                                    35,
                                    654
                                 ],
                                 [
                                    8260491,
                                    "GENDER",
                                    "Male",
                                    32658
                                 ],
                                 [
                                    8260491,
                                    "GENDER",
                                    "Female",
                                    98353
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 5
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get the distribution by criteria for a given population",
            "tags" : [
               "Audience Engine"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/distribute_by_criteria.json?criteria=AGE%2CGENDER&ebmdbreq-id=1777564991\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/distribute_by_criteria.json?criteria=AGE,GENDER&ebmdbreq-id=1777564991',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/distribute_by_criteria.json?criteria=AGE,GENDER&ebmdbreq-id=1777564991');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'criteria=AGE%2CGENDER&ebmdbreq-id=1777564991'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/distribute_by_criteria.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdb/download.json" : {
         "get" : {
            "description" : "Once the status is COMPLETED, download the results.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdb&method=download"
            },
            "operationId" : "downloadAudienceEngine",
            "parameters" : [
               {
                  "description" : "the id of the job as provided by [reach_by_rootpublisher](#tag/Audience-Engine/paths/~1ea~1{site}~1db~1ebmdb~1reach_by_rootpublisher.json/post) or [reach_by_criteria](#tag/Audience-Engine/paths/~1ea~1{site}~1db~1ebmdb~1reach_by_criteria.json/post).",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "with_cookie"
                                 },
                                 {
                                    "name" : "global_count"
                                 }
                              ],
                              "rows" : [
                                 [
                                    10,
                                    200
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Download request results.",
            "tags" : [
               "Audience Engine"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/download.json?jobrun-id=1777564991\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/download.json?jobrun-id=1777564991',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/download.json?jobrun-id=1777564991');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564991'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/download.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdb/download_file.json" : {
         "get" : {
            "description" : "Once a call is made to [export_users](#tag/Audience-Engine/paths/~1ea~1{site}~1db~1ebmdb~1export_users.json/post) check the [status](#tag/Audience-Engine/paths/~1ea~1{site}~1db~1ebmdb~1status.json/get) of the process through this service and you can then download the content of the file by providing the jobrun-id. A raw CSV file will be returned.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdb&method=download_file"
            },
            "operationId" : "downloadFileAudienceEngine",
            "parameters" : [
               {
                  "description" : "the id of the job as provided by [export_users](#tag/Audience-Engine/paths/~1ea~1{site}~1db~1ebmdb~1export_users.json/post)",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Download file.",
            "tags" : [
               "Audience Engine"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/download_file.json?jobrun-id=1777564991\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/download_file.json?jobrun-id=1777564991',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/download_file.json?jobrun-id=1777564991');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564991'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/download_file.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdb/exists.json" : {
         "get" : {
            "description" : "This query will check if a custom criteria name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdb&method=exists"
            },
            "operationId" : "existsAudienceEngine",
            "parameters" : [
               {
                  "description" : "name of the criteria to check",
                  "example" : "my-test-criteria",
                  "in" : "query",
                  "name" : "ebmdb-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ebmdb_name"
                                 },
                                 {
                                    "name" : "ebmdb_listtype"
                                 },
                                 {
                                    "name" : "ebmdb_key"
                                 },
                                 {
                                    "name" : "ebmdb_type"
                                 },
                                 {
                                    "name" : "ebmdb_desc"
                                 },
                                 {
                                    "name" : "ebmdb_id"
                                 },
                                 {
                                    "name" : "ebmdb_criticity"
                                 },
                                 {
                                    "name" : "ebmdb_threshold"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "crm_city2",
                                       "iupmap",
                                       "treeiup:307",
                                       "B",
                                       null,
                                       "217",
                                       "NORMAL",
                                       0
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a custom criteria exists",
            "tags" : [
               "Audience Engine"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/exists.json?ebmdb-name=my-test-criteria\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/exists.json?ebmdb-name=my-test-criteria',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/exists.json?ebmdb-name=my-test-criteria');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ebmdb-name=my-test-criteria'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdb/export_users.json" : {
         "post" : {
            "description" : "This query will launch an async process to list the users belonging to a saved query. The ``jobrun-id`` needs to be provided to the ``download_file`` method so that you can fetch the file containing the requested data. You can have maximum **5** jobs running at the same time, this allow the best QOS for the platform.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdb&method=export_users"
            },
            "operationId" : "exportUsersAudienceEngine",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the saved query.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "ebmdbreq-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "semi-colon",
                  "description" : "if multiple cold-columns are provided, define the separator",
                  "example" : "semi-colon",
                  "in" : "query",
                  "name" : "csv-separator",
                  "schema" : {
                     "enum" : [
                        "semi-colon",
                        "colon",
                        "tab",
                        "space"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "default" : 200000000,
                  "description" : "maximum number of records sent.",
                  "example" : 500,
                  "in" : "query",
                  "name" : "maxlimit",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "list of the columns you want to get",
                  "example" : "eulerianid,wsuid",
                  "in" : "query",
                  "name" : "cold-columns",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649911777564991"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Export the users belonging to a saved query.",
            "tags" : [
               "Audience Engine"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"cold-columns=eulerianid%2Cwsuid&csv-separator=semi-colon&ebmdbreq-id=1777564991&maxlimit=500\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/export_users.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'cold-columns' => 'eulerianid,wsuid',\n'csv-separator' => 'semi-colon',\n'ebmdbreq-id' => '1777564991',\n'maxlimit' => '500'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/export_users.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/export_users.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('cold-columns=eulerianid%2Cwsuid&csv-separator=semi-colon&ebmdbreq-id=1777564991&maxlimit=500');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'cold-columns' : 'eulerianid%2Cwsuid',\n'csv-separator' : 'semi-colon',\n'ebmdbreq-id' : '1777564991',\n'maxlimit' : '500'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdb/reach_by_criteria.json" : {
         "post" : {
            "description" : "You can provide a list of uid file and ask for the reach you have available for the dataset provided.\n\nYou need to provide either a `file-id` or a `ebmdbreq-id` to start a counting process.\n\nThis method is complementary to [reach_by_rootpublisher](#tag/Audience-Engine/paths/~1ea~1{site}~1db~1ebmdb~1reach_by_rootpublisher.json/post) in case you are not working on a cookie-matching or device id, but on a criteria stored in the DMP, for example an id from your internal system.\n\n> A **unique filtered uid** filter will be applied on the request, so the choosen criteria **must** be linked to a CRM id.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdb&method=reach_by_criteria"
            },
            "operationId" : "reachByCriteriaAudienceEngine",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the id of the file uploaded through the [Upload Service](#tag/Upload)",
                  "example" : "2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59",
                  "in" : "query",
                  "name" : "file-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the saved query for which you want the reach.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "ebmdbreq-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the name of the criteria or custom criteria existing in the DMP. This criteria **must** be in **SINGLE** (S or SE) type.",
                  "example" : "ID_BOX",
                  "in" : "query",
                  "name" : "ebmdb-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649911777564991"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Estimate the reach for a given criteria.",
            "tags" : [
               "Audience Engine"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"ebmdb-name=ID_BOX&ebmdbreq-id=1777564991&file-id=2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/reach_by_criteria.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'ebmdb-name' => 'ID_BOX',\n'ebmdbreq-id' => '1777564991',\n'file-id' => '2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/reach_by_criteria.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/reach_by_criteria.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('ebmdb-name=ID_BOX&ebmdbreq-id=1777564991&file-id=2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'ebmdb-name' : 'ID_BOX',\n'ebmdbreq-id' : '1777564991',\n'file-id' : '2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdb/reach_by_rootpublisher.json" : {
         "post" : {
            "description" : "You can provide a list of uid file and ask for the reach you have available for the dataset provided.\n\nYou need to provide either a `file-id` or a `ebmdbreq-id` to start a counting process.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdb&method=reach_by_rootpublisher"
            },
            "operationId" : "reachByRootpublisherAudienceEngine",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the id of the file uploaded through the [Upload Service](#tag/Upload)",
                  "example" : "2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59",
                  "in" : "query",
                  "name" : "file-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the saved query for which you want the reach.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "ebmdbreq-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the partner publisher for which you want the reach volume",
                  "example" : "AppNexus",
                  "in" : "query",
                  "name" : "rootpublisher-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "period other which you want the reach to be calculated",
                  "example" : "60d",
                  "in" : "query",
                  "name" : "period",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "24h",
                        "48h",
                        "7d",
                        "15d",
                        "30d",
                        "60d",
                        "90d"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want to have the detail per device",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-device",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649911777564991"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Estimate the reach for a given partner.",
            "tags" : [
               "Audience Engine"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"ebmdbreq-id=1777564991&file-id=2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59&period=60d&rootpublisher-name=AppNexus&with-device=1\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/reach_by_rootpublisher.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'ebmdbreq-id' => '1777564991',\n'file-id' => '2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59',\n'period' => '60d',\n'rootpublisher-name' => 'AppNexus',\n'with-device' => '1'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/reach_by_rootpublisher.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/reach_by_rootpublisher.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('ebmdbreq-id=1777564991&file-id=2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59&period=60d&rootpublisher-name=AppNexus&with-device=1');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'ebmdbreq-id' : '1777564991',\n'file-id' : '2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59',\n'period' : '60d',\n'rootpublisher-name' : 'AppNexus',\n'with-device' : '1'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdb/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdb&method=search"
            },
            "operationId" : "searchAudienceEngine",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "key on which the criteria is based:\n* `treeiup:$iduserparam_id` will use the data linked to the CRM parameter with id=$iduserparam_id\n* `treepup:$partneruserparam_id` will use the data linked to the data provider parameter with id=$partneruserparam_id\n",
                  "example" : "treeiup:1777564991",
                  "in" : "query",
                  "name" : "ebmdb-key",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "regexp matching on the edbmdb-key",
                  "example" : "key",
                  "in" : "query",
                  "name" : "ebmdb-key-eregexp",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "type of list for the linked entries.",
                  "example" : "pupmap",
                  "in" : "query",
                  "name" : "ebmdb-listtype",
                  "schema" : {
                     "enum" : [
                        "",
                        "pupmap",
                        "iupmap",
                        "fullmap"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the criteria to check",
                  "example" : "my-test-criteria",
                  "in" : "query",
                  "name" : "ebmdb-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "ebmdb-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "The available types are :\n* BE : list of non-empty values\n* SE : boolean\n* I4E / I8E : signed integers 32 or 64 bits\n* U4A / U8E : unsigned integers 32 or 64 bits\n* F1E .. F9E : float with precision ranging from (1 digits to 9 digits)\n",
                  "example" : "BE",
                  "in" : "query",
                  "name" : "ebmdb-type",
                  "schema" : {
                     "enum" : [
                        "BE",
                        "SE",
                        "I4E",
                        "I8E",
                        "U4E",
                        "U8E",
                        "F1E",
                        "F2E",
                        "F3E",
                        "F4E",
                        "F5E",
                        "F6E",
                        "F7E",
                        "F8E",
                        "F9E",
                        "EPOCHAGE",
                        "EPOCHAGED",
                        "EPOCHDAGED",
                        "YYYYMMDDAGED",
                        "MMDDYYYYAGED"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "regexp matching on the ebmdb-type",
                  "example" : "B",
                  "in" : "query",
                  "name" : "ebmdb-type-eregexp",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ebmdb_name"
                                 },
                                 {
                                    "name" : "ebmdb_listtype"
                                 },
                                 {
                                    "name" : "ebmdb_key"
                                 },
                                 {
                                    "name" : "ebmdb_type"
                                 },
                                 {
                                    "name" : "ebmdb_desc"
                                 },
                                 {
                                    "name" : "ebmdb_id"
                                 },
                                 {
                                    "name" : "ebmdb_criticity"
                                 },
                                 {
                                    "name" : "ebmdb_threshold"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "crm_city2",
                                       "iupmap",
                                       "treeiup:307",
                                       "B",
                                       null,
                                       "217",
                                       "NORMAL",
                                       0
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available custom criterias.",
            "tags" : [
               "Audience Engine"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/search.json?dir=DESC&ebmdb-key=treeiup%3A1777564991&ebmdb-key-eregexp=key&ebmdb-listtype=pupmap&ebmdb-name=my-test-criteria&ebmdb-name-exact=1&ebmdb-type=BE&ebmdb-type-eregexp=B&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/search.json?dir=DESC&ebmdb-key=treeiup:1777564991&ebmdb-key-eregexp=key&ebmdb-listtype=pupmap&ebmdb-name=my-test-criteria&ebmdb-name-exact=1&ebmdb-type=BE&ebmdb-type-eregexp=B&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/search.json?dir=DESC&ebmdb-key=treeiup:1777564991&ebmdb-key-eregexp=key&ebmdb-listtype=pupmap&ebmdb-name=my-test-criteria&ebmdb-name-exact=1&ebmdb-type=BE&ebmdb-type-eregexp=B&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&ebmdb-key=treeiup%3A1777564991&ebmdb-key-eregexp=key&ebmdb-listtype=pupmap&ebmdb-name=my-test-criteria&ebmdb-name-exact=1&ebmdb-type=BE&ebmdb-type-eregexp=B&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdb/status.json" : {
         "get" : {
            "description" : "Once a call is made to [reach_by_rootpublisher](#tag/Audience-Engine/paths/~1ea~1{site}~1db~1ebmdb~1reach_by_rootpublisher.json/post) or [reach_by_criteria](#tag/Audience-Engine/paths/~1ea~1{site}~1db~1ebmdb~1reach_by_criteria.json/post) or [export_users](#tag/Audience-Engine/paths/~1ea~1{site}~1db~1ebmdb~1export_users.json/post) check the status of the process through this service.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdb&method=status"
            },
            "operationId" : "statusAudienceEngine",
            "parameters" : [
               {
                  "description" : "the id of the job as provided by [reach_by_rootpublisher](#tag/Audience-Engine/paths/~1ea~1{site}~1db~1ebmdb~1reach_by_rootpublisher.json/post) or [reach_by_criteria](#tag/Audience-Engine/paths/~1ea~1{site}~1db~1ebmdb~1reach_by_criteria.json/post).",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_status"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "COMPLETED"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check request status",
            "tags" : [
               "Audience Engine"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/status.json?jobrun-id=1777564991\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/status.json?jobrun-id=1777564991',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/status.json?jobrun-id=1777564991');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564991'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdb/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing custom criteria.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdb&method=update"
            },
            "operationId" : "updateAudienceEngine",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the custom criteria for which you want to modify attributes",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "ebmdb-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new name of the criteria",
                  "example" : "my-test-criteria",
                  "in" : "query",
                  "name" : "ebmdb-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "key on which the criteria is based:\n* `treeiup:$iduserparam_id` will use the data linked to the CRM parameter with id=$iduserparam_id\n* `treepup:$partneruserparam_id` will use the data linked to the data provider parameter with id=$partneruserparam_id\n",
                  "example" : "treeiup:1777564991",
                  "in" : "query",
                  "name" : "ebmdb-key",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "The available types are :\n* BE : list of non-empty values\n* SE : boolean\n* I4E / I8E : signed integers 32 or 64 bits\n* U4A / U8E : unsigned integers 32 or 64 bits\n* F1E .. F9E : float with precision ranging from (1 digits to 9 digits)\n",
                  "example" : "BE",
                  "in" : "query",
                  "name" : "ebmdb-type",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "BE",
                        "SE",
                        "I4E",
                        "I8E",
                        "U4E",
                        "U8E",
                        "F1E",
                        "F2E",
                        "F3E",
                        "F4E",
                        "F5E",
                        "F6E",
                        "F7E",
                        "F8E",
                        "F9E",
                        "EPOCHAGE",
                        "EPOCHAGED",
                        "EPOCHDAGED",
                        "YYYYMMDDAGED",
                        "MMDDYYYYAGED"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "type of list for the linked entries.",
                  "example" : "pupmap",
                  "in" : "query",
                  "name" : "ebmdb-listtype",
                  "schema" : {
                     "enum" : [
                        "",
                        "pupmap",
                        "iupmap",
                        "fullmap"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate the level of criticity of the criteria.",
                  "example" : "WATCH",
                  "in" : "query",
                  "name" : "ebmdb-criticity",
                  "schema" : {
                     "enum" : [
                        "NORMAL",
                        "WATCH",
                        "CRITICAL"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "percentage threshold for criticity management.",
                  "example" : 10,
                  "in" : "query",
                  "maximum" : 100,
                  "minimum" : 0,
                  "name" : "ebmdb-threshold",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ebmdb_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "217"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchAudienceEngine" : {
                        "description" : "Use the value of ebmdb_id entry to update a ebmdb through ebmdb-id parameter.",
                        "operationId" : "searchAudienceEngine",
                        "parameters" : {
                           "ebmdb-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update a custom criteria",
            "tags" : [
               "Audience Engine"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"ebmdb-criticity=WATCH&ebmdb-id=1777564991&ebmdb-key=treeiup%3A1777564991&ebmdb-listtype=pupmap&ebmdb-name=my-test-criteria&ebmdb-threshold=10&ebmdb-type=BE\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'ebmdb-criticity' => 'WATCH',\n'ebmdb-id' => '1777564991',\n'ebmdb-key' => 'treeiup:1777564991',\n'ebmdb-listtype' => 'pupmap',\n'ebmdb-name' => 'my-test-criteria',\n'ebmdb-threshold' => '10',\n'ebmdb-type' => 'BE'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('ebmdb-criticity=WATCH&ebmdb-id=1777564991&ebmdb-key=treeiup%3A1777564991&ebmdb-listtype=pupmap&ebmdb-name=my-test-criteria&ebmdb-threshold=10&ebmdb-type=BE');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'ebmdb-criticity' : 'WATCH',\n'ebmdb-id' : '1777564991',\n'ebmdb-key' : 'treeiup%3A1777564991',\n'ebmdb-listtype' : 'pupmap',\n'ebmdb-name' : 'my-test-criteria',\n'ebmdb-threshold' : '10',\n'ebmdb-type' : 'BE'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdb/volume_history.json" : {
         "get" : {
            "description" : "This query returns all the computed volumes for a given criteria, the volume is updated every day.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdb&method=volume_history"
            },
            "operationId" : "volumeHistoryAudienceEngine",
            "parameters" : [
               {
                  "description" : "date from which you want the volumes in MM/DD/YYYY format",
                  "example" : "10/28/2019",
                  "in" : "query",
                  "name" : "date-from",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date from which you want the volumes in Epoch format",
                  "example" : 1777478591,
                  "in" : "query",
                  "name" : "date-from-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date to which you want the volumes in MM/DD/YYYY format",
                  "example" : "10/29/2019",
                  "in" : "query",
                  "name" : "date-to",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date to which you want the volumes in Epoch format",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "date-to-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the custom criteria.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "ebmdb-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "epoch"
                                 },
                                 {
                                    "name" : "count"
                                 },
                                 {
                                    "name" : "date"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       1777564991,
                                       "14654654",
                                       "04/30/2026 18"
                                    ],
                                    [
                                       1777478591,
                                       "18651661",
                                       "04/29/2026 18"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Return the historical volume linked to a custom criteria.",
            "tags" : [
               "Audience Engine"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/volume_history.json?date-from=10%2F28%2F2019&date-from-epoch=1777478591&date-to=10%2F29%2F2019&date-to-epoch=1777564991&ebmdb-id=1777564991\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/volume_history.json?date-from=10/28/2019&date-from-epoch=1777478591&date-to=10/29/2019&date-to-epoch=1777564991&ebmdb-id=1777564991',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/volume_history.json?date-from=10/28/2019&date-from-epoch=1777478591&date-to=10/29/2019&date-to-epoch=1777564991&ebmdb-id=1777564991');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'date-from=10%2F28%2F2019&date-from-epoch=1777478591&date-to=10%2F29%2F2019&date-to-epoch=1777564991&ebmdb-id=1777564991'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdb/volume_history.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdbreq/clone_to_audience.json" : {
         "post" : {
            "description" : "This query allows you to clone an existing saved query & create an audience/segment in AER mode based on it.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdbreq&method=clone_to_audience"
            },
            "operationId" : "cloneToAudienceSavedQueries",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the saved query to clone for creating audience",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "ebmdbreq-id",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ebmdbreq_id"
                                 },
                                 {
                                    "name" : "ebmdbreq_name"
                                 },
                                 {
                                    "name" : "cluster_id"
                                 },
                                 {
                                    "name" : "cluster_name"
                                 },
                                 {
                                    "name" : "clustervalue_id"
                                 },
                                 {
                                    "name" : "clustervalue_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "my saved query",
                                    "10",
                                    "my saved query - audience",
                                    "56",
                                    "my saved query - segment"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Clone a saved query to an Audience.",
            "tags" : [
               "Saved Queries"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"ebmdbreq-id=1777564991\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreq/clone_to_audience.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'ebmdbreq-id' => '1777564991'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreq/clone_to_audience.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreq/clone_to_audience.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('ebmdbreq-id=1777564991');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'ebmdbreq-id' : '1777564991'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdbreq/exists.json" : {
         "get" : {
            "description" : " This query will check if a saved query with ebmdbreq-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdbreq&method=exists"
            },
            "operationId" : "existsSavedQueries",
            "parameters" : [
               {
                  "description" : "name of the saved query to check",
                  "example" : "my-test-ebmdbreq",
                  "in" : "query",
                  "name" : "ebmdbreq-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ebmdbreq_id"
                                 },
                                 {
                                    "name" : "ebmdbreq_name"
                                 },
                                 {
                                    "name" : "ebmdbreq_type"
                                 },
                                 {
                                    "name" : "ebmdbreq_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "add1 - 1521557761 - 1521557784",
                                    "generic",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a saved query exists",
            "tags" : [
               "Saved Queries"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreq/exists.json?ebmdbreq-name=my-test-ebmdbreq\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreq/exists.json?ebmdbreq-name=my-test-ebmdbreq',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreq/exists.json?ebmdbreq-name=my-test-ebmdbreq');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ebmdbreq-name=my-test-ebmdbreq'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreq/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdbreq/job_ebmdb.json" : {
         "get" : {
            "description" : "This query will look into which automated cold export a saved query is used.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdbreq&method=job_ebmdb"
            },
            "operationId" : "jobEbmdbSavedQueries",
            "parameters" : [
               {
                  "description" : "id of the saved query to look for",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "ebmdbreq-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "N",
                  "description" : "get more information about the EPC linked to this cold export.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "with-epc",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "job_active"
                                 },
                                 {
                                    "name" : "account_login"
                                 },
                                 {
                                    "name" : "epc_info"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       1777564991,
                                       "Test Saved query",
                                       "Y",
                                       "webmaster1",
                                       null
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get linked automated job cold export.",
            "tags" : [
               "Saved Queries"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreq/job_ebmdb.json?ebmdbreq-id=1777564991&with-epc=Y\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreq/job_ebmdb.json?ebmdbreq-id=1777564991&with-epc=Y',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreq/job_ebmdb.json?ebmdbreq-id=1777564991&with-epc=Y');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ebmdbreq-id=1777564991&with-epc=Y'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreq/job_ebmdb.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdbreq/job_workflow.json" : {
         "get" : {
            "description" : "This query will look into which workflows a saved query is used.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdbreq&method=job_workflow"
            },
            "operationId" : "jobWorkflowSavedQueries",
            "parameters" : [
               {
                  "description" : "id of the saved query to look for",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "ebmdbreq-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "job_active"
                                 },
                                 {
                                    "name" : "account_login"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       1777564991,
                                       "Test Worfklow",
                                       "Y",
                                       "webmaster1"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get linked job workflows.",
            "tags" : [
               "Saved Queries"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreq/job_workflow.json?ebmdbreq-id=1777564991\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreq/job_workflow.json?ebmdbreq-id=1777564991',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreq/job_workflow.json?ebmdbreq-id=1777564991');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ebmdbreq-id=1777564991'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreq/job_workflow.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdbreq/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdbreq&method=search"
            },
            "operationId" : "searchSavedQueries",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "ebmdbreq-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the saved query",
                  "example" : "my-test-ebmdbreq",
                  "in" : "query",
                  "name" : "ebmdbreq-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "ebmdbreq-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to generic or base100 to filter on the type",
                  "example" : "generic",
                  "in" : "query",
                  "name" : "ebmdbreq-type",
                  "schema" : {
                     "enum" : [
                        "generic",
                        "base100"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ebmdbreq_id"
                                 },
                                 {
                                    "name" : "ebmdbreq_name"
                                 },
                                 {
                                    "name" : "ebmdbreq_type"
                                 },
                                 {
                                    "name" : "ebmdbreq_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "add1 - 1521557761 - 1521557784",
                                    "generic",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Saved Queries"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreq/search.json?dir=DESC&ebmdbreq-active=Y&ebmdbreq-name=my-test-ebmdbreq&ebmdbreq-name-exact=1&ebmdbreq-type=generic&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreq/search.json?dir=DESC&ebmdbreq-active=Y&ebmdbreq-name=my-test-ebmdbreq&ebmdbreq-name-exact=1&ebmdbreq-type=generic&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreq/search.json?dir=DESC&ebmdbreq-active=Y&ebmdbreq-name=my-test-ebmdbreq&ebmdbreq-name-exact=1&ebmdbreq-type=generic&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&ebmdbreq-active=Y&ebmdbreq-name=my-test-ebmdbreq&ebmdbreq-name-exact=1&ebmdbreq-type=generic&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreq/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdbreqexternal/exists.json" : {
         "get" : {
            "description" : " This query will check if an external segment with ebmdbreqexternal-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdbreqexternal&method=exists"
            },
            "operationId" : "existsExternalSegment",
            "parameters" : [
               {
                  "description" : "name of the saved query to check",
                  "example" : "my-test-ebmdbreqexternal",
                  "in" : "query",
                  "name" : "ebmdbreqexternal-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ebmdbreqexternal_id"
                                 },
                                 {
                                    "name" : "ebmdbreqexternal_name"
                                 },
                                 {
                                    "name" : "ebmdbreqexternal_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "add1 - 1521557761 - 1521557784",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if an external segment exists",
            "tags" : [
               "External Segment"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqexternal/exists.json?ebmdbreqexternal-name=my-test-ebmdbreqexternal\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqexternal/exists.json?ebmdbreqexternal-name=my-test-ebmdbreqexternal',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqexternal/exists.json?ebmdbreqexternal-name=my-test-ebmdbreqexternal');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ebmdbreqexternal-name=my-test-ebmdbreqexternal'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqexternal/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdbreqexternal/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdbreqexternal&method=search"
            },
            "operationId" : "searchExternalSegment",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "ebmdbreqexternal-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the saved query",
                  "example" : "my-test-ebmdbreqexternal",
                  "in" : "query",
                  "name" : "ebmdbreqexternal-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "ebmdbreqexternal-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ebmdbreqexternal_id"
                                 },
                                 {
                                    "name" : "ebmdbreqexternal_name"
                                 },
                                 {
                                    "name" : "ebmdbreqexternal_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "add1 - 1521557761 - 1521557784",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "External Segment"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqexternal/search.json?dir=DESC&ebmdbreqexternal-active=Y&ebmdbreqexternal-name=my-test-ebmdbreqexternal&ebmdbreqexternal-name-exact=1&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqexternal/search.json?dir=DESC&ebmdbreqexternal-active=Y&ebmdbreqexternal-name=my-test-ebmdbreqexternal&ebmdbreqexternal-name-exact=1&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqexternal/search.json?dir=DESC&ebmdbreqexternal-active=Y&ebmdbreqexternal-name=my-test-ebmdbreqexternal&ebmdbreqexternal-name-exact=1&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&ebmdbreqexternal-active=Y&ebmdbreqexternal-name=my-test-ebmdbreqexternal&ebmdbreqexternal-name-exact=1&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqexternal/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdbreqshared/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new shared segment based on a saved queries build in Audience Engine.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdbreqshared&method=create"
            },
            "operationId" : "createSharedSegment",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the shared segment",
                  "example" : "my-test-ebmdbreqsharedreq-name",
                  "in" : "query",
                  "name" : "ebmdbreqshared-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y or N to indicate if the shared segment is active or not",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "ebmdbreqshared-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the save query you want to share.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "ebmdbreq-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ebmdbreqshared_id"
                                 },
                                 {
                                    "name" : "ebmdbreqshared_name"
                                 },
                                 {
                                    "name" : "ebmdbreqshared_active"
                                 },
                                 {
                                    "name" : "ebmdbreq_id"
                                 },
                                 {
                                    "name" : "ebmdbreq_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "My best customers",
                                    "Y",
                                    "789",
                                    "My saved query"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new shared segment entry.",
            "tags" : [
               "Shared Segment"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"ebmdbreq-id=1777564991&ebmdbreqshared-active=Y&ebmdbreqshared-name=my-test-ebmdbreqsharedreq-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqshared/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'ebmdbreq-id' => '1777564991',\n'ebmdbreqshared-active' => 'Y',\n'ebmdbreqshared-name' => 'my-test-ebmdbreqsharedreq-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqshared/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqshared/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('ebmdbreq-id=1777564991&ebmdbreqshared-active=Y&ebmdbreqshared-name=my-test-ebmdbreqsharedreq-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'ebmdbreq-id' : '1777564991',\n'ebmdbreqshared-active' : 'Y',\n'ebmdbreqshared-name' : 'my-test-ebmdbreqsharedreq-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdbreqshared/exists.json" : {
         "get" : {
            "description" : " This query will check if a shared segment with ebmdbreqshared-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdbreqshared&method=exists"
            },
            "operationId" : "existsSharedSegment",
            "parameters" : [
               {
                  "description" : "name of the shared segment to check",
                  "example" : "my-test-ebmdbreqshared",
                  "in" : "query",
                  "name" : "ebmdbreqshared-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ebmdbreqshared_id"
                                 },
                                 {
                                    "name" : "ebmdbreqshared_name"
                                 },
                                 {
                                    "name" : "ebmdbreqshared_active"
                                 },
                                 {
                                    "name" : "ebmdbreq_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "My best customers",
                                    "Y",
                                    "789"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a shared segment exists",
            "tags" : [
               "Shared Segment"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqshared/exists.json?ebmdbreqshared-name=my-test-ebmdbreqshared\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqshared/exists.json?ebmdbreqshared-name=my-test-ebmdbreqshared',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqshared/exists.json?ebmdbreqshared-name=my-test-ebmdbreqshared');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ebmdbreqshared-name=my-test-ebmdbreqshared'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqshared/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdbreqshared/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdbreqshared&method=search"
            },
            "operationId" : "searchSharedSegment",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the saved query for which you want to check the sharing status.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "ebmdbreq-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "ebmdbreqshared-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the shared segment",
                  "example" : "my-test-ebmdbreqshared",
                  "in" : "query",
                  "name" : "ebmdbreqshared-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "ebmdbreqshared-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ebmdbreqshared_id"
                                 },
                                 {
                                    "name" : "ebmdbreqshared_name"
                                 },
                                 {
                                    "name" : "ebmdbreqshared_active"
                                 },
                                 {
                                    "name" : "ebmdbreq_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "My best customers",
                                    "Y",
                                    "789"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Shared Segment"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqshared/search.json?dir=DESC&ebmdbreq-id=1777564991&ebmdbreqshared-active=Y&ebmdbreqshared-name=my-test-ebmdbreqshared&ebmdbreqshared-name-exact=1&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqshared/search.json?dir=DESC&ebmdbreq-id=1777564991&ebmdbreqshared-active=Y&ebmdbreqshared-name=my-test-ebmdbreqshared&ebmdbreqshared-name-exact=1&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqshared/search.json?dir=DESC&ebmdbreq-id=1777564991&ebmdbreqshared-active=Y&ebmdbreqshared-name=my-test-ebmdbreqshared&ebmdbreqshared-name-exact=1&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&ebmdbreq-id=1777564991&ebmdbreqshared-active=Y&ebmdbreqshared-name=my-test-ebmdbreqshared&ebmdbreqshared-name-exact=1&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqshared/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ebmdbreqshared/update.json" : {
         "post" : {
            "description" : "This query allows for updating the attributes of an existing shared segment.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ebmdbreqshared&method=update"
            },
            "operationId" : "updateSharedSegment",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the shared segment",
                  "example" : "my-test-ebmdbreqsharedreq-name",
                  "in" : "query",
                  "name" : "ebmdbreqshared-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y or N to indicate if the shared segment is active or not",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "ebmdbreqshared-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the shared segment you want to update.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "ebmdbreqshared-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ebmdbreqshared_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564991
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchSharedSegment" : {
                        "description" : "Use the value of ebmdbreqshared_id entry to update a ebmdbreqshared through ebmdbreqshared-id parameter.",
                        "operationId" : "searchSharedSegment",
                        "parameters" : {
                           "ebmdbreqshared-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update attributes of an existing shared segment entry.",
            "tags" : [
               "Shared Segment"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"ebmdbreqshared-active=Y&ebmdbreqshared-id=1777564991&ebmdbreqshared-name=my-test-ebmdbreqsharedreq-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqshared/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'ebmdbreqshared-active' => 'Y',\n'ebmdbreqshared-id' => '1777564991',\n'ebmdbreqshared-name' => 'my-test-ebmdbreqsharedreq-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqshared/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ebmdbreqshared/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('ebmdbreqshared-active=Y&ebmdbreqshared-id=1777564991&ebmdbreqshared-name=my-test-ebmdbreqsharedreq-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'ebmdbreqshared-active' : 'Y',\n'ebmdbreqshared-id' : '1777564991',\n'ebmdbreqshared-name' : 'my-test-ebmdbreqsharedreq-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/edw/exists.json" : {
         "get" : {
            "description" : "This query will check if a job name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=edw&method=exists"
            },
            "operationId" : "existsScheduledJob",
            "parameters" : [
               {
                  "description" : "name of the scheduled edw-job to check",
                  "example" : "my-test-edw-job",
                  "in" : "query",
                  "name" : "job-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_datecreate"
                                 },
                                 {
                                    "name" : "websitegrid_id"
                                 },
                                 {
                                    "name" : "job_type"
                                 },
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "account_id"
                                 },
                                 {
                                    "name" : "job_dateupdate"
                                 },
                                 {
                                    "name" : "job_active"
                                 },
                                 {
                                    "name" : "job_params"
                                 },
                                 {
                                    "name" : "job_dw"
                                 },
                                 {
                                    "name" : "job_oneshotrun"
                                 },
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_crontab"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "2",
                                       "edw",
                                       "my EDW job",
                                       "115",
                                       "0",
                                       "Y",
                                       "XML describing the EDW job",
                                       "N",
                                       "N",
                                       "286",
                                       "0 9 * * *"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a scheduled EDW job exists",
            "tags" : [
               "Scheduled Job"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/exists.json?job-name=my-test-edw-job\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/exists.json?job-name=my-test-edw-job',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/exists.json?job-name=my-test-edw-job');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'job-name=my-test-edw-job'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/edw/last_status.json" : {
         "get" : {
            "description" : "Given a schedule EDW job check the latest status.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=edw&method=last_status"
            },
            "operationId" : "lastStatusScheduledJob",
            "parameters" : [
               {
                  "description" : "the id of the scheduled EDW job as provided by the search.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 },
                                 {
                                    "name" : "jobrun_status"
                                 },
                                 {
                                    "name" : "jobrun_tm_format"
                                 },
                                 {
                                    "name" : "jobrun_statustm_format"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649911777564991",
                                    "COMPLETED",
                                    "2019-03-04 12:32:56",
                                    "2019-03-04 14:34:01"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Latest status of a scheduled EDW job",
            "tags" : [
               "Scheduled Job"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/last_status.json?job-id=1777564991\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/last_status.json?job-id=1777564991',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/last_status.json?job-id=1777564991');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'job-id=1777564991'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/last_status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/edw/relaunch.json" : {
         "post" : {
            "description" : "This API is useful when a scheduled EDW job has failed and you want to re-launch it with the same configuration.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=edw&method=relaunch"
            },
            "operationId" : "relaunchScheduledJob",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the id of the scheduled EDW job to be relaunched.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649911777564991"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Launch a scheduled EDW job.",
            "tags" : [
               "Scheduled Job"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"job-id=1777564991\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/relaunch.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'job-id' => '1777564991'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/relaunch.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/relaunch.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('job-id=1777564991');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'job-id' : '1777564991'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/edw/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=edw&method=search"
            },
            "operationId" : "searchScheduledJob",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "job-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the EDW job",
                  "example" : "my-test-EDW job",
                  "in" : "query",
                  "name" : "job-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_datecreate"
                                 },
                                 {
                                    "name" : "websitegrid_id"
                                 },
                                 {
                                    "name" : "job_type"
                                 },
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "account_id"
                                 },
                                 {
                                    "name" : "job_dateupdate"
                                 },
                                 {
                                    "name" : "job_active"
                                 },
                                 {
                                    "name" : "job_params"
                                 },
                                 {
                                    "name" : "job_dw"
                                 },
                                 {
                                    "name" : "job_oneshotrun"
                                 },
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_crontab"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "2",
                                       "edw",
                                       "my EDW job",
                                       "115",
                                       "0",
                                       "Y",
                                       "XML describing the EDW job",
                                       "N",
                                       "N",
                                       "286",
                                       "0 9 * * *"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Scheduled Job"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/search.json?dir=DESC&job-active=Y&job-name=my-test-EDW%20job&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/search.json?dir=DESC&job-active=Y&job-name=my-test-EDW job&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/search.json?dir=DESC&job-active=Y&job-name=my-test-EDW job&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&job-active=Y&job-name=my-test-EDW%20job&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/edw/status.json" : {
         "get" : {
            "description" : "Given a schedule EDW job, return the history of generation.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=edw&method=status"
            },
            "operationId" : "statusScheduledJob",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the id of the EDW job as provided by the search.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the execution process for a specific EDW job. Useful to check the execution after a relaunch.",
                  "example" : "17775649911777564991",
                  "in" : "query",
                  "name" : "jobrun_id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 },
                                 {
                                    "name" : "jobrun_status"
                                 },
                                 {
                                    "name" : "jobrun_tm_format"
                                 },
                                 {
                                    "name" : "jobrun_statustm_format"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649911777564991",
                                    "COMPLETED",
                                    "2019-03-04 12:32:56",
                                    "2019-03-04 14:34:01"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "List status of a schedules EDW job",
            "tags" : [
               "Scheduled Job"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/status.json?dir=DESC&job-id=1777564991&jobrun_id=17775649911777564991&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/status.json?dir=DESC&job-id=1777564991&jobrun_id=17775649911777564991&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/status.json?dir=DESC&job-id=1777564991&jobrun_id=17775649911777564991&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&job-id=1777564991&jobrun_id=17775649911777564991&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/edw/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing EDW job.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=edw&method=update"
            },
            "operationId" : "updateScheduledJob",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the EDW job for which you want to modify attributes",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new EDW job name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "job-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the active attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "job-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564991
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchScheduledJob" : {
                        "description" : "Use the value of edw_id entry to update a edw through edw-id parameter.",
                        "operationId" : "searchScheduledJob",
                        "parameters" : {
                           "edw-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an EDW scheduled job",
            "tags" : [
               "Scheduled Job"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"job-active=Y&job-id=1777564991&job-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'job-active' => 'Y',\n'job-id' => '1777564991',\n'job-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edw/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('job-active=Y&job-id=1777564991&job-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'job-active' : 'Y',\n'job-id' : '1777564991',\n'job-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/edwtemplate/download.json" : {
         "get" : {
            "description" : "Once the report is available (COMPLETED) you can download the data by querying this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=edwtemplate&method=download"
            },
            "operationId" : "downloadTemplatedJob",
            "parameters" : [
               {
                  "description" : "id of the jobrun generating the report as provided by the `search` query",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If set to 1, the output will be formatted as a CSV file.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "output-as-csv",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If set to 1, the output will be formatted as an array of key/value fields.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "output-as-kv",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "order_ref"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "REF-ORDER-1777564991"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Download the report",
            "tags" : [
               "Templated Job"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edwtemplate/download.json?jobrun-id=1777564991&output-as-csv=1&output-as-kv=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edwtemplate/download.json?jobrun-id=1777564991&output-as-csv=1&output-as-kv=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edwtemplate/download.json?jobrun-id=1777564991&output-as-csv=1&output-as-kv=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564991&output-as-csv=1&output-as-kv=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edwtemplate/download.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/edwtemplate/query.json" : {
         "get" : {
            "description" : "This query launches the request for treatment of the linked template. You **need** to provide the necessary parameters for executing the linked template.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=edwtemplate&method=query"
            },
            "operationId" : "queryTemplatedJob",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the template to use",
                  "example" : "urluniqueparams",
                  "in" : "query",
                  "name" : "template",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "108471777564991"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Send the query for treatment.",
            "tags" : [
               "Templated Job"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edwtemplate/query.json?dir=DESC&limit=25&start=0&template=urluniqueparams\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edwtemplate/query.json?dir=DESC&limit=25&start=0&template=urluniqueparams',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edwtemplate/query.json?dir=DESC&limit=25&start=0&template=urluniqueparams');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&start=0&template=urluniqueparams'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edwtemplate/query.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/edwtemplate/status.json" : {
         "get" : {
            "description" : "When sending a `search` request, you can check the generation status of the report by querying this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=edwtemplate&method=status"
            },
            "operationId" : "statusTemplatedJob",
            "parameters" : [
               {
                  "description" : "id of the jobrun generating the report as provided by the `search` query",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_status"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "INPROGRESS"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get the generation status.",
            "tags" : [
               "Templated Job"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edwtemplate/status.json?jobrun-id=1777564991\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edwtemplate/status.json?jobrun-id=1777564991',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edwtemplate/status.json?jobrun-id=1777564991');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564991'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/edwtemplate/status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/empdb/download.json" : {
         "get" : {
            "description" : "Download the output file straight from nasrt for a given date.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=empdb&method=download"
            },
            "operationId" : "downloadEMPDB",
            "parameters" : [
               {
                  "description" : "date of the file to be retrieved",
                  "example" : "02/12/2020",
                  "in" : "query",
                  "name" : "date",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "type of EMPDB file to be retrieved",
                  "example" : "order scart estimate or the id of the profile",
                  "in" : "query",
                  "name" : "ftype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Download EMPDB file from nasrt",
            "tags" : [
               "EMPDB"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/empdb/download.json?date=02%2F12%2F2020&ftype=order%20scart%20estimate%20or%20the%20id%20of%20the%20profile\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/empdb/download.json?date=02/12/2020&ftype=order scart estimate or the id of the profile',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/empdb/download.json?date=02/12/2020&ftype=order scart estimate or the id of the profile');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'date=02%2F12%2F2020&ftype=order%20scart%20estimate%20or%20the%20id%20of%20the%20profile'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/empdb/download.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/empdb/relaunch.json" : {
         "post" : {
            "description" : "This API is useful if some of your MTA/CJ reports are incomplete or missing.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=empdb&method=relaunch"
            },
            "operationId" : "relaunchEMPDB",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Date from which the time range starts: DD/MM/YYYY format",
                  "example" : "02/12/2020",
                  "in" : "query",
                  "name" : "date-from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Date to which the time range ends: DD/MM/YYYY format",
                  "example" : "05/12/2020",
                  "in" : "query",
                  "name" : "date-to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649911777564991"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Relaunch an EMPD.",
            "tags" : [
               "EMPDB"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"date-from=02%2F12%2F2020&date-to=05%2F12%2F2020\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/empdb/relaunch.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'date-from' => '02/12/2020',\n'date-to' => '05/12/2020'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/empdb/relaunch.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/empdb/relaunch.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('date-from=02%2F12%2F2020&date-to=05%2F12%2F2020');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'date-from' : '02%2F12%2F2020',\n'date-to' : '05%2F12%2F2020'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/empdb/status.json" : {
         "get" : {
            "description" : "Given a relaunch id, return the history of generation.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=empdb&method=status"
            },
            "operationId" : "statusEMPDB",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the execution process for a specific EPC. Useful to check the execution after a relaunch.",
                  "example" : "17775649911777564991",
                  "in" : "query",
                  "name" : "jobrun_id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 },
                                 {
                                    "name" : "jobrun_status"
                                 },
                                 {
                                    "name" : "jobrun_tm_format"
                                 },
                                 {
                                    "name" : "jobrun_statustm_format"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649911777564991",
                                    "COMPLETED",
                                    "2019-03-04 12:32:56",
                                    "2019-03-04 14:34:01"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "List status of a relaunch",
            "tags" : [
               "EMPDB"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/empdb/status.json?dir=DESC&jobrun_id=17775649911777564991&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/empdb/status.json?dir=DESC&jobrun_id=17775649911777564991&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/empdb/status.json?dir=DESC&jobrun_id=17775649911777564991&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&jobrun_id=17775649911777564991&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/empdb/status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/encdec/decrypt.json" : {
         "post" : {
            "description" : "This query will decrypt the provided payload.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=encdec&method=decrypt"
            },
            "operationId" : "decryptEncrypt/Decrypt",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "payload to be decrypt",
                  "example" : "my_content_to_decrypt",
                  "in" : "query",
                  "name" : "payload",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the key to use, if not provided we will try to fetch the ``cryptpasswd`` website option.",
                  "example" : "mytestKey098",
                  "in" : "query",
                  "name" : "key",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "decrypted"
                                 },
                                 {
                                    "name" : "payload"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "test sample",
                                    "0U2FsdGVkX1+3qw6Pkf6iSb77cNT2ZekxE8SCvrNQ0Ag="
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Decrypt a payload.",
            "tags" : [
               "Encrypt/Decrypt"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"key=mytestKey098&payload=my_content_to_decrypt\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/encdec/decrypt.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'key' => 'mytestKey098',\n'payload' => 'my_content_to_decrypt'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/encdec/decrypt.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/encdec/decrypt.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('key=mytestKey098&payload=my_content_to_decrypt');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'key' : 'mytestKey098',\n'payload' : 'my_content_to_decrypt'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/encdec/encrypt.json" : {
         "post" : {
            "description" : "This query will encrypt the provided payload.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=encdec&method=encrypt"
            },
            "operationId" : "encryptEncrypt/Decrypt",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "payload to be encrypted",
                  "example" : "my_content_to_encrypted",
                  "in" : "query",
                  "name" : "payload",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Format of the encryption.",
                  "example" : 0,
                  "in" : "query",
                  "name" : "format",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the key to use, if not provided we will try to fetch the ``cryptpasswd`` website option.",
                  "example" : "mytestKey098",
                  "in" : "query",
                  "name" : "key",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "format"
                                 },
                                 {
                                    "name" : "encrypted"
                                 },
                                 {
                                    "name" : "payload"
                                 }
                              ],
                              "rows" : [
                                 [
                                    0,
                                    "0U2FsdGVkX1+3qw6Pkf6iSb77cNT2ZekxE8SCvrNQ0Ag=",
                                    "test sample"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Encrypt a payload.",
            "tags" : [
               "Encrypt/Decrypt"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"format=0&key=mytestKey098&payload=my_content_to_encrypted\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/encdec/encrypt.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'format' => '0',\n'key' => 'mytestKey098',\n'payload' => 'my_content_to_encrypted'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/encdec/encrypt.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/encdec/encrypt.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('format=0&key=mytestKey098&payload=my_content_to_encrypted');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'format' : '0',\n'key' : 'mytestKey098',\n'payload' : 'my_content_to_encrypted'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/encdec/sample.json" : {
         "post" : {
            "description" : "This query will return samples encrypted/decrypted in specific formats for implementation purposes.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=encdec&method=sample"
            },
            "operationId" : "sampleEncrypt/Decrypt",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the key to use, if not provided we will try to fetch the ``cryptpasswd`` website option.",
                  "example" : "mytestKey098",
                  "in" : "query",
                  "name" : "key",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "format"
                                 },
                                 {
                                    "name" : "encrypted"
                                 },
                                 {
                                    "name" : "payload"
                                 }
                              ],
                              "rows" : [
                                 [
                                    0,
                                    "test sample",
                                    "0U2FsdGVkX1+3qw6Pkf6iSb77cNT2ZekxE8SCvrNQ0Ag="
                                 ],
                                 [
                                    1,
                                    "test sample",
                                    "0U2FsdGVkX1+3qw6Pkf6iSb77cNT2ZekxE8SCvrNQ0Ag="
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Sample formats",
            "tags" : [
               "Encrypt/Decrypt"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"key=mytestKey098\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/encdec/sample.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'key' => 'mytestKey098'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/encdec/sample.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/encdec/sample.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('key=mytestKey098');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'key' : 'mytestKey098'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/estimatecollectorconfigmt/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=estimatecollectorconfigmt&method=search"
            },
            "operationId" : "searchTMSEstimate",
            "parameters" : [
               {
                  "description" : "id of the tag as displaid in the TMS solution",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "collectorconfigmt-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "regexp matching the executed content for the tag",
                  "example" : ".*amount.*",
                  "in" : "query",
                  "name" : "estimatecollectorconfigmt-content-eregexp",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the estimate as displayed in the estimate list",
                  "example" : "17775649911777564991",
                  "in" : "query",
                  "name" : "estimateid-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "month for which you want to search for data",
                  "example" : "012022",
                  "in" : "query",
                  "name" : "mmyyyy",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the native partner for which you want tag that have been triggered",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "mtnative-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "estimatecollectorconfigmt_date"
                                 },
                                 {
                                    "name" : "estimateid_id"
                                 },
                                 {
                                    "name" : "mtnative_key"
                                 },
                                 {
                                    "name" : "collectorconfigmt_name"
                                 },
                                 {
                                    "name" : "estimatecollectorconfigmt_id"
                                 },
                                 {
                                    "name" : "estimatecollectorconfigmt_type"
                                 },
                                 {
                                    "name" : "estimate_ref"
                                 },
                                 {
                                    "name" : "collectorconfigmt_id"
                                 },
                                 {
                                    "name" : "estimatecollectorconfigmt_isnative"
                                 },
                                 {
                                    "name" : "estimatecollectorconfigmt_content"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1640991698",
                                    "8396124516243462049",
                                    "",
                                    "Partner_DMP_20210408",
                                    "111",
                                    null,
                                    "7305171157",
                                    "8481",
                                    "N",
                                    null
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "TMS-Estimate"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatecollectorconfigmt/search.json?collectorconfigmt-id=1777564991&dir=DESC&estimatecollectorconfigmt-content-eregexp=.%2Aamount.%2A&estimateid-id=17775649911777564991&limit=25&mmyyyy=012022&mtnative-id=1777564991&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatecollectorconfigmt/search.json?collectorconfigmt-id=1777564991&dir=DESC&estimatecollectorconfigmt-content-eregexp=.*amount.*&estimateid-id=17775649911777564991&limit=25&mmyyyy=012022&mtnative-id=1777564991&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatecollectorconfigmt/search.json?collectorconfigmt-id=1777564991&dir=DESC&estimatecollectorconfigmt-content-eregexp=.*amount.*&estimateid-id=17775649911777564991&limit=25&mmyyyy=012022&mtnative-id=1777564991&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'collectorconfigmt-id=1777564991&dir=DESC&estimatecollectorconfigmt-content-eregexp=.%2Aamount.%2A&estimateid-id=17775649911777564991&limit=25&mmyyyy=012022&mtnative-id=1777564991&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatecollectorconfigmt/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/estimatedataconnector/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=estimatedataconnector&method=search"
            },
            "operationId" : "searchS2SEstimate",
            "parameters" : [
               {
                  "description" : "id of the tag as displaid in the TMS solution",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "dataconnector-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the native partner for which you want tag that have been triggered",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "dcnative-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "regexp matching the executed content for the tag",
                  "example" : ".*amount.*",
                  "in" : "query",
                  "name" : "estimatedataconnector-content-eregexp",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the estimate as displayed in the estimate list",
                  "example" : "17775649911777564991",
                  "in" : "query",
                  "name" : "estimateid-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "month for which you want to search for data",
                  "example" : "012022",
                  "in" : "query",
                  "name" : "mmyyyy",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "estimatedataconnector_date"
                                 },
                                 {
                                    "name" : "estimateid_id"
                                 },
                                 {
                                    "name" : "dcnative_key"
                                 },
                                 {
                                    "name" : "dataconnector_name"
                                 },
                                 {
                                    "name" : "estimatedataconnector_id"
                                 },
                                 {
                                    "name" : "estimatedataconnector_type"
                                 },
                                 {
                                    "name" : "estimate_ref"
                                 },
                                 {
                                    "name" : "dataconnector_id"
                                 },
                                 {
                                    "name" : "estimatedataconnector_content"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1640991698",
                                    "8396124516243462049",
                                    "",
                                    "Partner_DMP_20210408",
                                    "111",
                                    null,
                                    "7305171157",
                                    "8481",
                                    null
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "S2S-Estimate"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatedataconnector/search.json?dataconnector-id=1777564991&dcnative-id=1777564991&dir=DESC&estimatedataconnector-content-eregexp=.%2Aamount.%2A&estimateid-id=17775649911777564991&limit=25&mmyyyy=012022&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatedataconnector/search.json?dataconnector-id=1777564991&dcnative-id=1777564991&dir=DESC&estimatedataconnector-content-eregexp=.*amount.*&estimateid-id=17775649911777564991&limit=25&mmyyyy=012022&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatedataconnector/search.json?dataconnector-id=1777564991&dcnative-id=1777564991&dir=DESC&estimatedataconnector-content-eregexp=.*amount.*&estimateid-id=17775649911777564991&limit=25&mmyyyy=012022&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dataconnector-id=1777564991&dcnative-id=1777564991&dir=DESC&estimatedataconnector-content-eregexp=.%2Aamount.%2A&estimateid-id=17775649911777564991&limit=25&mmyyyy=012022&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatedataconnector/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/estimatetype/exists.json" : {
         "get" : {
            "description" : "This query will check if a estimatetype-key exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=estimatetype&method=exists"
            },
            "operationId" : "existsEstimateType",
            "parameters" : [
               {
                  "description" : "name of the estimatetype to check",
                  "example" : "my-test-estimatetype",
                  "in" : "query",
                  "name" : "estimatetype-key",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "estimatetype_id"
                                 },
                                 {
                                    "name" : "estimatetype_key"
                                 },
                                 {
                                    "name" : "estimatetype_desc"
                                 },
                                 {
                                    "name" : "estimatetype_sort"
                                 },
                                 {
                                    "name" : "estimatetypecustom_id"
                                 },
                                 {
                                    "name" : "estimatetype_visible"
                                 },
                                 {
                                    "name" : "estimatetype_subgroup"
                                 },
                                 {
                                    "name" : "estimatetype_offline"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "MyType",
                                    null,
                                    0,
                                    1,
                                    "Y",
                                    null,
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a estimatetype-key exists",
            "tags" : [
               "EstimateType"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetype/exists.json?estimatetype-key=my-test-estimatetype\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetype/exists.json?estimatetype-key=my-test-estimatetype',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetype/exists.json?estimatetype-key=my-test-estimatetype');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'estimatetype-key=my-test-estimatetype'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetype/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/estimatetype/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=estimatetype&method=search"
            },
            "operationId" : "searchEstimateType",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the estimatetype",
                  "example" : "my-test-estimatetype",
                  "in" : "query",
                  "name" : "estimatetype-key",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on offline flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "estimatetype-offline",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on visible flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "estimatetype-visible",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to the new estimatetypecustom",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "estimatetypecustom-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "estimatetype_id"
                                 },
                                 {
                                    "name" : "estimatetype_key"
                                 },
                                 {
                                    "name" : "estimatetype_desc"
                                 },
                                 {
                                    "name" : "estimatetype_sort"
                                 },
                                 {
                                    "name" : "estimatetypecustom_id"
                                 },
                                 {
                                    "name" : "estimatetype_visible"
                                 },
                                 {
                                    "name" : "estimatetype_subgroup"
                                 },
                                 {
                                    "name" : "estimatetype_offline"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "MyType",
                                    null,
                                    0,
                                    1,
                                    "Y",
                                    null,
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "EstimateType"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetype/search.json?dir=DESC&estimatetype-key=my-test-estimatetype&estimatetype-offline=Y&estimatetype-visible=Y&estimatetypecustom-id=1777564991&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetype/search.json?dir=DESC&estimatetype-key=my-test-estimatetype&estimatetype-offline=Y&estimatetype-visible=Y&estimatetypecustom-id=1777564991&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetype/search.json?dir=DESC&estimatetype-key=my-test-estimatetype&estimatetype-offline=Y&estimatetype-visible=Y&estimatetypecustom-id=1777564991&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&estimatetype-key=my-test-estimatetype&estimatetype-offline=Y&estimatetype-visible=Y&estimatetypecustom-id=1777564991&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetype/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/estimatetype/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing estimate type.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=estimatetype&method=update"
            },
            "operationId" : "updateEstimateType",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the estimatetype for which you want to modify attributes",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "estimatetype-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new estimatetype name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "estimatetype-key",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to the new description",
                  "example" : "new description",
                  "in" : "query",
                  "name" : "estimatetype-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to the new estimatetypecustom",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "estimatetypecustom-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the visible attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "estimatetype-visible",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the offline attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "estimatetype-offline",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "estimatetype_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564991
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchEstimateType" : {
                        "description" : "Use the value of estimatetype_id entry to update a estimatetype through estimatetype-id parameter.",
                        "operationId" : "searchEstimateType",
                        "parameters" : {
                           "estimatetype-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing estimate type.",
            "tags" : [
               "EstimateType"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"estimatetype-desc=new%20description&estimatetype-id=1777564991&estimatetype-key=New%20name&estimatetype-offline=Y&estimatetype-visible=Y&estimatetypecustom-id=1777564991\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetype/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'estimatetype-desc' => 'new description',\n'estimatetype-id' => '1777564991',\n'estimatetype-key' => 'New name',\n'estimatetype-offline' => 'Y',\n'estimatetype-visible' => 'Y',\n'estimatetypecustom-id' => '1777564991'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetype/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetype/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('estimatetype-desc=new%20description&estimatetype-id=1777564991&estimatetype-key=New%20name&estimatetype-offline=Y&estimatetype-visible=Y&estimatetypecustom-id=1777564991');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'estimatetype-desc' : 'new%20description',\n'estimatetype-id' : '1777564991',\n'estimatetype-key' : 'New%20name',\n'estimatetype-offline' : 'Y',\n'estimatetype-visible' : 'Y',\n'estimatetypecustom-id' : '1777564991'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/estimatetypecustom/exists.json" : {
         "get" : {
            "description" : "This query will check if a estimatetypecustom-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=estimatetypecustom&method=exists"
            },
            "operationId" : "existsEstimateTypeCustom",
            "parameters" : [
               {
                  "description" : "name of the estimatetypecustom to check",
                  "example" : "my-test-estimatetypecustom",
                  "in" : "query",
                  "name" : "estimatetypecustom-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "estimatetypecustom_id"
                                 },
                                 {
                                    "name" : "estimatetypecustom_name"
                                 },
                                 {
                                    "name" : "estimatetypecustom_sort"
                                 },
                                 {
                                    "name" : "estimatetypecustom_visible"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "MyTypeCustom",
                                    0,
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a estimatetypecustom-name exists",
            "tags" : [
               "EstimateTypeCustom"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetypecustom/exists.json?estimatetypecustom-name=my-test-estimatetypecustom\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetypecustom/exists.json?estimatetypecustom-name=my-test-estimatetypecustom',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetypecustom/exists.json?estimatetypecustom-name=my-test-estimatetypecustom');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'estimatetypecustom-name=my-test-estimatetypecustom'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetypecustom/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/estimatetypecustom/link.json" : {
         "get" : {
            "description" : "This query allows for linking one or more estimate type to a custom estimate type.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=estimatetypecustom&method=link"
            },
            "operationId" : "linkEstimateTypeCustom",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the estimatetype",
                  "example" : 10847,
                  "in" : "query",
                  "name" : "estimatetype-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the estimatetypecustom",
                  "example" : 10847,
                  "in" : "query",
                  "name" : "estimatetypecustom-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Link estimate type",
            "tags" : [
               "EstimateTypeCustom"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetypecustom/link.json?dir=DESC&estimatetype-id=10847&estimatetypecustom-id=10847&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetypecustom/link.json?dir=DESC&estimatetype-id=10847&estimatetypecustom-id=10847&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetypecustom/link.json?dir=DESC&estimatetype-id=10847&estimatetypecustom-id=10847&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&estimatetype-id=10847&estimatetypecustom-id=10847&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetypecustom/link.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/estimatetypecustom/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=estimatetypecustom&method=search"
            },
            "operationId" : "searchEstimateTypeCustom",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the estimatetypecustom",
                  "example" : "my-test-estimatetypecustom",
                  "in" : "query",
                  "name" : "estimatetypecustom-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on visible flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "estimatetypecustom-visible",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "estimatetypecustom_id"
                                 },
                                 {
                                    "name" : "estimatetypecustom_name"
                                 },
                                 {
                                    "name" : "estimatetypecustom_sort"
                                 },
                                 {
                                    "name" : "estimatetypecustom_visible"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "MyTypeCustom",
                                    0,
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "EstimateTypeCustom"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetypecustom/search.json?dir=DESC&estimatetypecustom-name=my-test-estimatetypecustom&estimatetypecustom-visible=Y&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetypecustom/search.json?dir=DESC&estimatetypecustom-name=my-test-estimatetypecustom&estimatetypecustom-visible=Y&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetypecustom/search.json?dir=DESC&estimatetypecustom-name=my-test-estimatetypecustom&estimatetypecustom-visible=Y&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&estimatetypecustom-name=my-test-estimatetypecustom&estimatetypecustom-visible=Y&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetypecustom/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/estimatetypecustom/unlink.json" : {
         "get" : {
            "description" : "This query allows for unlinking one or more estimate type.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=estimatetypecustom&method=unlink"
            },
            "operationId" : "unlinkEstimateTypeCustom",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the estimatetype",
                  "example" : 10847,
                  "in" : "query",
                  "name" : "estimatetype-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "UnLink estimate type",
            "tags" : [
               "EstimateTypeCustom"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetypecustom/unlink.json?dir=DESC&estimatetype-id=10847&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetypecustom/unlink.json?dir=DESC&estimatetype-id=10847&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetypecustom/unlink.json?dir=DESC&estimatetype-id=10847&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&estimatetype-id=10847&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetypecustom/unlink.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/estimatetypecustom/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing estimate type.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=estimatetypecustom&method=update"
            },
            "operationId" : "updateEstimateTypeCustom",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the estimatetypecustom for which you want to modify attributes",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "estimatetypecustom-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new estimatetypecustom name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "estimatetypecustom-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the visible attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "estimatetypecustom-visible",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "estimatetypecustom_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564991
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchEstimateTypeCustom" : {
                        "description" : "Use the value of estimatetypecustom_id entry to update a estimatetypecustom through estimatetypecustom-id parameter.",
                        "operationId" : "searchEstimateTypeCustom",
                        "parameters" : {
                           "estimatetypecustom-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing estimate type.",
            "tags" : [
               "EstimateTypeCustom"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"estimatetypecustom-id=1777564991&estimatetypecustom-name=New%20name&estimatetypecustom-visible=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetypecustom/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'estimatetypecustom-id' => '1777564991',\n'estimatetypecustom-name' => 'New name',\n'estimatetypecustom-visible' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetypecustom/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/estimatetypecustom/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('estimatetypecustom-id=1777564991&estimatetypecustom-name=New%20name&estimatetypecustom-visible=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'estimatetypecustom-id' : '1777564991',\n'estimatetypecustom-name' : 'New%20name',\n'estimatetypecustom-visible' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/etrim/batch_update.json" : {
         "post" : {
            "description" : "This query will do a batch update of the provided payload and for each entry will do a `update` call. You are limited to 200 entries per call.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=etrim&method=batch_update"
            },
            "operationId" : "batchUpdateETrim",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "The payload to be sent. Maximum 200 entries.",
                  "example" : "[{'shorten':'34erf','url':'https://www.eulerian.com'},{'shorten':'654fgr','url':'https://www.eulerian.com/home'}]",
                  "in" : "query",
                  "name" : "BODY PAYLOAD",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Batch update URLs",
            "tags" : [
               "ETrim"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"BODY PAYLOAD=%5B%7B%27shorten%27%3A%2734erf%27%2C%27url%27%3A%27https%3A%2F%2Fwww.eulerian.com%27%7D%2C%7B%27shorten%27%3A%27654fgr%27%2C%27url%27%3A%27https%3A%2F%2Fwww.eulerian.com%2Fhome%27%7D%5D\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/etrim/batch_update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'BODY PAYLOAD' => '[{'shorten':'34erf','url':'https://www.eulerian.com'},{'shorten':'654fgr','url':'https://www.eulerian.com/home'}]'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/etrim/batch_update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/etrim/batch_update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('BODY PAYLOAD=%5B%7B%27shorten%27%3A%2734erf%27%2C%27url%27%3A%27https%3A%2F%2Fwww.eulerian.com%27%7D%2C%7B%27shorten%27%3A%27654fgr%27%2C%27url%27%3A%27https%3A%2F%2Fwww.eulerian.com%2Fhome%27%7D%5D');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'BODY PAYLOAD' : '%5B%7B%27shorten%27%3A%2734erf%27%2C%27url%27%3A%27https%3A%2F%2Fwww.eulerian.com%27%7D%2C%7B%27shorten%27%3A%27654fgr%27%2C%27url%27%3A%27https%3A%2F%2Fwww.eulerian.com%2Fhome%27%7D%5D'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/etrim/exists_by_shorten.json" : {
         "get" : {
            "description" : "This query will recover the final destination URL from a shortened URL.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=etrim&method=exists_by_shorten"
            },
            "operationId" : "existsByShortenETrim",
            "parameters" : [
               {
                  "description" : "code of the shortened URL you are looking for. This code is 4 numbers and letters that follow the domain name.",
                  "example" : "34rtf",
                  "in" : "query",
                  "name" : "shorten",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "url"
                                 },
                                 {
                                    "name" : "shorten"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "https://www.eulerian.com",
                                    "http://et1.etr.im/34rtt"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a shorten code exists",
            "tags" : [
               "ETrim"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/etrim/exists_by_shorten.json?shorten=34rtf\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/etrim/exists_by_shorten.json?shorten=34rtf',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/etrim/exists_by_shorten.json?shorten=34rtf');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'shorten=34rtf'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/etrim/exists_by_shorten.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/etrim/exists_by_url.json" : {
         "get" : {
            "description" : "This query will recover an existing shortened URL from a target URL.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=etrim&method=exists_by_url"
            },
            "operationId" : "existsByUrlETrim",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "URL you want to check.",
                  "example" : "https://www.eulerian.com",
                  "in" : "query",
                  "name" : "url",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "url"
                                 },
                                 {
                                    "name" : "shorten"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "https://www.eulerian.com",
                                    "http://et1.etr.im/34rtt"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a URL exists",
            "tags" : [
               "ETrim"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/etrim/exists_by_url.json?url=https%3A%2F%2Fwww.eulerian.com\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/etrim/exists_by_url.json?url=https://www.eulerian.com',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/etrim/exists_by_url.json?url=https://www.eulerian.com');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'url=https%3A%2F%2Fwww.eulerian.com'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/etrim/exists_by_url.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/etrim/shorten.json" : {
         "post" : {
            "description" : "This query is meant to shorten a URL and provide its shortened version.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=etrim&method=shorten"
            },
            "operationId" : "shortenETrim",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "URL for which you want a shortened link.",
                  "example" : "https://www.eulerian.com",
                  "in" : "query",
                  "name" : "url",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "url"
                                 },
                                 {
                                    "name" : "shorten"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "https://www.eulerian.com",
                                    "http://et1.etr.im/34rtt"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Shorten a URL",
            "tags" : [
               "ETrim"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"url=https%3A%2F%2Fwww.eulerian.com\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/etrim/shorten.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'url' => 'https://www.eulerian.com'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/etrim/shorten.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/etrim/shorten.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('url=https%3A%2F%2Fwww.eulerian.com');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'url' : 'https%3A%2F%2Fwww.eulerian.com'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/etrim/update.json" : {
         "post" : {
            "description" : "This query will update the destination URL linked to a shortened URL code. If the new URL is identical to the configured one, an error will occur.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=etrim&method=update"
            },
            "operationId" : "updateETrim",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "URL for which you want a shortened link.",
                  "example" : "https://www.eulerian.com",
                  "in" : "query",
                  "name" : "url",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "shorten code you want to update",
                  "example" : "34erf",
                  "in" : "query",
                  "name" : "shorten",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Update a destination URL",
            "tags" : [
               "ETrim"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"shorten=34erf&url=https%3A%2F%2Fwww.eulerian.com\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/etrim/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'shorten' => '34erf',\n'url' => 'https://www.eulerian.com'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/etrim/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/etrim/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('shorten=34erf&url=https%3A%2F%2Fwww.eulerian.com');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'shorten' : '34erf',\n'url' : 'https%3A%2F%2Fwww.eulerian.com'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/expandlimit/exists.json" : {
         "get" : {
            "description" : "This query will check if a expandlimit-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=expandlimit&method=exists"
            },
            "operationId" : "existsExpandLimit",
            "parameters" : [
               {
                  "description" : "name of the expandlimit to check",
                  "example" : "my-test-expandlimit",
                  "in" : "query",
                  "name" : "expandlimit-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "expandlimit_id"
                                 },
                                 {
                                    "name" : "expandlimit_name"
                                 },
                                 {
                                    "name" : "expandlimit_maxdaily"
                                 },
                                 {
                                    "name" : "expandlimit_allowpattern"
                                 },
                                 {
                                    "name" : "expandlimit_denypattern"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "action",
                                    "50",
                                    ".*",
                                    "^toot"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a expandlimit-name exists",
            "tags" : [
               "ExpandLimit"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/expandlimit/exists.json?expandlimit-name=my-test-expandlimit\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/expandlimit/exists.json?expandlimit-name=my-test-expandlimit',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/expandlimit/exists.json?expandlimit-name=my-test-expandlimit');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'expandlimit-name=my-test-expandlimit'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/expandlimit/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/expandlimit/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=expandlimit&method=search"
            },
            "operationId" : "searchExpandLimit",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "LIKE search on the allow pattern",
                  "example" : "Test",
                  "in" : "query",
                  "name" : "expandlimit-allowpattern",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "LIKE search on the deny pattern",
                  "example" : "Test",
                  "in" : "query",
                  "name" : "expandlimit-denypattern",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "maxdaily of the expandlimit",
                  "example" : 2,
                  "in" : "query",
                  "name" : "expandlimit-maxdaily",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the expandlimit",
                  "example" : "my-test-expandlimit",
                  "in" : "query",
                  "name" : "expandlimit-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "expandlimit_id"
                                 },
                                 {
                                    "name" : "expandlimit_name"
                                 },
                                 {
                                    "name" : "expandlimit_maxdaily"
                                 },
                                 {
                                    "name" : "expandlimit_allowpattern"
                                 },
                                 {
                                    "name" : "expandlimit_denypattern"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "action",
                                    "50",
                                    ".*",
                                    "^toot"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "ExpandLimit"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/expandlimit/search.json?dir=DESC&expandlimit-allowpattern=Test&expandlimit-denypattern=Test&expandlimit-maxdaily=2&expandlimit-name=my-test-expandlimit&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/expandlimit/search.json?dir=DESC&expandlimit-allowpattern=Test&expandlimit-denypattern=Test&expandlimit-maxdaily=2&expandlimit-name=my-test-expandlimit&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/expandlimit/search.json?dir=DESC&expandlimit-allowpattern=Test&expandlimit-denypattern=Test&expandlimit-maxdaily=2&expandlimit-name=my-test-expandlimit&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&expandlimit-allowpattern=Test&expandlimit-denypattern=Test&expandlimit-maxdaily=2&expandlimit-name=my-test-expandlimit&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/expandlimit/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/funnel/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new funnel.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=funnel&method=create"
            },
            "operationId" : "createFunnel",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the funnel template",
                  "example" : "my-test-funnel-name",
                  "in" : "query",
                  "name" : "funnel-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate the weight of the funnel, the funnel are sorted by this value, a user cannot go back.",
                  "example" : 10,
                  "in" : "query",
                  "name" : "funnel-weight",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "example" : "^/homepage$",
                  "in" : "query",
                  "name" : "funnel-pattern",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "funnel_id"
                                 },
                                 {
                                    "name" : "funnel_name"
                                 },
                                 {
                                    "name" : "funnel_weight"
                                 },
                                 {
                                    "name" : "funnel_ergmask"
                                 },
                                 {
                                    "name" : "funnel_pattern"
                                 },
                                 {
                                    "name" : "funnel_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "visitor",
                                    "1",
                                    "",
                                    "/homepage",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new funnel entry.",
            "tags" : [
               "Funnel"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"funnel-name=my-test-funnel-name&funnel-pattern=%5E%2Fhomepage%24&funnel-weight=10\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/funnel/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'funnel-name' => 'my-test-funnel-name',\n'funnel-pattern' => '^/homepage$',\n'funnel-weight' => '10'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/funnel/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/funnel/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('funnel-name=my-test-funnel-name&funnel-pattern=%5E%2Fhomepage%24&funnel-weight=10');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'funnel-name' : 'my-test-funnel-name',\n'funnel-pattern' : '%5E%2Fhomepage%24',\n'funnel-weight' : '10'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/funnel/exists.json" : {
         "get" : {
            "description" : "This query will check if a funnel-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=funnel&method=exists"
            },
            "operationId" : "existsFunnel",
            "parameters" : [
               {
                  "description" : "name of the funnel to check",
                  "example" : "my-test-funnel",
                  "in" : "query",
                  "name" : "funnel-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "funnel_id"
                                 },
                                 {
                                    "name" : "funnel_name"
                                 },
                                 {
                                    "name" : "funnel_weight"
                                 },
                                 {
                                    "name" : "funnel_ergmask"
                                 },
                                 {
                                    "name" : "funnel_pattern"
                                 },
                                 {
                                    "name" : "funnel_active"
                                 },
                                 {
                                    "name" : "funnel_visitduration"
                                 },
                                 {
                                    "name" : "funnel_pagenb"
                                 },
                                 {
                                    "name" : "funnel_visitnb"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "visitor",
                                    "1",
                                    "",
                                    "/homepage",
                                    "Y",
                                    0,
                                    0,
                                    0
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a funnel-name exists",
            "tags" : [
               "Funnel"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/funnel/exists.json?funnel-name=my-test-funnel\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/funnel/exists.json?funnel-name=my-test-funnel',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/funnel/exists.json?funnel-name=my-test-funnel');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'funnel-name=my-test-funnel'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/funnel/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/funnel/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=funnel&method=search"
            },
            "operationId" : "searchFunnel",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "funnel-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the funnel",
                  "example" : "my-test-funnel",
                  "in" : "query",
                  "name" : "funnel-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "funnel-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "funnel_id"
                                 },
                                 {
                                    "name" : "funnel_name"
                                 },
                                 {
                                    "name" : "funnel_weight"
                                 },
                                 {
                                    "name" : "funnel_ergmask"
                                 },
                                 {
                                    "name" : "funnel_pattern"
                                 },
                                 {
                                    "name" : "funnel_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "visitor",
                                    "1",
                                    "",
                                    "/homepage",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Funnel"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/funnel/search.json?dir=DESC&funnel-active=Y&funnel-name=my-test-funnel&funnel-name-exact=1&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/funnel/search.json?dir=DESC&funnel-active=Y&funnel-name=my-test-funnel&funnel-name-exact=1&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/funnel/search.json?dir=DESC&funnel-active=Y&funnel-name=my-test-funnel&funnel-name-exact=1&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&funnel-active=Y&funnel-name=my-test-funnel&funnel-name-exact=1&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/funnel/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/funnel/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing funnel.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=funnel&method=update"
            },
            "operationId" : "updateFunnel",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the funnel for which you want to modify attributes",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "funnel-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new funnel name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "funnel-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new funnel pattern",
                  "example" : "^/home$",
                  "in" : "query",
                  "name" : "funnel-pattern",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the active attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "funnel-active",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "funnel_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564991
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchFunnel" : {
                        "description" : "Use the value of funnel_id entry to update a funnel through funnel-id parameter.",
                        "operationId" : "searchFunnel",
                        "parameters" : {
                           "funnel-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing funnel.",
            "tags" : [
               "Funnel"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"funnel-active=Y&funnel-id=1777564991&funnel-name=New%20name&funnel-pattern=%5E%2Fhome%24\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/funnel/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'funnel-active' => 'Y',\n'funnel-id' => '1777564991',\n'funnel-name' => 'New name',\n'funnel-pattern' => '^/home$'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/funnel/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/funnel/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('funnel-active=Y&funnel-id=1777564991&funnel-name=New%20name&funnel-pattern=%5E%2Fhome%24');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'funnel-active' : 'Y',\n'funnel-id' : '1777564991',\n'funnel-name' : 'New%20name',\n'funnel-pattern' : '%5E%2Fhome%24'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/idpurgelog/abort.json" : {
         "remove" : {
            "description" : "This query will abort a request for a purging process.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=idpurgelog&method=abort"
            },
            "operationId" : "abortPurge",
            "parameters" : [
               {
                  "description" : "id of the purge request to abort",
                  "example" : 191,
                  "in" : "query",
                  "name" : "idpurgelog-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "idpurgelog_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564991
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Abort a purge request",
            "tags" : [
               "Purge"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X REMOVE \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/idpurgelog/abort.json?idpurgelog-id=191\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/idpurgelog/abort.json?idpurgelog-id=191',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/idpurgelog/abort.json?idpurgelog-id=191');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'idpurgelog-id=191'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/idpurgelog/abort.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/idpurgelog/count_pending.json" : {
         "get" : {
            "description" : "This query will return the number of users pending for next purge.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=idpurgelog&method=count_pending"
            },
            "operationId" : "countPendingPurge",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "count_pending"
                                 }
                              ],
                              "rows" : [
                                 [
                                    191
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Pending users to purge",
            "tags" : [
               "Purge"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/idpurgelog/count_pending.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/idpurgelog/count_pending.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/idpurgelog/count_pending.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/idpurgelog/count_pending.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/idpurgelog/create.json" : {
         "post" : {
            "description" : "This query will create a request for a purging process. A check will be done before-hand to see if we have a data payload linked to the provided key / value pair, this will avoid creating useless purge request, so that we only work on valid identifiers.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=idpurgelog&method=create"
            },
            "operationId" : "createPurge",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "key describing the type of identifier",
                  "example" : "etuix",
                  "in" : "query",
                  "name" : "key",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "etuix",
                        "eauidh",
                        "wsuid",
                        "altuid:\\\\d+",
                        "rpub:\\\\d+"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "idpurgelog_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564991
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a purge request",
            "tags" : [
               "Purge"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"key=etuix\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/idpurgelog/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'key' => 'etuix'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/idpurgelog/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/idpurgelog/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('key=etuix');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'key' : 'etuix'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/idpurgelog/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=idpurgelog&method=search"
            },
            "operationId" : "searchPurge",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "epoch time at which an exact abort purge request has been made.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "idpurgelog-dateabort",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "from epoch boundary working on the date abort value",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "idpurgelog-dateabort-from-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "to epoch boundary working on the date abort value",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "idpurgelog-dateabort-to-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "epoch time at which an exact create purge request has been made.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "idpurgelog-datecreate",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "from epoch boundary working on the date create value",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "idpurgelog-datecreate-from-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "to epoch boundary working on the date create value",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "idpurgelog-datecreate-to-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "epoch time at which an exact purge request has been fullfilled.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "idpurgelog-datedone",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "from epoch boundary working on the date done value",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "idpurgelog-datedone-from-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "to epoch boundary working on the date done value",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "idpurgelog-datedone-to-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "status of the purge request",
                  "example" : "QUEUED",
                  "in" : "query",
                  "name" : "idpurgelog-key",
                  "schema" : {
                     "enum" : [
                        "QUEUED",
                        "PENDING",
                        "COMPLETED",
                        "FAILED",
                        "ABORTED"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "status of the purge request",
                  "example" : "QUEUED",
                  "in" : "query",
                  "name" : "idpurgelog-status",
                  "schema" : {
                     "enum" : [
                        "QUEUED",
                        "PENDING",
                        "COMPLETED",
                        "FAILED",
                        "ABORTED"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "value of the id used for purging",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "idpurgelog-value",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "idpurgelog_dateabort"
                                 },
                                 {
                                    "name" : "idpurgelog_datecreate"
                                 },
                                 {
                                    "name" : "idpurgelog_datedone"
                                 },
                                 {
                                    "name" : "idpurgelog_id"
                                 },
                                 {
                                    "name" : "idpurgelog_key"
                                 },
                                 {
                                    "name" : "idpurgelog_requester"
                                 },
                                 {
                                    "name" : "idpurgelog_status"
                                 },
                                 {
                                    "name" : "idpurgelog_value"
                                 },
                                 {
                                    "name" : "idpurgelog_eauidh"
                                 }
                              ],
                              "rows" : [
                                 [
                                    null,
                                    1777471391,
                                    1777564991,
                                    191,
                                    "wsuid",
                                    "{}",
                                    "COMPLETED",
                                    "crm-id-123456-12XF",
                                    "17775649911777564991"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Purge"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/idpurgelog/search.json?dir=DESC&idpurgelog-dateabort=1777564991&idpurgelog-dateabort-from-epoch=1777564991&idpurgelog-dateabort-to-epoch=1777564991&idpurgelog-datecreate=1777564991&idpurgelog-datecreate-from-epoch=1777564991&idpurgelog-datecreate-to-epoch=1777564991&idpurgelog-datedone=1777564991&idpurgelog-datedone-from-epoch=1777564991&idpurgelog-datedone-to-epoch=1777564991&idpurgelog-key=QUEUED&idpurgelog-status=QUEUED&idpurgelog-value=1777564991&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/idpurgelog/search.json?dir=DESC&idpurgelog-dateabort=1777564991&idpurgelog-dateabort-from-epoch=1777564991&idpurgelog-dateabort-to-epoch=1777564991&idpurgelog-datecreate=1777564991&idpurgelog-datecreate-from-epoch=1777564991&idpurgelog-datecreate-to-epoch=1777564991&idpurgelog-datedone=1777564991&idpurgelog-datedone-from-epoch=1777564991&idpurgelog-datedone-to-epoch=1777564991&idpurgelog-key=QUEUED&idpurgelog-status=QUEUED&idpurgelog-value=1777564991&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/idpurgelog/search.json?dir=DESC&idpurgelog-dateabort=1777564991&idpurgelog-dateabort-from-epoch=1777564991&idpurgelog-dateabort-to-epoch=1777564991&idpurgelog-datecreate=1777564991&idpurgelog-datecreate-from-epoch=1777564991&idpurgelog-datecreate-to-epoch=1777564991&idpurgelog-datedone=1777564991&idpurgelog-datedone-from-epoch=1777564991&idpurgelog-datedone-to-epoch=1777564991&idpurgelog-key=QUEUED&idpurgelog-status=QUEUED&idpurgelog-value=1777564991&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&idpurgelog-dateabort=1777564991&idpurgelog-dateabort-from-epoch=1777564991&idpurgelog-dateabort-to-epoch=1777564991&idpurgelog-datecreate=1777564991&idpurgelog-datecreate-from-epoch=1777564991&idpurgelog-datecreate-to-epoch=1777564991&idpurgelog-datedone=1777564991&idpurgelog-datedone-from-epoch=1777564991&idpurgelog-datedone-to-epoch=1777564991&idpurgelog-key=QUEUED&idpurgelog-status=QUEUED&idpurgelog-value=1777564991&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/idpurgelog/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/idpurgelog/statistics.json" : {
         "get" : {
            "description" : "This query will return the volume of users successfully purged per day.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=idpurgelog&method=statistics"
            },
            "operationId" : "statisticsPurge",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "epoch"
                                 },
                                 {
                                    "name" : "count"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564991,
                                    1236546
                                 ],
                                 [
                                    1777478591,
                                    1236
                                 ],
                                 [
                                    1777392191,
                                    98653
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 3
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Statistics on purged users.",
            "tags" : [
               "Purge"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/idpurgelog/statistics.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/idpurgelog/statistics.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/idpurgelog/statistics.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/idpurgelog/statistics.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/iduser/deny.json" : {
         "get" : {
            "description" : "This query will deny a user and avoid all data collection for the given user.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=iduser&method=deny"
            },
            "operationId" : "denyUser",
            "parameters" : [
               {
                  "description" : "uid you want to deny.",
                  "example" : "my-test-uid",
                  "in" : "query",
                  "name" : "iduser-fullid",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "iduser_fullid"
                                 },
                                 {
                                    "name" : "iduser_deny"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564991,
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Deny data collection for a user.",
            "tags" : [
               "User"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduser/deny.json?iduser-fullid=my-test-uid\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduser/deny.json?iduser-fullid=my-test-uid',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduser/deny.json?iduser-fullid=my-test-uid');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'iduser-fullid=my-test-uid'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduser/deny.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/iduser/info.json" : {
         "get" : {
            "description" : "This query will fetch data about the provided iduser-fullid.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=iduser&method=info"
            },
            "operationId" : "infoUser",
            "parameters" : [
               {
                  "description" : "uid for which you want the information.",
                  "example" : "my-test-uid",
                  "in" : "query",
                  "name" : "iduser-fullid",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "user_iu"
                                 },
                                 {
                                    "name" : "user_uid"
                                 },
                                 {
                                    "name" : "user_email"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564991,
                                    "crm-123456789",
                                    "815da3438b09e52eae6244e4e1ac2f77"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Provide information about a user.",
            "tags" : [
               "User"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduser/info.json?iduser-fullid=my-test-uid\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduser/info.json?iduser-fullid=my-test-uid',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduser/info.json?iduser-fullid=my-test-uid');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'iduser-fullid=my-test-uid'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduser/info.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/iduser/undeny.json" : {
         "get" : {
            "description" : "This query will undeny a user and avoid all data collection for the given user.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=iduser&method=undeny"
            },
            "operationId" : "undenyUser",
            "parameters" : [
               {
                  "description" : "uid you want to undeny.",
                  "example" : "my-test-uid",
                  "in" : "query",
                  "name" : "iduser-fullid",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "iduser_id"
                                 },
                                 {
                                    "name" : "iduser_deny"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564991,
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Undeny data collection for a user.",
            "tags" : [
               "User"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduser/undeny.json?iduser-fullid=my-test-uid\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduser/undeny.json?iduser-fullid=my-test-uid',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduser/undeny.json?iduser-fullid=my-test-uid');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'iduser-fullid=my-test-uid'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduser/undeny.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/iduserparam/check_pattern.json" : {
         "get" : {
            "description" : "This query will check all the values linked to an iduserparam towards a specified pattern. It only works on stored values. The first 500 error entries will be returned.\n\nIf you want to first test a list of entries before doing the data injection, you can use the [Upload Service](#tag/Upload) to upload a file, once you have the `file-id` you can provide it to this API to work on the values of the uploaded file, in this case the `iduserparamvalue_id` field will be empty in the response. The uploaded file is a text file that must contain one value per line.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=iduserparam&method=check_pattern"
            },
            "operationId" : "checkPatternCRMParameters",
            "parameters" : [
               {
                  "description" : "the id of the file uploaded through the [Upload Service](#tag/Upload)",
                  "example" : "2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59",
                  "in" : "query",
                  "name" : "file-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the iduserparam you want to check",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "iduserparam-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "a regexp to override the defined pattern linked to the targeted iduserparam",
                  "example" : "^toto$",
                  "in" : "query",
                  "name" : "iduserparam-pattern",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "iduserparamvalue_value"
                                 },
                                 {
                                    "name" : "iduserparamvalue_id"
                                 },
                                 {
                                    "name" : "status"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "test",
                                       1777564991,
                                       "FAILED"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if values of an iduserparam validate a pattern.",
            "tags" : [
               "CRM Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/check_pattern.json?file-id=2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59&iduserparam-id=1777564991&iduserparam-pattern=%5Etoto%24\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/check_pattern.json?file-id=2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59&iduserparam-id=1777564991&iduserparam-pattern=^toto$',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/check_pattern.json?file-id=2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59&iduserparam-id=1777564991&iduserparam-pattern=^toto$');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'file-id=2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59&iduserparam-id=1777564991&iduserparam-pattern=%5Etoto%24'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/check_pattern.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/iduserparam/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new iduserparam.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=iduserparam&method=create"
            },
            "operationId" : "createCRMParameters",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the iduserparam template",
                  "example" : "my-test-iduserparam-name",
                  "in" : "query",
                  "name" : "iduserparam-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : 0,
                  "description" : "the data typing of the crm parameter as listed in the above description.",
                  "example" : 2,
                  "in" : "query",
                  "name" : "iduserparam-dtype",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "0",
                        "1",
                        "2",
                        "3"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y / N flag indicating if the parameter is active or not.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "iduserparam-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "description of the data provider name",
                  "example" : "my description",
                  "in" : "query",
                  "name" : "iduserparam-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y / N flag indicating if we need to track modification time on the crm parameter.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "iduserparam-wmtime",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "when iduserparam_mtime is set to Y, provide the number of days for which the data will be deleted for the current user.",
                  "example" : 10,
                  "in" : "query",
                  "name" : "iduserparam-expiredays",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "hashing algorithm to apply",
                  "example" : "sha256lctr",
                  "in" : "query",
                  "name" : "iduserparam-hashalgo",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "number of days from which hashing is to be applied.",
                  "example" : 10,
                  "in" : "query",
                  "name" : "iduserparam-hashdelay",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "provide a regexp that must match the value, you can invert with a prefixed ! (ex: !^(1|0)$ match all except 1 or 0)",
                  "example" : "^(1|0)$/",
                  "in" : "query",
                  "name" : "iduserparam-pattern",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "iduserparam_dtype"
                                 },
                                 {
                                    "name" : "iduserparam_active"
                                 },
                                 {
                                    "name" : "iduserparam_id"
                                 },
                                 {
                                    "name" : "iduserparam_desc"
                                 },
                                 {
                                    "name" : "iduserparam_archive"
                                 },
                                 {
                                    "name" : "iduserparam_name"
                                 },
                                 {
                                    "name" : "iduserparam_uiconfig"
                                 },
                                 {
                                    "name" : "iduserparam_expiredays"
                                 },
                                 {
                                    "name" : "iduserparam_wmtime"
                                 },
                                 {
                                    "name" : "iduserparam_hashalgo"
                                 },
                                 {
                                    "name" : "iduserparam_hashdelay"
                                 },
                                 {
                                    "name" : "iduserparam_desctreat"
                                 },
                                 {
                                    "name" : "iduserparam_idhck"
                                 },
                                 {
                                    "name" : "iduserparam_withdckv"
                                 },
                                 {
                                    "name" : "iduserparam_pattern"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "Y",
                                       "1",
                                       "carte",
                                       "N",
                                       "carte",
                                       "{}",
                                       0,
                                       "N",
                                       "",
                                       "",
                                       "",
                                       0,
                                       "Y",
                                       ""
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new iduserparam entry.",
            "tags" : [
               "CRM Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"iduserparam-active=N&iduserparam-desc=my%20description&iduserparam-dtype=2&iduserparam-expiredays=10&iduserparam-hashalgo=sha256lctr&iduserparam-hashdelay=10&iduserparam-name=my-test-iduserparam-name&iduserparam-pattern=%5E%281%7C0%29%24%2F&iduserparam-wmtime=N\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'iduserparam-active' => 'N',\n'iduserparam-desc' => 'my description',\n'iduserparam-dtype' => '2',\n'iduserparam-expiredays' => '10',\n'iduserparam-hashalgo' => 'sha256lctr',\n'iduserparam-hashdelay' => '10',\n'iduserparam-name' => 'my-test-iduserparam-name',\n'iduserparam-pattern' => '^(1|0)$/',\n'iduserparam-wmtime' => 'N'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('iduserparam-active=N&iduserparam-desc=my%20description&iduserparam-dtype=2&iduserparam-expiredays=10&iduserparam-hashalgo=sha256lctr&iduserparam-hashdelay=10&iduserparam-name=my-test-iduserparam-name&iduserparam-pattern=%5E%281%7C0%29%24%2F&iduserparam-wmtime=N');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'iduserparam-active' : 'N',\n'iduserparam-desc' : 'my%20description',\n'iduserparam-dtype' : '2',\n'iduserparam-expiredays' : '10',\n'iduserparam-hashalgo' : 'sha256lctr',\n'iduserparam-hashdelay' : '10',\n'iduserparam-name' : 'my-test-iduserparam-name',\n'iduserparam-pattern' : '%5E%281%7C0%29%24%2F',\n'iduserparam-wmtime' : 'N'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/iduserparam/exists.json" : {
         "get" : {
            "description" : "This query will check if a iduserparam-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=iduserparam&method=exists"
            },
            "operationId" : "existsCRMParameters",
            "parameters" : [
               {
                  "description" : "name of the iduserparam to check",
                  "example" : "my-test-iduserparam",
                  "in" : "query",
                  "name" : "iduserparam-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "iduserparam_dtype"
                                 },
                                 {
                                    "name" : "iduserparam_active"
                                 },
                                 {
                                    "name" : "iduserparam_id"
                                 },
                                 {
                                    "name" : "iduserparam_desc"
                                 },
                                 {
                                    "name" : "iduserparam_archive"
                                 },
                                 {
                                    "name" : "iduserparam_name"
                                 },
                                 {
                                    "name" : "iduserparam_uiconfig"
                                 },
                                 {
                                    "name" : "iduserparam_expiredays"
                                 },
                                 {
                                    "name" : "iduserparam_wmtime"
                                 },
                                 {
                                    "name" : "iduserparam_hashalgo"
                                 },
                                 {
                                    "name" : "iduserparam_hashdelay"
                                 },
                                 {
                                    "name" : "iduserparam_desctreat"
                                 },
                                 {
                                    "name" : "iduserparam_idhck"
                                 },
                                 {
                                    "name" : "iduserparam_withdckv"
                                 },
                                 {
                                    "name" : "iduserparam_pattern"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "Y",
                                       "1",
                                       "carte",
                                       "N",
                                       "carte",
                                       "{}",
                                       "N",
                                       0,
                                       "",
                                       "",
                                       "",
                                       0,
                                       "Y",
                                       ""
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a iduserparam-name exists",
            "tags" : [
               "CRM Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/exists.json?iduserparam-name=my-test-iduserparam\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/exists.json?iduserparam-name=my-test-iduserparam',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/exists.json?iduserparam-name=my-test-iduserparam');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'iduserparam-name=my-test-iduserparam'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/iduserparam/lookup.json" : {
         "get" : {
            "description" : "This query will check in the system where the given user parameter is used.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=iduserparam&method=lookup"
            },
            "operationId" : "lookupCRMParameters",
            "parameters" : [
               {
                  "description" : "indicate to limit the search to a specific class of parameters, you can provide multiple classes by using commas. eg: dataconnector,coldebmdb",
                  "example" : "dataconnector",
                  "in" : "query",
                  "name" : "class",
                  "schema" : {
                     "enum" : [
                        "ergmacrotemplate",
                        "opedataparam",
                        "tpcreativeengine",
                        "collectorconfigmthandler",
                        "dataconnector",
                        "clustervalue",
                        "denysitecentric",
                        "clickdispatcher",
                        "view",
                        "tpcampaignelttargeting",
                        "campaignelttargeting",
                        "ebmdb",
                        "coldebmdb",
                        "workflow"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "default" : "param,rule",
                  "description" : "indicate to limit the search to a specific context, you can provide multiple context by using commas. eg: dataconnector,ebmdbreq",
                  "example" : "param",
                  "in" : "query",
                  "name" : "context",
                  "schema" : {
                     "enum" : [
                        "param",
                        "rule"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the user parameter for which you want to do the lookup.",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "iduserparam-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "context"
                                 },
                                 {
                                    "name" : "id"
                                 },
                                 {
                                    "name" : "name"
                                 },
                                 {
                                    "name" : "class"
                                 },
                                 {
                                    "name" : "type"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "param",
                                    "6931",
                                    "TV_DEPAT_IDF",
                                    "coldebmdb",
                                    "param"
                                 ],
                                 [
                                    "rule",
                                    "481",
                                    "TV",
                                    "ebmdbreq",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Lookup the usage of the user parameter.",
            "tags" : [
               "CRM Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/lookup.json?class=dataconnector&context=param&iduserparam-id=1777564991\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/lookup.json?class=dataconnector&context=param&iduserparam-id=1777564991',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/lookup.json?class=dataconnector&context=param&iduserparam-id=1777564991');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'class=dataconnector&context=param&iduserparam-id=1777564991'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/lookup.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/iduserparam/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=iduserparam&method=search"
            },
            "operationId" : "searchCRMParameters",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the iduserparam",
                  "example" : "my-test-iduserparam",
                  "in" : "query",
                  "name" : "iduserparam-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "iduserparam-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "iduserparam_dtype"
                                 },
                                 {
                                    "name" : "iduserparam_active"
                                 },
                                 {
                                    "name" : "iduserparam_id"
                                 },
                                 {
                                    "name" : "iduserparam_desc"
                                 },
                                 {
                                    "name" : "iduserparam_archive"
                                 },
                                 {
                                    "name" : "iduserparam_name"
                                 },
                                 {
                                    "name" : "iduserparam_uiconfig"
                                 },
                                 {
                                    "name" : "iduserparam_expiredays"
                                 },
                                 {
                                    "name" : "iduserparam_wmtime"
                                 },
                                 {
                                    "name" : "iduserparam_hashalgo"
                                 },
                                 {
                                    "name" : "iduserparam_hashdelay"
                                 },
                                 {
                                    "name" : "iduserparam_desctreat"
                                 },
                                 {
                                    "name" : "iduserparam_idhck"
                                 },
                                 {
                                    "name" : "iduserparam_withdckv"
                                 },
                                 {
                                    "name" : "iduserparam_pattern"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "Y",
                                       "1",
                                       "carte",
                                       "N",
                                       "carte",
                                       "{}",
                                       "N",
                                       0,
                                       "",
                                       "",
                                       "",
                                       0,
                                       "Y",
                                       ""
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "CRM Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/search.json?dir=DESC&iduserparam-name=my-test-iduserparam&iduserparam-name-exact=1&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/search.json?dir=DESC&iduserparam-name=my-test-iduserparam&iduserparam-name-exact=1&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/search.json?dir=DESC&iduserparam-name=my-test-iduserparam&iduserparam-name-exact=1&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&iduserparam-name=my-test-iduserparam&iduserparam-name-exact=1&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/iduserparam/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing iduserparam.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=iduserparam&method=update"
            },
            "operationId" : "updateCRMParameters",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the iduserparam for which you want to modify attributes",
                  "example" : 1777564991,
                  "in" : "query",
                  "name" : "iduserparam-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new iduserparam name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "iduserparam-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : 0,
                  "description" : "the data typing of the crm parameter as listed in the above description.",
                  "example" : 2,
                  "in" : "query",
                  "name" : "iduserparam-dtype",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "0",
                        "1",
                        "2",
                        "3"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y / N flag indicating if the parameter is active or not.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "iduserparam-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "description of the data provider name",
                  "example" : "my description",
                  "in" : "query",
                  "name" : "iduserparam-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y / N flag indicating if we need to track modification time on the crm parameter.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "iduserparam-wmtime",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "when iduserparam_mtime is set to Y, provide the number of days for which the data will be deleted for the current user.",
                  "example" : 10,
                  "in" : "query",
                  "name" : "iduserparam-expiredays",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "hashing algorithm to apply",
                  "example" : "sha256lctr",
                  "in" : "query",
                  "name" : "iduserparam-hashalgo",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "number of days from which hashing is to be applied.",
                  "example" : 10,
                  "in" : "query",
                  "name" : "iduserparam-hashdelay",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "provide a regexp that must match the value, you can invert with a prefixed ! (ex: !^(1|0)$ match all except 1 or 0)",
                  "example" : "^(1|0)$/",
                  "in" : "query",
                  "name" : "iduserparam-pattern",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "iduserparam_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564991
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchCRMParameters" : {
                        "description" : "Use the value of iduserparam_id entry to update a iduserparam through iduserparam-id parameter.",
                        "operationId" : "searchCRMParameters",
                        "parameters" : {
                           "iduserparam-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing iduserparam.",
            "tags" : [
               "CRM Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"iduserparam-active=N&iduserparam-desc=my%20description&iduserparam-dtype=2&iduserparam-expiredays=10&iduserparam-hashalgo=sha256lctr&iduserparam-hashdelay=10&iduserparam-id=1777564991&iduserparam-name=New%20name&iduserparam-pattern=%5E%281%7C0%29%24%2F&iduserparam-wmtime=N\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'iduserparam-active' => 'N',\n'iduserparam-desc' => 'my description',\n'iduserparam-dtype' => '2',\n'iduserparam-expiredays' => '10',\n'iduserparam-hashalgo' => 'sha256lctr',\n'iduserparam-hashdelay' => '10',\n'iduserparam-id' => '1777564991',\n'iduserparam-name' => 'New name',\n'iduserparam-pattern' => '^(1|0)$/',\n'iduserparam-wmtime' => 'N'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/iduserparam/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('iduserparam-active=N&iduserparam-desc=my%20description&iduserparam-dtype=2&iduserparam-expiredays=10&iduserparam-hashalgo=sha256lctr&iduserparam-hashdelay=10&iduserparam-id=1777564991&iduserparam-name=New%20name&iduserparam-pattern=%5E%281%7C0%29%24%2F&iduserparam-wmtime=N');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'iduserparam-active' : 'N',\n'iduserparam-desc' : 'my%20description',\n'iduserparam-dtype' : '2',\n'iduserparam-expiredays' : '10',\n'iduserparam-hashalgo' : 'sha256lctr',\n'iduserparam-hashdelay' : '10',\n'iduserparam-id' : '1777564991',\n'iduserparam-name' : 'New%20name',\n'iduserparam-pattern' : '%5E%281%7C0%29%24%2F',\n'iduserparam-wmtime' : 'N'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/incrementality/generate.json" : {
         "post" : {
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=incrementality&method=generate"
            },
            "operationId" : "generateIncrementality",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date from which the report is going to work, linked to the date format linked to ea-lg",
                  "example" : "DD/MM/YYYY",
                  "in" : "query",
                  "name" : "date-from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date to (included) which the report is going to work, linked to the date format linked to ea-lg",
                  "example" : "DD/MM/YYYY",
                  "in" : "query",
                  "name" : "date-to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "language to work on",
                  "in" : "query",
                  "name" : "ea-lg",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "fr",
                        "es",
                        "en"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "\"$media_id:$ope_id\" combination of the targeted campaign id and its parent media id",
                  "example" : "3:612",
                  "in" : "query",
                  "name" : "item",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "type of the goal the model is going to work on.",
                  "example" : "order",
                  "in" : "query",
                  "name" : "goal",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "order",
                        "estimate",
                        "scart"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "type of the output on which the model is working",
                  "example" : "campaign",
                  "in" : "query",
                  "name" : "output",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "campaign",
                        "channel",
                        "publisher",
                        "subchannel",
                        "submedia"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "emathmodel_name"
                                 },
                                 {
                                    "name" : "emathmodel_value"
                                 },
                                 {
                                    "name" : "emathmodel_pct"
                                 },
                                 {
                                    "name" : "media_key"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "model1",
                                    12,
                                    "21.01 %",
                                    "seo"
                                 ],
                                 [
                                    "model1",
                                    30,
                                    "52.631 %",
                                    "ppc"
                                 ],
                                 [
                                    "model1",
                                    15,
                                    "26.315 %",
                                    "mailing"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564991108471777564991",
                              "start" : 0,
                              "tm" : 1777564991,
                              "total" : 3
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Generate a model on specific parameters",
            "tags" : [
               "Incrementality"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"date-from=DD%2FMM%2FYYYY&date-to=DD%2FMM%2FYYYY&goal=order&item=3%3A612&output=campaign\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/incrementality/generate.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'date-from' => 'DD/MM/YYYY',\n'date-to' => 'DD/MM/YYYY',\n'goal' => 'order',\n'item' => '3:612',\n'output' => 'campaign'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/incrementality/generate.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/incrementality/generate.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('date-from=DD%2FMM%2FYYYY&date-to=DD%2FMM%2FYYYY&goal=order&item=3%3A612&output=campaign');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'date-from' : 'DD%2FMM%2FYYYY',\n'date-to' : 'DD%2FMM%2FYYYY',\n'goal' : 'order',\n'item' : '3%3A612',\n'output' : 'campaign'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/insight/generate.json" : {
         "post" : {
            "description" : "Launch the generation of `insight-testid` insight on a custom daterange, a `jobrun_id` is returned that MUST be provided as `jobrun-id` parameter to call generate_status() to check the status of generation, if `jobrun_status` is `COMPLETED` then call generate_get() with same `jobrun_id`.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=insight&method=generate"
            },
            "operationId" : "generateInsight",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "internal test name of the insight",
                  "example" : "T120",
                  "in" : "query",
                  "name" : "insight-testid",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date to run the insight on, format YYYY-MM-DD for single date, date=YYYY-MM-DD,YYYY-MM-DD for period",
                  "example" : "2026-02-08",
                  "in" : "query",
                  "name" : "date",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 },
                                 {
                                    "name" : "job_params"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649921777564992"
                                 ],
                                 [
                                    "<ea type=\"insight\"><gridpool name=\"dem\" /><website id=\"1\" /><custom_run test=\"T120\" date=\"2026-02-08\"/></ea>"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Generate a custom run for a given insight-testid.",
            "tags" : [
               "Insight"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"date=2026-02-08&dir=DESC&insight-testid=T120&limit=25&start=0\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/generate.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'date' => '2026-02-08',\n'dir' => 'DESC',\n'insight-testid' => 'T120',\n'limit' => '25',\n'start' => '0'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/generate.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/generate.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('date=2026-02-08&dir=DESC&insight-testid=T120&limit=25&start=0');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'date' : '2026-02-08',\n'dir' : 'DESC',\n'insight-testid' : 'T120',\n'limit' : '25',\n'start' : '0'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/insight/generate_get.json" : {
         "get" : {
            "description" : "Given a `jobrun_id` returned by generate(), fetch the content of the completed run of the insight.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=insight&method=generate_get"
            },
            "operationId" : "generateGetInsight",
            "parameters" : [
               {
                  "description" : "the value of the `jobrun_id` returned by the generate() call, once the generate_status() call returns COMPLETED status.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 },
                                 {
                                    "name" : "jobrun_status"
                                 },
                                 {
                                    "name" : "jobrun_tm_format"
                                 },
                                 {
                                    "name" : "jobrun_statustm_format"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649921777564992",
                                    "COMPLETED",
                                    "2019-03-04 12:32:56",
                                    "2019-03-04 14:34:01"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get generated insight content",
            "tags" : [
               "Insight"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/generate_get.json?jobrun-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/generate_get.json?jobrun-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/generate_get.json?jobrun-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/generate_get.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/insight/generate_status.json" : {
         "get" : {
            "description" : "Given a `jobrun_id` provided by generate(), return the status of the generation.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=insight&method=generate_status"
            },
            "operationId" : "generateStatusInsight",
            "parameters" : [
               {
                  "description" : "the value of the `jobrun_id` returned by the generate() call.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 },
                                 {
                                    "name" : "jobrun_status"
                                 },
                                 {
                                    "name" : "jobrun_tm_format"
                                 },
                                 {
                                    "name" : "jobrun_statustm_format"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649921777564992",
                                    "COMPLETED",
                                    "2019-03-04 12:32:56",
                                    "2019-03-04 14:34:01"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Latest status of an generate insight job",
            "tags" : [
               "Insight"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/generate_status.json?jobrun-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/generate_status.json?jobrun-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/generate_status.json?jobrun-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/generate_status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/insight/get.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination. Use category paramter to retrieve insights from a given category only",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=insight&method=get"
            },
            "operationId" : "getInsight",
            "parameters" : [
               {
                  "description" : "filters on insights of a given category name",
                  "example" : "fraud",
                  "in" : "query",
                  "name" : "category",
                  "schema" : {
                     "enum" : [
                        "category.fraud",
                        "category.media",
                        "category.mmm",
                        "category.trafficking",
                        "category.use",
                        "category.audience",
                        "category.sl",
                        "category.customrun"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "internal test name of the insight",
                  "example" : "T120",
                  "in" : "query",
                  "name" : "insight-testid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get a given insight.",
            "tags" : [
               "Insight"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/get.json?category=fraud&dir=DESC&insight-testid=T120&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/get.json?category=fraud&dir=DESC&insight-testid=T120&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/get.json?category=fraud&dir=DESC&insight-testid=T120&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'category=fraud&dir=DESC&insight-testid=T120&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/get.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/insight/get_available_generate.json" : {
         "get" : {
            "description" : "This query lists insight-testids and associated names where generate is possible on specific date formats.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=insight&method=get_available_generate"
            },
            "operationId" : "getAvailableGenerateInsight",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "insight-testid"
                                 },
                                 {
                                    "name" : "insight-name"
                                 },
                                 {
                                    "name" : "date-format"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "T1",
                                    "Sales variation alert",
                                    [
                                       "YYYY-MM-DD"
                                    ]
                                 ],
                                 [
                                    "T2",
                                    "Baskets variation alert",
                                    [
                                       "YYYY-MM-DD"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "List insight testids and names where generate is enabled and provides accepted date-format for each",
            "tags" : [
               "Insight"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/get_available_generate.json?dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/get_available_generate.json?dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/get_available_generate.json?dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/get_available_generate.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/insight/list_all.json" : {
         "get" : {
            "description" : "This query allows for listing available triggered insights.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=insight&method=list_all"
            },
            "operationId" : "listAllInsight",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get all triggered insights.",
            "tags" : [
               "Insight"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/list_all.json?dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/list_all.json?dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/list_all.json?dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/insight/list_all.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/label/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new label.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=label&method=create"
            },
            "operationId" : "createLabel",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the label template",
                  "example" : "my-test-label-name",
                  "in" : "query",
                  "name" : "label-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate the type of the label. If it is all, the label can be used everywhere.",
                  "example" : "cluster",
                  "in" : "query",
                  "name" : "label-type",
                  "schema" : {
                     "enum" : [
                        "all",
                        "cluster",
                        "clustervalue",
                        "reportcenter",
                        "ope",
                        "ebmdb",
                        "mmmdatasource"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "label_id"
                                 },
                                 {
                                    "name" : "label_name"
                                 },
                                 {
                                    "name" : "label_desc"
                                 },
                                 {
                                    "name" : "label_type"
                                 },
                                 {
                                    "name" : "label_active"
                                 },
                                 {
                                    "name" : "label_archive"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "visitor",
                                    "all my visitors",
                                    "cluster",
                                    "Y",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new label entry.",
            "tags" : [
               "Label"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"label-name=my-test-label-name&label-type=cluster\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/label/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'label-name' => 'my-test-label-name',\n'label-type' => 'cluster'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/label/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/label/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('label-name=my-test-label-name&label-type=cluster');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'label-name' : 'my-test-label-name',\n'label-type' : 'cluster'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/label/exists.json" : {
         "get" : {
            "description" : "This query will check if a label-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=label&method=exists"
            },
            "operationId" : "existsLabel",
            "parameters" : [
               {
                  "description" : "name of the label to check",
                  "example" : "my-test-label",
                  "in" : "query",
                  "name" : "label-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "label_id"
                                 },
                                 {
                                    "name" : "label_name"
                                 },
                                 {
                                    "name" : "label_desc"
                                 },
                                 {
                                    "name" : "label_type"
                                 },
                                 {
                                    "name" : "label_active"
                                 },
                                 {
                                    "name" : "label_archive"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "visitor",
                                    "all my visitors",
                                    "cluster",
                                    "Y",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a label-name exists",
            "tags" : [
               "Label"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/label/exists.json?label-name=my-test-label\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/label/exists.json?label-name=my-test-label',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/label/exists.json?label-name=my-test-label');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'label-name=my-test-label'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/label/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/label/remove.json" : {
         "delete" : {
            "description" : "This query allows for deleting an existing label entry, it will also remove all the links between this label & other entities to which it was linked.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=label&method=remove"
            },
            "operationId" : "removeLabel",
            "parameters" : [
               {
                  "description" : "id of the label you want to remove.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "label-id",
                  "required" : true,
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Remove an existing label entry.",
            "tags" : [
               "Label"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X DELETE \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/label/remove.json?label-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/label/remove.json?label-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/label/remove.json?label-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'label-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/label/remove.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/label/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=label&method=search"
            },
            "operationId" : "searchLabel",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "label-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "label-archive",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the label",
                  "example" : "my-test-label",
                  "in" : "query",
                  "name" : "label-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "label-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate the type of the label.",
                  "example" : "cluster",
                  "in" : "query",
                  "name" : "label-type",
                  "schema" : {
                     "enum" : [
                        "all",
                        "cluster",
                        "clustervalue",
                        "reportcenter",
                        "ope",
                        "ebmdb",
                        "mmmdatasource"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "label_id"
                                 },
                                 {
                                    "name" : "label_name"
                                 },
                                 {
                                    "name" : "label_desc"
                                 },
                                 {
                                    "name" : "label_type"
                                 },
                                 {
                                    "name" : "label_active"
                                 },
                                 {
                                    "name" : "label_archive"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "visitor",
                                    "all my visitors",
                                    "cluster",
                                    "Y",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Label"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/label/search.json?dir=DESC&label-active=Y&label-archive=Y&label-name=my-test-label&label-name-exact=1&label-type=cluster&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/label/search.json?dir=DESC&label-active=Y&label-archive=Y&label-name=my-test-label&label-name-exact=1&label-type=cluster&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/label/search.json?dir=DESC&label-active=Y&label-archive=Y&label-name=my-test-label&label-name-exact=1&label-type=cluster&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&label-active=Y&label-archive=Y&label-name=my-test-label&label-name-exact=1&label-type=cluster&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/label/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/label/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing label.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=label&method=update"
            },
            "operationId" : "updateLabel",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the label for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "label-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new label name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "label-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new label description",
                  "example" : "New description",
                  "in" : "query",
                  "name" : "label-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "label-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "label-archive",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "label_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchLabel" : {
                        "description" : "Use the value of label_id entry to update a label through label-id parameter.",
                        "operationId" : "searchLabel",
                        "parameters" : {
                           "label-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing label.",
            "tags" : [
               "Label"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"label-active=Y&label-archive=Y&label-desc=New%20description&label-id=1777564992&label-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/label/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'label-active' => 'Y',\n'label-archive' => 'Y',\n'label-desc' => 'New description',\n'label-id' => '1777564992',\n'label-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/label/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/label/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('label-active=Y&label-archive=Y&label-desc=New%20description&label-id=1777564992&label-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'label-active' : 'Y',\n'label-archive' : 'Y',\n'label-desc' : 'New%20description',\n'label-id' : '1777564992',\n'label-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/location/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new location.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=location&method=create"
            },
            "operationId" : "createLocation",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the location",
                  "example" : "my-test-location-name",
                  "in" : "query",
                  "name" : "location-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the publisher to which the location will be linked.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "publisher-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the creativetype to which the location will be linked.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "createtivetype-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y / N to enable the active flag.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "location-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "publisher_id"
                                 },
                                 {
                                    "name" : "location_desc"
                                 },
                                 {
                                    "name" : "location_name"
                                 },
                                 {
                                    "name" : "location_active"
                                 },
                                 {
                                    "name" : "location_id"
                                 },
                                 {
                                    "name" : "location_archive"
                                 },
                                 {
                                    "name" : "creativetype_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "10114",
                                    null,
                                    "partenaire_cpm_entreesite_habillage",
                                    "Y",
                                    "24",
                                    "N",
                                    "25"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new location.",
            "tags" : [
               "Location"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"createtivetype-id=1777564992&location-active=Y&location-name=my-test-location-name&publisher-id=1777564992\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/location/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'createtivetype-id' => '1777564992',\n'location-active' => 'Y',\n'location-name' => 'my-test-location-name',\n'publisher-id' => '1777564992'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/location/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/location/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('createtivetype-id=1777564992&location-active=Y&location-name=my-test-location-name&publisher-id=1777564992');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'createtivetype-id' : '1777564992',\n'location-active' : 'Y',\n'location-name' : 'my-test-location-name',\n'publisher-id' : '1777564992'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/location/exists.json" : {
         "get" : {
            "description" : "This query will check if a location name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=location&method=exists"
            },
            "operationId" : "existsLocation",
            "parameters" : [
               {
                  "description" : "name of the location to check",
                  "example" : "my-test-location",
                  "in" : "query",
                  "name" : "location-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "publisher_id"
                                 },
                                 {
                                    "name" : "location_desc"
                                 },
                                 {
                                    "name" : "location_name"
                                 },
                                 {
                                    "name" : "location_active"
                                 },
                                 {
                                    "name" : "location_id"
                                 },
                                 {
                                    "name" : "location_archive"
                                 },
                                 {
                                    "name" : "creativetype_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "10114",
                                    null,
                                    "partenaire_cpm_entreesite_habillage",
                                    "Y",
                                    "24",
                                    "N",
                                    "25"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a location exists",
            "tags" : [
               "Location"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/location/exists.json?location-name=my-test-location\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/location/exists.json?location-name=my-test-location',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/location/exists.json?location-name=my-test-location');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'location-name=my-test-location'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/location/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/location/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=location&method=search"
            },
            "operationId" : "searchLocation",
            "parameters" : [
               {
                  "description" : "id of the creativetype for which you want the linked locations, you can provide multiple ids separated by a pipe, eg: creativetype-id=654|897",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "creativetype-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "key of the creativetype for which you want the linked locations, you can provide multiple keys separated by a pipe, eg: creativetype-key=88x89|56x32",
                  "example" : "88x89",
                  "in" : "query",
                  "name" : "creativetype-key",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "location-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "location-archive",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the location",
                  "example" : "my-test-location",
                  "in" : "query",
                  "name" : "location-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "location-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the campaign or which you want the linked locations, you can provide multiple ids separated by a pipe, eg: ope-id=987|656|98",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "ope-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the publisher for which you want the linked locations, you can provide multiple ids separated by a pipe, eg: publisher-id=2334|77|98",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "publisher-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the publisher for which you want the linked locations",
                  "example" : "me",
                  "in" : "query",
                  "name" : "publisher-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "publisher_id"
                                 },
                                 {
                                    "name" : "location_desc"
                                 },
                                 {
                                    "name" : "location_name"
                                 },
                                 {
                                    "name" : "location_active"
                                 },
                                 {
                                    "name" : "location_id"
                                 },
                                 {
                                    "name" : "location_archive"
                                 },
                                 {
                                    "name" : "creativetype_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "10114",
                                    null,
                                    "partenaire_cpm_entreesite_habillage",
                                    "Y",
                                    "24",
                                    "N",
                                    "25"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Location"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/location/search.json?creativetype-id=1777564992&creativetype-key=88x89&dir=DESC&limit=25&location-active=Y&location-archive=Y&location-name=my-test-location&location-name-exact=1&ope-id=1777564992&publisher-id=1777564992&publisher-name=me&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/location/search.json?creativetype-id=1777564992&creativetype-key=88x89&dir=DESC&limit=25&location-active=Y&location-archive=Y&location-name=my-test-location&location-name-exact=1&ope-id=1777564992&publisher-id=1777564992&publisher-name=me&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/location/search.json?creativetype-id=1777564992&creativetype-key=88x89&dir=DESC&limit=25&location-active=Y&location-archive=Y&location-name=my-test-location&location-name-exact=1&ope-id=1777564992&publisher-id=1777564992&publisher-name=me&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'creativetype-id=1777564992&creativetype-key=88x89&dir=DESC&limit=25&location-active=Y&location-archive=Y&location-name=my-test-location&location-name-exact=1&ope-id=1777564992&publisher-id=1777564992&publisher-name=me&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/location/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/location/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing location.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=location&method=update"
            },
            "operationId" : "updateLocation",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the location for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "location-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new location name",
                  "example" : "New-name",
                  "in" : "query",
                  "name" : "location-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "location-archive",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "location-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the new publisher to which this location will be linked.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "publisher-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the new creativetype to which this location will be linked.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "creativetype-id",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "location_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchLocation" : {
                        "description" : "Use the value of location_id entry to update a location through location-id parameter.",
                        "operationId" : "searchLocation",
                        "parameters" : {
                           "location-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing location.",
            "tags" : [
               "Location"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"creativetype-id=1777564992&location-active=Y&location-archive=Y&location-id=1777564992&location-name=New-name&publisher-id=1777564992\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/location/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'creativetype-id' => '1777564992',\n'location-active' => 'Y',\n'location-archive' => 'Y',\n'location-id' => '1777564992',\n'location-name' => 'New-name',\n'publisher-id' => '1777564992'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/location/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/location/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('creativetype-id=1777564992&location-active=Y&location-archive=Y&location-id=1777564992&location-name=New-name&publisher-id=1777564992');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'creativetype-id' : '1777564992',\n'location-active' : 'Y',\n'location-archive' : 'Y',\n'location-id' : '1777564992',\n'location-name' : 'New-name',\n'publisher-id' : '1777564992'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mdevicetype/getall.json" : {
         "get" : {
            "description" : "This query will retrieve all the available rules without pagination or filtering.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mdevicetype&method=getall"
            },
            "operationId" : "getallDeviceType",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "mdevicetype_id"
                                 },
                                 {
                                    "name" : "mdevicetype_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "Tv"
                                 ],
                                 [
                                    "2",
                                    "Desktop"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get all the entries.",
            "tags" : [
               "Device Type"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mdevicetype/getall.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mdevicetype/getall.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mdevicetype/getall.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mdevicetype/getall.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mediacategory/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new mediacategory.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mediacategory&method=create"
            },
            "operationId" : "createMediaCategory",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the mediacategory",
                  "example" : "my-test-mediacategory-name",
                  "in" : "query",
                  "name" : "mediacategory-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "mediacategory_id"
                                 },
                                 {
                                    "name" : "mediacategory_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "MyMediaCategory"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new mediacategory entry.",
            "tags" : [
               "MediaCategory"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"mediacategory-name=my-test-mediacategory-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mediacategory/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'mediacategory-name' => 'my-test-mediacategory-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mediacategory/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mediacategory/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('mediacategory-name=my-test-mediacategory-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'mediacategory-name' : 'my-test-mediacategory-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mediacategory/exists.json" : {
         "get" : {
            "description" : "This query will check if a mediacategory-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mediacategory&method=exists"
            },
            "operationId" : "existsMediaCategory",
            "parameters" : [
               {
                  "description" : "name of the mediacategory to check",
                  "example" : "my-test-mediacategory",
                  "in" : "query",
                  "name" : "mediacategory-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "mediacategory_id"
                                 },
                                 {
                                    "name" : "mediacategory_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "MyCategory"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a mediacategory-name exists",
            "tags" : [
               "MediaCategory"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mediacategory/exists.json?mediacategory-name=my-test-mediacategory\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mediacategory/exists.json?mediacategory-name=my-test-mediacategory',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mediacategory/exists.json?mediacategory-name=my-test-mediacategory');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'mediacategory-name=my-test-mediacategory'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mediacategory/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mediacategory/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mediacategory&method=search"
            },
            "operationId" : "searchMediaCategory",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the mediacategory",
                  "example" : "my-test-mediacategory",
                  "in" : "query",
                  "name" : "mediacategory-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "type of search to use",
                  "example" : "end",
                  "in" : "query",
                  "name" : "mediacategory-name-like",
                  "schema" : {
                     "enum" : [
                        "start",
                        "end",
                        "contain",
                        "exact"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "mediacategory_id"
                                 },
                                 {
                                    "name" : "mediacategory_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "MyMediaCategory"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "MediaCategory"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mediacategory/search.json?dir=DESC&limit=25&mediacategory-name=my-test-mediacategory&mediacategory-name-like=end&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mediacategory/search.json?dir=DESC&limit=25&mediacategory-name=my-test-mediacategory&mediacategory-name-like=end&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mediacategory/search.json?dir=DESC&limit=25&mediacategory-name=my-test-mediacategory&mediacategory-name-like=end&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&mediacategory-name=my-test-mediacategory&mediacategory-name-like=end&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mediacategory/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mediacategory/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing mediacategory.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mediacategory&method=update"
            },
            "operationId" : "updateMediaCategory",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the mediacategory for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "mediacategory-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new mediacategory name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "mediacategory-name",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "mediacategory_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchMediaCategory" : {
                        "description" : "Use the value of mediacategory_id entry to update a mediacategory through mediacategory-id parameter.",
                        "operationId" : "searchMediaCategory",
                        "parameters" : {
                           "mediacategory-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing mediacategory.",
            "tags" : [
               "MediaCategory"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"mediacategory-id=1777564992&mediacategory-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mediacategory/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'mediacategory-id' => '1777564992',\n'mediacategory-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mediacategory/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mediacategory/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('mediacategory-id=1777564992&mediacategory-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'mediacategory-id' : '1777564992',\n'mediacategory-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mmm/exists.json" : {
         "get" : {
            "description" : "This query will check if an MMM name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mmm&method=exists"
            },
            "operationId" : "existsMMM",
            "parameters" : [
               {
                  "description" : "name of the MMM to check",
                  "example" : "my-test-MMM",
                  "in" : "query",
                  "name" : "job-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_datecreate"
                                 },
                                 {
                                    "name" : "websitegrid_id"
                                 },
                                 {
                                    "name" : "job_type"
                                 },
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "account_id"
                                 },
                                 {
                                    "name" : "job_dateupdate"
                                 },
                                 {
                                    "name" : "job_active"
                                 },
                                 {
                                    "name" : "job_params"
                                 },
                                 {
                                    "name" : "job_dw"
                                 },
                                 {
                                    "name" : "job_oneshotrun"
                                 },
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_crontab"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "2",
                                       "MMM",
                                       "my MMM",
                                       "115",
                                       "0",
                                       "Y",
                                       "XML describing the MMM",
                                       "N",
                                       "N",
                                       "286",
                                       "0 9 * * *"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if an MMM exists",
            "tags" : [
               "MMM"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmm/exists.json?job-name=my-test-MMM\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmm/exists.json?job-name=my-test-MMM',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmm/exists.json?job-name=my-test-MMM');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'job-name=my-test-MMM'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmm/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mmm/saturation.json" : {
         "get" : {
            "description" : "This API is useful to get saturation data with optimisation propositions according to scenarios.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mmm&method=saturation"
            },
            "operationId" : "saturationMMM",
            "parameters" : [
               {
                  "description" : "List of lower bounds for channel optimization constraints. If none, the optimization will widen bounds to x3 to all channels for the 'unbounded allocation', else follow entered bounds. Must either be a single value for all, or an array with a value for each variable, following the order of the model's variable",
                  "example" : "[0.9,0.7]",
                  "in" : "query",
                  "name" : "channel_constr_low",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Overwrite the default multiplier of 3 for the 'unbounded' scenario",
                  "example" : "2.4",
                  "in" : "query",
                  "name" : "channel_constr_multiplier",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "List of upper bounds for channel optimization constraints. If none, the optimization will widen bounds to x3 to all channels for the 'unbounded allocation', else follow entered bounds. Must either be a single value for all, or an array with a value for each variable, following the order of the model's variable",
                  "example" : "[1.3,1.4]",
                  "in" : "query",
                  "name" : "channel_constr_up",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Date to get the budget allocation simulation from",
                  "example" : "all",
                  "in" : "query",
                  "name" : "date_range",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the id of the MMM to be get data from.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Chose between 'max_response' and 'target_eficiency' to either maximize the ROAS and minimize the CPA, or discover how much you could spend until reaching break-even",
                  "example" : "max_response",
                  "in" : "query",
                  "name" : "scenario",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "max_response",
                        "target_eficiency"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Your Solution ID, unique ID of the model created by the job",
                  "example" : "1_111_1",
                  "in" : "query",
                  "name" : "sid",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Enter the projected budget for the period. If none, all budget from modeling window will be applied",
                  "example" : "1500000",
                  "in" : "query",
                  "name" : "total_budget",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "bounded_cpa_marginal"
                                 },
                                 {
                                    "name" : "bounded_marginal_response"
                                 },
                                 {
                                    "name" : "bounded_mean_spend"
                                 },
                                 {
                                    "name" : "bounded_response_point"
                                 },
                                 {
                                    "name" : "bounded_roi_marginal"
                                 },
                                 {
                                    "name" : "bounded_roi_mean"
                                 },
                                 {
                                    "name" : "bounded_spend_point"
                                 },
                                 {
                                    "name" : "bounded_up_cpa_marginal"
                                 },
                                 {
                                    "name" : "bounded_up_marginal_response"
                                 },
                                 {
                                    "name" : "bounded_up_mean_spend"
                                 },
                                 {
                                    "name" : "bounded_up_response_point"
                                 },
                                 {
                                    "name" : "bounded_up_roi_marginal"
                                 },
                                 {
                                    "name" : "bounded_up_roi_mean"
                                 },
                                 {
                                    "name" : "bounded_up_spend_point"
                                 },
                                 {
                                    "name" : "carryover_marginal_response"
                                 },
                                 {
                                    "name" : "carryover_mean_spend"
                                 },
                                 {
                                    "name" : "carryover_response"
                                 },
                                 {
                                    "name" : "carryover_response_point"
                                 },
                                 {
                                    "name" : "carryover_roi_marginal"
                                 },
                                 {
                                    "name" : "carryover_roi_mean"
                                 },
                                 {
                                    "name" : "carryover_spend_point"
                                 },
                                 {
                                    "name" : "channel"
                                 },
                                 {
                                    "name" : "constr_label"
                                 },
                                 {
                                    "name" : "constr_low_abs"
                                 },
                                 {
                                    "name" : "constr_low_unb_abs"
                                 },
                                 {
                                    "name" : "constr_up_abs"
                                 },
                                 {
                                    "name" : "constr_up_unb_abs"
                                 },
                                 {
                                    "name" : "initial_cpa_marginal"
                                 },
                                 {
                                    "name" : "initial_marginal_response"
                                 },
                                 {
                                    "name" : "initial_mean_spend"
                                 },
                                 {
                                    "name" : "initial_response_point"
                                 },
                                 {
                                    "name" : "initial_roi_marginal"
                                 },
                                 {
                                    "name" : "initial_roi_mean"
                                 },
                                 {
                                    "name" : "initial_spend_point"
                                 },
                                 {
                                    "name" : "mean_carryover"
                                 },
                                 {
                                    "name" : "spend"
                                 },
                                 {
                                    "name" : "total_response"
                                 }
                              ],
                              "rows" : [
                                 [
                                    17221.8335,
                                    11.2024,
                                    192925.2776,
                                    11.3027,
                                    0.0001,
                                    0.0001,
                                    233729.0071,
                                    32679.4152,
                                    3.3567,
                                    109695.1472,
                                    3.4571,
                                    0,
                                    0,
                                    150498.8766,
                                    0,
                                    40803.7295,
                                    0.1004,
                                    0.1004,
                                    0,
                                    2.4597e-06,
                                    40803.7295,
                                    "demo_insight_advertising_view",
                                    "demo_insight_advertising_view\n[0.7 - 1.5] & [0.1 - 2.5]",
                                    164178.24,
                                    23454.0343,
                                    351810.5143,
                                    586350.8571,
                                    13489.2633,
                                    17.3872,
                                    234540.3,
                                    17.4875,
                                    0.0001,
                                    0.0001,
                                    275344.0295,
                                    40803.7295,
                                    0,
                                    0
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get saturation curve data for a given job, model and scenario details",
            "tags" : [
               "MMM"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmm/saturation.json?channel_constr_low=%5B0.9%2C0.7%5D&channel_constr_multiplier=2.4&channel_constr_up=%5B1.3%2C1.4%5D&date_range=all&job-id=1777564992&scenario=max_response&sid=1_111_1&total_budget=1500000\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmm/saturation.json?channel_constr_low=[0.9,0.7]&channel_constr_multiplier=2.4&channel_constr_up=[1.3,1.4]&date_range=all&job-id=1777564992&scenario=max_response&sid=1_111_1&total_budget=1500000',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmm/saturation.json?channel_constr_low=[0.9,0.7]&channel_constr_multiplier=2.4&channel_constr_up=[1.3,1.4]&date_range=all&job-id=1777564992&scenario=max_response&sid=1_111_1&total_budget=1500000');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'channel_constr_low=%5B0.9%2C0.7%5D&channel_constr_multiplier=2.4&channel_constr_up=%5B1.3%2C1.4%5D&date_range=all&job-id=1777564992&scenario=max_response&sid=1_111_1&total_budget=1500000'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmm/saturation.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mmm/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mmm&method=search"
            },
            "operationId" : "searchMMM",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "job-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the MMM",
                  "example" : "my-test-MMM",
                  "in" : "query",
                  "name" : "job-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_datecreate"
                                 },
                                 {
                                    "name" : "websitegrid_id"
                                 },
                                 {
                                    "name" : "job_type"
                                 },
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "account_id"
                                 },
                                 {
                                    "name" : "job_dateupdate"
                                 },
                                 {
                                    "name" : "job_active"
                                 },
                                 {
                                    "name" : "job_params"
                                 },
                                 {
                                    "name" : "job_dw"
                                 },
                                 {
                                    "name" : "job_oneshotrun"
                                 },
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_crontab"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "2",
                                       "MMM",
                                       "my MMM",
                                       "115",
                                       "0",
                                       "Y",
                                       "XML describing the MMM",
                                       "N",
                                       "N",
                                       "286",
                                       "0 9 * * *"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "MMM"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmm/search.json?dir=DESC&job-active=Y&job-name=my-test-MMM&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmm/search.json?dir=DESC&job-active=Y&job-name=my-test-MMM&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmm/search.json?dir=DESC&job-active=Y&job-name=my-test-MMM&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&job-active=Y&job-name=my-test-MMM&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmm/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mmmdatasource/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new mmmdatasource entry.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mmmdatasource&method=create"
            },
            "operationId" : "createMMMDataSource",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the mmmdatasource",
                  "example" : "my-test-mmmdatasource-name",
                  "in" : "query",
                  "name" : "mmmdatasource-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "shortname of the mmmdatasource",
                  "example" : "test_shortname",
                  "in" : "query",
                  "name" : "mmmdatasource-shortname",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "source (dsn) of the mmmdatasource",
                  "example" : "ftp://my.ftp.com/file.csv",
                  "in" : "query",
                  "name" : "mmmdatasource-source",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "data type - 1 => int, 2 => float, 3 => text",
                  "example" : "1",
                  "in" : "query",
                  "name" : "mmmdatasource-dtype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "mmmdatasource_id"
                                 },
                                 {
                                    "name" : "mmmdatasource_name"
                                 },
                                 {
                                    "name" : "mmmdatasource_shortname"
                                 },
                                 {
                                    "name" : "mmmdatasource_source"
                                 },
                                 {
                                    "name" : "mmmdatasource_active"
                                 },
                                 {
                                    "name" : "mmmdatasource_dtype"
                                 },
                                 {
                                    "name" : "mmmdatasource_mtime"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "19",
                                    "Test API 3",
                                    "test3",
                                    "ftps://login:pass<host>",
                                    "N",
                                    "1",
                                    "1684238366"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new mmmdatasource entry.",
            "tags" : [
               "MMM DataSource"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"mmmdatasource-dtype=1&mmmdatasource-name=my-test-mmmdatasource-name&mmmdatasource-shortname=test_shortname&mmmdatasource-source=ftp%3A%2F%2Fmy.ftp.com%2Ffile.csv\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'mmmdatasource-dtype' => '1',\n'mmmdatasource-name' => 'my-test-mmmdatasource-name',\n'mmmdatasource-shortname' => 'test_shortname',\n'mmmdatasource-source' => 'ftp://my.ftp.com/file.csv'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('mmmdatasource-dtype=1&mmmdatasource-name=my-test-mmmdatasource-name&mmmdatasource-shortname=test_shortname&mmmdatasource-source=ftp%3A%2F%2Fmy.ftp.com%2Ffile.csv');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'mmmdatasource-dtype' : '1',\n'mmmdatasource-name' : 'my-test-mmmdatasource-name',\n'mmmdatasource-shortname' : 'test_shortname',\n'mmmdatasource-source' : 'ftp%3A%2F%2Fmy.ftp.com%2Ffile.csv'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mmmdatasource/del_by_id.json" : {
         "get" : {
            "description" : "This query deletes the mmmdatasource and all associated chunk.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mmmdatasource&method=del_by_id"
            },
            "operationId" : "delByIdMMMDataSource",
            "parameters" : [
               {
                  "description" : "Unique ID of the mmmdatasource which the send data should be associated with. The datasource should be created beforehand with the create action.",
                  "example" : "577",
                  "in" : "query",
                  "name" : "mmmdatasource-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Delete a mmmdatasource and all associated mmmdatasourcechunk",
            "tags" : [
               "MMM DataSource"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/del_by_id.json?mmmdatasource-id=577\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/del_by_id.json?mmmdatasource-id=577',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/del_by_id.json?mmmdatasource-id=577');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'mmmdatasource-id=577'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/del_by_id.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mmmdatasource/exists.json" : {
         "get" : {
            "description" : "This query will check if a mmmdatasource-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mmmdatasource&method=exists"
            },
            "operationId" : "existsMMMDataSource",
            "parameters" : [
               {
                  "description" : "name of the mmmdatasource to check",
                  "example" : "my-test-mmmdatasource-name",
                  "in" : "query",
                  "name" : "mmmdatasource-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "mmmdatasource_id"
                                 },
                                 {
                                    "name" : "mmmdatasource_name"
                                 },
                                 {
                                    "name" : "mmmdatasource_shortname"
                                 },
                                 {
                                    "name" : "mmmdatasource_source"
                                 },
                                 {
                                    "name" : "mmmdatasource_active"
                                 },
                                 {
                                    "name" : "mmmdatasource_dtype"
                                 },
                                 {
                                    "name" : "mmmdatasource_mtime"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "19",
                                    "Test API 3",
                                    "test3",
                                    "ftps://login:pass<host>",
                                    "N",
                                    "1",
                                    "1684238366"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a mmmdatasource-name exists",
            "tags" : [
               "MMM DataSource"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/exists.json?mmmdatasource-name=my-test-mmmdatasource-name\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/exists.json?mmmdatasource-name=my-test-mmmdatasource-name',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/exists.json?mmmdatasource-name=my-test-mmmdatasource-name');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'mmmdatasource-name=my-test-mmmdatasource-name'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mmmdatasource/get_by_input_type.json" : {
         "get" : {
            "description" : "This query searches for datasources of a given input_type.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mmmdatasource&method=get_by_input_type"
            },
            "operationId" : "getByInputTypeMMMDataSource",
            "parameters" : [
               {
                  "description" : "Input type for mmmdatasources. Accepted values are:context-var, organic-var, paid-media-spend, paid-media-var, dep-var",
                  "example" : "paid-media-spend",
                  "in" : "query",
                  "name" : "input-type",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter available entries by input_type source",
            "tags" : [
               "MMM DataSource"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/get_by_input_type.json?input-type=paid-media-spend\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/get_by_input_type.json?input-type=paid-media-spend',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/get_by_input_type.json?input-type=paid-media-spend');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'input-type=paid-media-spend'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/get_by_input_type.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mmmdatasource/get_by_source_type.json" : {
         "get" : {
            "description" : "This query searches for datasources of a given source_type.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mmmdatasource&method=get_by_source_type"
            },
            "operationId" : "getBySourceTypeMMMDataSource",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Source type for mmmdatasources. Accepted values are:eulerian, upload",
                  "example" : "upload",
                  "in" : "query",
                  "name" : "source-type",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter available entries by source_type",
            "tags" : [
               "MMM DataSource"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/get_by_source_type.json?source-type=upload\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/get_by_source_type.json?source-type=upload',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/get_by_source_type.json?source-type=upload');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'source-type=upload'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/get_by_source_type.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mmmdatasource/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mmmdatasource&method=search"
            },
            "operationId" : "searchMMMDataSource",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the mmmdatasource",
                  "example" : "Test API",
                  "in" : "query",
                  "name" : "mmmdatasource-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "shortname of the mmmdatasource",
                  "example" : "test",
                  "in" : "query",
                  "name" : "mmmdatasource-shortname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "mmmdatasource_id"
                                 },
                                 {
                                    "name" : "mmmdatasource_name"
                                 },
                                 {
                                    "name" : "mmmdatasource_shortname"
                                 },
                                 {
                                    "name" : "mmmdatasource_source"
                                 },
                                 {
                                    "name" : "mmmdatasource_active"
                                 },
                                 {
                                    "name" : "mmmdatasource_dtype"
                                 },
                                 {
                                    "name" : "mmmdatasource_mtime"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "Test API",
                                    "test",
                                    "eulerian://<key1>/...?param1=val1",
                                    "Y",
                                    "3",
                                    "1684238366"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "MMM DataSource"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/search.json?dir=DESC&limit=25&mmmdatasource-name=Test%20API&mmmdatasource-shortname=test&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/search.json?dir=DESC&limit=25&mmmdatasource-name=Test API&mmmdatasource-shortname=test&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/search.json?dir=DESC&limit=25&mmmdatasource-name=Test API&mmmdatasource-shortname=test&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&mmmdatasource-name=Test%20API&mmmdatasource-shortname=test&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mmmdatasource/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing mmmdatasource.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mmmdatasource&method=update"
            },
            "operationId" : "updateMMMDataSource",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the mmmdatasource for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "mmmdatasource-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new mmmdatasource name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "mmmdatasource-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new mmmdatasource shortname",
                  "example" : "New shortname",
                  "in" : "query",
                  "name" : "mmmdatasource-shortname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new mmmdatasource source",
                  "example" : "New source",
                  "in" : "query",
                  "name" : "mmmdatasource-source",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "mmmdatasource_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchMMMDataSource" : {
                        "description" : "Use the value of mmmdatasource_id entry to update a mmmdatasource through mmmdatasource-id parameter.",
                        "operationId" : "searchMMMDataSource",
                        "parameters" : {
                           "mmmdatasource-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing mmmdatasource.",
            "tags" : [
               "MMM DataSource"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"mmmdatasource-id=1777564992&mmmdatasource-name=New%20name&mmmdatasource-shortname=New%20shortname&mmmdatasource-source=New%20source\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'mmmdatasource-id' => '1777564992',\n'mmmdatasource-name' => 'New name',\n'mmmdatasource-shortname' => 'New shortname',\n'mmmdatasource-source' => 'New source'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('mmmdatasource-id=1777564992&mmmdatasource-name=New%20name&mmmdatasource-shortname=New%20shortname&mmmdatasource-source=New%20source');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'mmmdatasource-id' : '1777564992',\n'mmmdatasource-name' : 'New%20name',\n'mmmdatasource-shortname' : 'New%20shortname',\n'mmmdatasource-source' : 'New%20source'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mmmdatasource/uploadcheck.json" : {
         "post" : {
            "description" : "This query allows for data checking. It will not insert the data inside the db, but provides insightful comments about the data, such as missing dates or data, wrong formats, etc.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mmmdatasource&method=uploadcheck"
            },
            "operationId" : "uploadcheckMMMDataSource",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Name of the CSV file which you want to analyze",
                  "example" : "mmm-upload-test.csv",
                  "in" : "query",
                  "name" : "file-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Time grain/scale of the data in the file. D for daily, W for weekly",
                  "example" : "D",
                  "in" : "query",
                  "name" : "scale",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "start date of your file (first line or 2nd if the file contains headers), expects YYYY-MM-DD",
                  "example" : "2019-12-31",
                  "in" : "query",
                  "name" : "from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "end date of your file (last line), expects YYYY-MM-DD",
                  "example" : "2019-12-31",
                  "in" : "query",
                  "name" : "to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "datatype of the variable of the file, expects int, float or text",
                  "example" : "int",
                  "in" : "query",
                  "name" : "var-type",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "EOL (End Of Line) character, default is unix format ",
                  "in" : "query",
                  "name" : "eol",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Required if true (if the file contains headers), default is false (no headers), expects 1 if file has headers",
                  "example" : "1",
                  "in" : "query",
                  "name" : "skipheader",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Quoting character, default is double-quote, required if your quoting char is different",
                  "example" : "'",
                  "in" : "query",
                  "name" : "quote_char",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Separator for columns, default is colon, required if your sep_char is different, accepted values are ;,",
                  "example" : ";",
                  "in" : "query",
                  "name" : "sep_char",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Escape character for your variable, default is backslash, required if your esc_char is different",
                  "in" : "query",
                  "name" : "esc_char",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "lines_total"
                                 },
                                 {
                                    "name" : "lines_ok"
                                 },
                                 {
                                    "name" : "lines_w_warning"
                                 },
                                 {
                                    "name" : "lines_w_issues"
                                 },
                                 {
                                    "name" : "has_missing_dates"
                                 },
                                 {
                                    "name" : "has_missing_data"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1097,
                                    1097,
                                    0,
                                    0,
                                    0,
                                    0
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check data before upload via API",
            "tags" : [
               "MMM DataSource"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"from=2019-12-31&quote_char=%27&scale=D&sep_char=%3B&skipheader=1&to=2019-12-31&var-type=int\" -F file-name=@mmm-upload-test.csv https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/uploadcheck.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'file-name' => 'mmm-upload-test.csv',\n'from' => '2019-12-31',\n'quote_char' => ''',\n'scale' => 'D',\n'sep_char' => ';',\n'skipheader' => '1',\n'to' => '2019-12-31',\n'var-type' => 'int'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/uploadcheck.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/uploadcheck.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('file-name=mmm-upload-test.csv&from=2019-12-31&quote_char=%27&scale=D&sep_char=%3B&skipheader=1&to=2019-12-31&var-type=int');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'file-name' : 'mmm-upload-test.csv',\n'from' : '2019-12-31',\n'quote_char' : '%27',\n'scale' : 'D',\n'sep_char' : '%3B',\n'skipheader' : '1',\n'to' : '2019-12-31',\n'var-type' : 'int'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mmmdatasource/uploadsource.json" : {
         "post" : {
            "description" : "This query checks your data and processes to insert it into a chunk associated with your mmmdatasource. According to the period you attach, the data will either create a new chunk or update an existing one.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mmmdatasource&method=uploadsource"
            },
            "operationId" : "uploadsourceMMMDataSource",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Name of the CSV file which you want to analyze",
                  "example" : "mmm-upload-test.csv",
                  "in" : "query",
                  "name" : "file-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Unique ID of the mmmdatasource which the send data should be associated with. The datasource should be created beforehand with the create action.",
                  "example" : "577",
                  "in" : "query",
                  "name" : "mmmdatasource-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Time grain/scale of the data in the file. D for daily, W for weekly",
                  "example" : "D",
                  "in" : "query",
                  "name" : "scale",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "start date of your file (first line or 2nd if the file contains headers), expects YYYY-MM-DD",
                  "example" : "2019-12-31",
                  "in" : "query",
                  "name" : "from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "end date of your file (last line), expects YYYY-MM-DD",
                  "example" : "2019-12-31",
                  "in" : "query",
                  "name" : "to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Datatype of the variable of the file, expects int, float or text",
                  "example" : "int",
                  "in" : "query",
                  "name" : "var-type",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Default value in case of missing date or missing data in the sent file, should be consistent with the var-type (0 for int, 'NA' for text, for ex.)",
                  "example" : "1",
                  "in" : "query",
                  "name" : "default-value",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "EOL (End Of Line) character, default is unix format ",
                  "in" : "query",
                  "name" : "eol",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Required if true (if the file contains headers), default is false (no headers), expects 1 if file has headers",
                  "example" : "1",
                  "in" : "query",
                  "name" : "skipheader",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Quoting character, default is double-quote, required if your quoting char is different",
                  "example" : "'",
                  "in" : "query",
                  "name" : "quote_char",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Separator for columns, default is colon, required if your sep_char is different, accepted values are ;,",
                  "example" : ";",
                  "in" : "query",
                  "name" : "sep_char",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Escape character for your variable, default is backslash, required if your esc_char is different",
                  "in" : "query",
                  "name" : "esc_char",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Upload your data to a chunk associated with your mmmdatasource",
            "tags" : [
               "MMM DataSource"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"default-value=1&from=2019-12-31&mmmdatasource-id=577&quote_char=%27&scale=D&sep_char=%3B&skipheader=1&to=2019-12-31&var-type=int\" -F file-name=@mmm-upload-test.csv https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/uploadsource.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'default-value' => '1',\n'file-name' => 'mmm-upload-test.csv',\n'from' => '2019-12-31',\n'mmmdatasource-id' => '577',\n'quote_char' => ''',\n'scale' => 'D',\n'sep_char' => ';',\n'skipheader' => '1',\n'to' => '2019-12-31',\n'var-type' => 'int'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/uploadsource.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mmmdatasource/uploadsource.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('default-value=1&file-name=mmm-upload-test.csv&from=2019-12-31&mmmdatasource-id=577&quote_char=%27&scale=D&sep_char=%3B&skipheader=1&to=2019-12-31&var-type=int');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'default-value' : '1',\n'file-name' : 'mmm-upload-test.csv',\n'from' : '2019-12-31',\n'mmmdatasource-id' : '577',\n'quote_char' : '%27',\n'scale' : 'D',\n'sep_char' : '%3B',\n'skipheader' : '1',\n'to' : '2019-12-31',\n'var-type' : 'int'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mta/generate.json" : {
         "post" : {
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mta&method=generate"
            },
            "operationId" : "generateMultiTouchAttribution",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Id of the MTA model you want to work on.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "emathmodel-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date from which the report is going to work, linked to the date format linked to ea-lg",
                  "example" : "DD/MM/YYYY",
                  "in" : "query",
                  "name" : "date-from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date to (included) which the report is going to work, linked to the date format linked to ea-lg",
                  "example" : "DD/MM/YYYY",
                  "in" : "query",
                  "name" : "date-to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "language to work on",
                  "in" : "query",
                  "name" : "ea-lg",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "fr",
                        "es",
                        "en"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "type of the goal the model is going to work on.",
                  "example" : "order",
                  "in" : "query",
                  "name" : "goal",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "order",
                        "estimate",
                        "scart"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "type of the output on which the model is working",
                  "example" : "campaign",
                  "in" : "query",
                  "name" : "output",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "campaign",
                        "channel",
                        "publisher",
                        "subchannel",
                        "submedia"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "list of dimensions to add to the output model, depend to which output is requested.",
                  "example" : "ope_name,publisher_name,media_key,submedia_name",
                  "in" : "query",
                  "name" : "dimension",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "ope_name",
                        "publisher_name",
                        "media_key",
                        "submedia_name",
                        "opealias_alias",
                        "publisheralias_alias"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "emathmodel_name"
                                 },
                                 {
                                    "name" : "emathmodel_value"
                                 },
                                 {
                                    "name" : "emathmodel_pct"
                                 },
                                 {
                                    "name" : "media_key"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "model1",
                                    12,
                                    "21.01 %",
                                    "seo"
                                 ],
                                 [
                                    "model1",
                                    30,
                                    "52.631 %",
                                    "ppc"
                                 ],
                                 [
                                    "model1",
                                    15,
                                    "26.315 %",
                                    "mailing"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 3
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Generate a model on specific parameters",
            "tags" : [
               "Multi-Touch Attribution"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"date-from=DD%2FMM%2FYYYY&date-to=DD%2FMM%2FYYYY&dimension=ope_name%2Cpublisher_name%2Cmedia_key%2Csubmedia_name&emathmodel-id=1777564992&goal=order&output=campaign\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/generate.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'date-from' => 'DD/MM/YYYY',\n'date-to' => 'DD/MM/YYYY',\n'dimension' => 'ope_name,publisher_name,media_key,submedia_name',\n'emathmodel-id' => '1777564992',\n'goal' => 'order',\n'output' => 'campaign'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/generate.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/generate.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('date-from=DD%2FMM%2FYYYY&date-to=DD%2FMM%2FYYYY&dimension=ope_name%2Cpublisher_name%2Cmedia_key%2Csubmedia_name&emathmodel-id=1777564992&goal=order&output=campaign');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'date-from' : 'DD%2FMM%2FYYYY',\n'date-to' : 'DD%2FMM%2FYYYY',\n'dimension' : 'ope_name%2Cpublisher_name%2Cmedia_key%2Csubmedia_name',\n'emathmodel-id' : '1777564992',\n'goal' : 'order',\n'output' : 'campaign'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mta/get_available_algorithm.json" : {
         "get" : {
            "description" : "Return the list of available algorithm handled by the system.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mta&method=get_available_algorithm"
            },
            "operationId" : "getAvailableAlgorithmMultiTouchAttribution",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "game_markov"
                                 ],
                                 [
                                    "game_shapley"
                                 ],
                                 [
                                    "raw_distrib"
                                 ],
                                 [
                                    "raw_contrib"
                                 ],
                                 [
                                    "raw_attrib"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 5
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Available algorithms",
            "tags" : [
               "Multi-Touch Attribution"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_available_algorithm.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_available_algorithm.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_available_algorithm.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_available_algorithm.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mta/get_available_distribution.json" : {
         "get" : {
            "description" : "Return the list of available distributions that you can apply on algorithms.\n\nEach distribution can come with its specific set of configuration, stored in two fields :\n\n- `option` : which will indicate which options you can use to set the distribution. One of these values will be provided to the `option` parameter when configuring the distribution for an algorithm.\n\n- `parameter` : which will indicate on which parameters you can apply changes, otherwise defaults will be applied. The values are too be provided through `p1`, `p2`, etc ... keys depending on the number of available parameters.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mta&method=get_available_distribution"
            },
            "operationId" : "getAvailableDistributionMultiTouchAttribution",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "id"
                                 },
                                 {
                                    "name" : "name"
                                 },
                                 {
                                    "name" : "option"
                                 },
                                 {
                                    "name" : "parameter"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Gaussian",
                                    {
                                       "head" : 3,
                                       "tail" : 4
                                    },
                                    [
                                       "stddeviation"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Available distribution",
            "tags" : [
               "Multi-Touch Attribution"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_available_distribution.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_available_distribution.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_available_distribution.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_available_distribution.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mta/get_available_options.json" : {
         "get" : {
            "description" : "Return the list of available options for a given algorithm.\n\n<table><tr><td>Option</td><td>Description</td><td>Default</td><td>Required</td></tr><tr><td colspan=\"4\"><center><b>game_markov</b></center></td></tr><tr><td>max-player</td><td>The maximum player number in a game to be eligible to the study. 0 is no limit.</td><td>0</td><td>No</td></tr><tr><td>min-player</td><td>must be >=1. The minimum player number in a game to be eligible to the study. This value has no impact on the reply \"nb_play\"/\"nb_play_uniq\" because they are pre-treated.</td><td>1</td><td>No</td></tr><tr><td>position-distribution</td><td>specify the distribution parameters.</td><td></td><td>No</td></tr><tr><td>row-goal</td><td>the driver output row for the goal. Must be a single value.</td><td></td><td>Yes</td></tr><tr><td>row-player</td><td>specify the driver output row for the player. Must be a single value.</td><td></td><td>Yes</td></tr><tr><td>row-position</td><td>specify a \"position\" row. If provided, this position row override the default position of player to apply the distribution. For example, use the age of the event of the player in this play.</td><td></td><td>No</td></tr><tr><td colspan=\"4\"><center><b>game_shapley</b></center></td></tr><tr><td>asymetric</td><td>0 - to get real-shapley. 1 to be able to apply a distribution and properly evaluate value per position.</td><td>0</td><td>No</td></tr><tr><td>goal-average</td><td>This parameters tells to compute goal of the unique game as an average of same games' goal. If 0, it will surevaluate the highly frequently used players.</td><td>1</td><td>No</td></tr><tr><td>min-player</td><td>must be >=1. The minimum player number in a game to be eligible to the study. This value has no impact on the reply \"nb_play\"/\"nb_play_uniq\" because they are pre-treated.</td><td>1</td><td>No</td></tr><tr><td>position-distribution</td><td>specify the distribution parameters.</td><td></td><td>No</td></tr><tr><td>row-goal</td><td>the driver output row for the goal. Must be a single value.</td><td></td><td>Yes</td></tr><tr><td>row-player</td><td>can be an array or a single digit. Specifies the driver output row(s) for the players. Each entry is a level.</td><td></td><td>Yes</td></tr><tr><td>row-position</td><td>specify a \"position\" row. Must be an array array similar to the player row. If provided, this position row override the default position of player to apply the distribution. For example, use the age of the event of the player in this play.</td><td></td><td>No</td></tr><tr><td colspan=\"4\"><center><b>raw_attrib</b></center></td></tr><tr><td>player-unique</td><td>1 = unique in player list, 2 = successive unique in player list, 0 (or no option) = leave untouched </td><td>0</td><td>No</td></tr><tr><td>position-distribution</td><td>specify the distribution parameters.</td><td></td><td>No</td></tr><tr><td>row-goal</td><td>the driver output row for the goal. Must be a single value.</td><td></td><td>Yes</td></tr><tr><td>row-player</td><td>specify the driver output row for the player. Must be a single value.</td><td></td><td>Yes</td></tr><tr><td>row-position</td><td>specify a \"position\" row. If provided, this position row override the default position of player to apply the distribution. For example, use the age of the event of the player in this play.</td><td></td><td>No</td></tr><tr><td>weight-player</td><td>hash of key values, key being the playerid and value being the weight for the playerid.</td><td></td><td>No</td></tr><tr><td colspan=\"4\"><center><b>raw_contrib</b></center></td></tr><tr><td>chronological</td><td>default is the most recent to the oldest player. To reverse, you have to set this to a boolean true string.</td><td>0</td><td>No</td></tr><tr><td>max-player</td><td>0 means no limit. The maximum player is applied after the MODE! if you use mode, this parameter is nearly useless.</td><td>0</td><td>No</td></tr><tr><td>min-player</td><td>must be >=1. The minimum player is applied after the MODE ! if you use mode, this parameter is nearly useless.</td><td>1</td><td>No</td></tr><tr><td>mode</td><td>provides contributions between players:  / f / l / fl / lf / d / c / p If an empty value is provided, raw list of players is worked on.</td><td></td><td>Yes</td></tr><tr><td>player-first</td><td>work only on games with the first player equal to this id.</td><td></td><td>No</td></tr><tr><td>player-last</td><td>work only on games with the last player equal to this id</td><td></td><td>No</td></tr><tr><td>player-unique</td><td>default 0 except with mode=d which forces player-unique=1. 1 = unique in player list, 2 = successive unique in player list, 0 (or no option) = leave untouched</td><td>0</td><td>No</td></tr><tr><td>row-goal</td><td>the driver output row for the goal. Can be a single index or an array of index. These indexes reference the driver.output entries (start from 0).</td><td></td><td>Yes</td></tr><tr><td>row-player</td><td>must be a single index. Specifies the driver output row(s) for the players.</td><td></td><td>Yes</td></tr><tr><td>sort</td><td>sort output - valid values: asc, desc. If the value is not understood, there is no sorting.</td><td></td><td>No</td></tr><tr><td>sort-goal</td><td>sort per goal index.</td><td></td><td>No</td></tr><tr><td colspan=\"4\"><center><b>raw_distrib</b></center></td></tr><tr><td>player-unique</td><td>1 = unique in player list, 2 = successive unique in player list, 0 (or no option) = leave untouched </td><td>0</td><td>No</td></tr><tr><td>position-distribution</td><td>specify the distribution parameters.</td><td></td><td>No</td></tr></table>",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mta&method=get_available_options"
            },
            "operationId" : "getAvailableOptionsMultiTouchAttribution",
            "parameters" : [
               {
                  "description" : "name of the algorithm for which you want the available options.",
                  "example" : "game_markov",
                  "in" : "query",
                  "name" : "algorithm",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "game_markov",
                        "game_shapley",
                        "raw_distrib",
                        "raw_contrib",
                        "raw_attrib"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "key"
                                 },
                                 {
                                    "name" : "desc"
                                 },
                                 {
                                    "name" : "required"
                                 },
                                 {
                                    "name" : "default"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "row-goal",
                                    "the driver output row for the goal. Must be a single value.",
                                    1,
                                    null,
                                    "row-player",
                                    "specify the driver output row for the player. Must be a single value.",
                                    1,
                                    null,
                                    "row-position",
                                    "specify a \"position\" row. If provided, this position row override the default position of player to apply the distribution. For example, use the age of the event of the player in this play.",
                                    null,
                                    null,
                                    "position-distribution",
                                    "specify the distribution parameters.",
                                    null,
                                    null,
                                    "min-player",
                                    "must be >=1. The minimum player number in a game to be eligible to the study. This value has no impact on the reply \"nb_play\"/\"nb_play_uniq\" because they are pre-treated.",
                                    null,
                                    1,
                                    "max-player",
                                    "The maximum player number in a game to be eligible to the study. 0 is no limit.",
                                    null,
                                    0
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Available options for a given algorithm",
            "tags" : [
               "Multi-Touch Attribution"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_available_options.json?algorithm=game_markov\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_available_options.json?algorithm=game_markov',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_available_options.json?algorithm=game_markov');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'algorithm=game_markov'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_available_options.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mta/get_datapoints_distribution.json" : {
         "get" : {
            "description" : "This API allows you to see how a given distribution with its associated parameters generates datapoints. This will provide you with a simulation enginge to check how a distribution reacts to specific settings. Each datapoint value will be the weight against which each relative player will be valorized.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mta&method=get_datapoints_distribution"
            },
            "operationId" : "getDatapointsDistributionMultiTouchAttribution",
            "parameters" : [
               {
                  "description" : "id of the distribution as provided by [get_available_distribution](#tag/Multi-Touch-Attribution/paths/~1ea~1{site}~1db~1mta~1get_available_distribution.json/get)",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "distribution-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "depending on the distribution you may need to provide an `option` parameter, check the distribution configuration.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "option",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "depending on the distribution you may need to provide a `p1`, `p2`, `p3`, etc ..., check the parameter field of a distribution configuration.",
                  "example" : 10,
                  "in" : "query",
                  "name" : "pX",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "number of slots you want to simulate the distribution on.",
                  "example" : 10,
                  "in" : "query",
                  "name" : "slots",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "datapoints"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "8.333333333",
                                    "0.751016427",
                                    "17.592592593",
                                    "1.895718972",
                                    "26.851851852",
                                    "4.785182181",
                                    "36.111111111",
                                    "12.078777939",
                                    "45.37037037",
                                    "30.489304481",
                                    "54.62962963",
                                    "30.489304481",
                                    "63.888888889",
                                    "12.078777939",
                                    "73.148148148",
                                    "4.785182181",
                                    "82.407407407",
                                    "1.895718972",
                                    "91.666666667",
                                    "0.751016427"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Sample distribution datapoints.",
            "tags" : [
               "Multi-Touch Attribution"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_datapoints_distribution.json?distribution-id=1777564992&option=1&pX=10&slots=10\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_datapoints_distribution.json?distribution-id=1777564992&option=1&pX=10&slots=10',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_datapoints_distribution.json?distribution-id=1777564992&option=1&pX=10&slots=10');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'distribution-id=1777564992&option=1&pX=10&slots=10'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_datapoints_distribution.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mta/get_sample_models.json" : {
         "get" : {
            "description" : "This query will return sample models with settings as shown in the user-interface.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mta&method=get_sample_models"
            },
            "operationId" : "getSampleModelsMultiTouchAttribution",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "name"
                                 },
                                 {
                                    "name" : "model"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "linear",
                                    {
                                       "algorithm" : {
                                          "key" : "raw_distrib",
                                          "position-distribution" : {
                                             "id" : 7,
                                             "option" : 1,
                                             "p1" : 1,
                                             "p2" : 1
                                          }
                                       }
                                    }
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get sample models.",
            "tags" : [
               "Multi-Touch Attribution"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_sample_models.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_sample_models.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_sample_models.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/get_sample_models.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/mta/simulate.json" : {
         "post" : {
            "description" : "Use this method if you want to simualte the resulsts for a model by specifiying specific options and by providing your own dataset of values.\n\nThis will provide you with the highest level of transparency and control on how the algorithm will work and how the data will be processed.\n\nOnce you are ok with the results, you can then create the model in the system so that you can use it on your real dataset.\n\nYou need to check which [algorithms](#tag/Multi-Touch-Attribution/paths/~1ea~1{site}~1db~1mta~1get_available_algorithm.json/get) are available and see which [options](#tag/Multi-Touch-Attribution/paths/~1ea~1{site}~1db~1mta~1get_available_options.json/get) you can apply and then provide a output dataset you want the algorithm to work on.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=mta&method=simulate"
            },
            "operationId" : "simulateMultiTouchAttribution",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "escaped JSON payload containing an array of algorithm & dataset to work on, you can provide multiple algorithm & dataset to implement weight mechanism.\n\nThe `data` has to follow the below specificiations :\n```\n[\n  {\n    \"algorithm\" : {\n      \"chronological\" : \"1\",\n      \"key\" : \"raw_contrib\",\n      \"mode\" : \"c\"\n    },\n    \"dataset\" : [\n      [ amount, [ list_of_players ] ],\n      [ amount2, [ list_of_players2 ] ]\n      [ ... ]\n    ],\n    \"weight\" : 1\n  }\n]\n```\nIt is an array of hash containing three keys :\n* `algorithm` : describes the algorithm that is going to be applied to the provided dataset with the appropriate options\n* `dataset` : is an array of array, each sub-array containings :\n * the target amount : you can set that to the amount of a transaction or you can set it to 1 meaning it is a sale\n * the ids of players generating the target amount; in other words, you need to provide the ordered list of players generating a specific amount.\n* `weight` : is an unsigned float describing the weight to be applied to the global results\n\n\nFor an example of `dataset` :\n```\n[ 4, [ \"seo\", \"ppc\" ] ]\n```\nmeans : the players 'seo' followed by 'ppc' generated 4 EUR of total amount\n\n```\n[ 100, [ \"seo\", \"ppc\", \"mailing\", \"affiliation\", \"branding\" ] ]\n```\nmeans : the players 'seo' followed by 'ppc', then 'mailing', then 'affiliation', then 'branding' generated 100 EUR of total amount\n\nA complete example of `dataset` can be :\n```\n[\n  [  4, [ \"seo\" ] ],\n  [  4, [ \"ppc\" ] ],\n  [  4, [ \"mailing\" ] ],\n  [  9, [ \"seo\", \"ppc\" ] ],\n  [ 10, [ \"seo\", \"affiliation\" ] ],\n  [ 11, [ \"ppc\", \"mailing\" ] ],\n  [ 15, [ \"seo\", \"ppc\",\"mailing\" ] ]\n]\n```\n\nYou can provide multiple algorithms with different datasets:\n```\n[\n  {\n    \"algorithm\" : {\n      \"chronological\" : \"1\",\n      \"key\" : \"raw_contrib\",\n      \"mode\" : \"c\"\n    },\n    \"dataset\" : [\n      [ 4, [Â \"seo\" ] ],\n      [ 12, [Â \"seo\", \"ppc\" ] ],\n    ],\n    \"weight\" : 1\n  },\n  {\n    \"algorithm\" : {\n      \"chronological\" : \"0\",\n      \"key\" : \"raw_contrib\",\n      \"mode\" : \"c\"\n    },\n    \"dataset\" : [\n      [ 47, [ \"mailing\" ] ],\n      [ 1, [ \"mailing\", \"ppc\" ] ],\n    ],\n    \"weight\" : 2\n  }\n]\n```\n",
                  "in" : "query",
                  "name" : "data",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "player"
                                 },
                                 {
                                    "name" : "count"
                                 },
                                 {
                                    "name" : "percentage"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "seo",
                                    12,
                                    21.052631579
                                 ],
                                 [
                                    "ppc",
                                    30,
                                    52.631578947
                                 ],
                                 [
                                    "mailing",
                                    15,
                                    26.315789474
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 3
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Simulate a model on a provided dataset.",
            "tags" : [
               "Multi-Touch Attribution"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST  https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/simulate.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/simulate.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/mta/simulate.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n \n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup1/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new omnichannelgroup1.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup1&method=create"
            },
            "operationId" : "createOmniChannelGroup1",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the omnichannelgroup1 template",
                  "example" : "my-test-omnichannelgroup1-name",
                  "in" : "query",
                  "name" : "omnichannelgroup1-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup1_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup1_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new omnichannelgroup1 entry.",
            "tags" : [
               "OmniChannelGroup1"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"omnichannelgroup1-name=my-test-omnichannelgroup1-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup1/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'omnichannelgroup1-name' => 'my-test-omnichannelgroup1-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup1/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup1/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('omnichannelgroup1-name=my-test-omnichannelgroup1-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'omnichannelgroup1-name' : 'my-test-omnichannelgroup1-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup1/exists.json" : {
         "get" : {
            "description" : "This query will check if a omnichannelgroup1-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup1&method=exists"
            },
            "operationId" : "existsOmniChannelGroup1",
            "parameters" : [
               {
                  "description" : "name of the omnichannelgroup1 to check",
                  "example" : "my-test-omnichannelgroup1",
                  "in" : "query",
                  "name" : "omnichannelgroup1-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup1_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup1_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a omnichannelgroup1-name exists",
            "tags" : [
               "OmniChannelGroup1"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup1/exists.json?omnichannelgroup1-name=my-test-omnichannelgroup1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup1/exists.json?omnichannelgroup1-name=my-test-omnichannelgroup1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup1/exists.json?omnichannelgroup1-name=my-test-omnichannelgroup1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'omnichannelgroup1-name=my-test-omnichannelgroup1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup1/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup1/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup1&method=search"
            },
            "operationId" : "searchOmniChannelGroup1",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the omnichannelgroup1",
                  "example" : "my-test-omnichannelgroup1",
                  "in" : "query",
                  "name" : "omnichannelgroup1-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "omnichannelgroup1-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup1_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup1_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "OmniChannelGroup1"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup1/search.json?dir=DESC&limit=25&omnichannelgroup1-name=my-test-omnichannelgroup1&omnichannelgroup1-name-exact=1&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup1/search.json?dir=DESC&limit=25&omnichannelgroup1-name=my-test-omnichannelgroup1&omnichannelgroup1-name-exact=1&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup1/search.json?dir=DESC&limit=25&omnichannelgroup1-name=my-test-omnichannelgroup1&omnichannelgroup1-name-exact=1&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&omnichannelgroup1-name=my-test-omnichannelgroup1&omnichannelgroup1-name-exact=1&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup1/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup1/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing omnichannelgroup1.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup1&method=update"
            },
            "operationId" : "updateOmniChannelGroup1",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the omnichannelgroup1 for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "omnichannelgroup1-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new omnichannelgroup1 name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "omnichannelgroup1-name",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup1_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchOmniChannelGroup1" : {
                        "description" : "Use the value of omnichannelgroup1_id entry to update a omnichannelgroup1 through omnichannelgroup1-id parameter.",
                        "operationId" : "searchOmniChannelGroup1",
                        "parameters" : {
                           "omnichannelgroup1-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing omnichannelgroup1.",
            "tags" : [
               "OmniChannelGroup1"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"omnichannelgroup1-id=1777564992&omnichannelgroup1-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup1/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'omnichannelgroup1-id' => '1777564992',\n'omnichannelgroup1-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup1/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup1/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('omnichannelgroup1-id=1777564992&omnichannelgroup1-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'omnichannelgroup1-id' : '1777564992',\n'omnichannelgroup1-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup2/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new omnichannelgroup2.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup2&method=create"
            },
            "operationId" : "createOmniChannelGroup2",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the omnichannelgroup2 template",
                  "example" : "my-test-omnichannelgroup2-name",
                  "in" : "query",
                  "name" : "omnichannelgroup2-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup2_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup2_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new omnichannelgroup2 entry.",
            "tags" : [
               "OmniChannelGroup2"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"omnichannelgroup2-name=my-test-omnichannelgroup2-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup2/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'omnichannelgroup2-name' => 'my-test-omnichannelgroup2-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup2/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup2/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('omnichannelgroup2-name=my-test-omnichannelgroup2-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'omnichannelgroup2-name' : 'my-test-omnichannelgroup2-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup2/exists.json" : {
         "get" : {
            "description" : "This query will check if a omnichannelgroup2-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup2&method=exists"
            },
            "operationId" : "existsOmniChannelGroup2",
            "parameters" : [
               {
                  "description" : "name of the omnichannelgroup2 to check",
                  "example" : "my-test-omnichannelgroup2",
                  "in" : "query",
                  "name" : "omnichannelgroup2-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup2_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup2_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a omnichannelgroup2-name exists",
            "tags" : [
               "OmniChannelGroup2"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup2/exists.json?omnichannelgroup2-name=my-test-omnichannelgroup2\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup2/exists.json?omnichannelgroup2-name=my-test-omnichannelgroup2',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup2/exists.json?omnichannelgroup2-name=my-test-omnichannelgroup2');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'omnichannelgroup2-name=my-test-omnichannelgroup2'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup2/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup2/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup2&method=search"
            },
            "operationId" : "searchOmniChannelGroup2",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the omnichannelgroup2",
                  "example" : "my-test-omnichannelgroup2",
                  "in" : "query",
                  "name" : "omnichannelgroup2-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "omnichannelgroup2-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup2_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup2_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "OmniChannelGroup2"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup2/search.json?dir=DESC&limit=25&omnichannelgroup2-name=my-test-omnichannelgroup2&omnichannelgroup2-name-exact=1&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup2/search.json?dir=DESC&limit=25&omnichannelgroup2-name=my-test-omnichannelgroup2&omnichannelgroup2-name-exact=1&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup2/search.json?dir=DESC&limit=25&omnichannelgroup2-name=my-test-omnichannelgroup2&omnichannelgroup2-name-exact=1&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&omnichannelgroup2-name=my-test-omnichannelgroup2&omnichannelgroup2-name-exact=1&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup2/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup2/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing omnichannelgroup2.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup2&method=update"
            },
            "operationId" : "updateOmniChannelGroup2",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the omnichannelgroup2 for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "omnichannelgroup2-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new omnichannelgroup2 name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "omnichannelgroup2-name",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup2_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchOmniChannelGroup2" : {
                        "description" : "Use the value of omnichannelgroup2_id entry to update a omnichannelgroup2 through omnichannelgroup2-id parameter.",
                        "operationId" : "searchOmniChannelGroup2",
                        "parameters" : {
                           "omnichannelgroup2-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing omnichannelgroup2.",
            "tags" : [
               "OmniChannelGroup2"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"omnichannelgroup2-id=1777564992&omnichannelgroup2-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup2/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'omnichannelgroup2-id' => '1777564992',\n'omnichannelgroup2-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup2/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup2/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('omnichannelgroup2-id=1777564992&omnichannelgroup2-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'omnichannelgroup2-id' : '1777564992',\n'omnichannelgroup2-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup3/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new omnichannelgroup3.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup3&method=create"
            },
            "operationId" : "createOmniChannelGroup3",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the omnichannelgroup3 template",
                  "example" : "my-test-omnichannelgroup3-name",
                  "in" : "query",
                  "name" : "omnichannelgroup3-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup3_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup3_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new omnichannelgroup3 entry.",
            "tags" : [
               "OmniChannelGroup3"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"omnichannelgroup3-name=my-test-omnichannelgroup3-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup3/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'omnichannelgroup3-name' => 'my-test-omnichannelgroup3-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup3/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup3/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('omnichannelgroup3-name=my-test-omnichannelgroup3-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'omnichannelgroup3-name' : 'my-test-omnichannelgroup3-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup3/exists.json" : {
         "get" : {
            "description" : "This query will check if a omnichannelgroup3-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup3&method=exists"
            },
            "operationId" : "existsOmniChannelGroup3",
            "parameters" : [
               {
                  "description" : "name of the omnichannelgroup3 to check",
                  "example" : "my-test-omnichannelgroup3",
                  "in" : "query",
                  "name" : "omnichannelgroup3-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup3_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup3_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a omnichannelgroup3-name exists",
            "tags" : [
               "OmniChannelGroup3"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup3/exists.json?omnichannelgroup3-name=my-test-omnichannelgroup3\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup3/exists.json?omnichannelgroup3-name=my-test-omnichannelgroup3',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup3/exists.json?omnichannelgroup3-name=my-test-omnichannelgroup3');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'omnichannelgroup3-name=my-test-omnichannelgroup3'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup3/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup3/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup3&method=search"
            },
            "operationId" : "searchOmniChannelGroup3",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the omnichannelgroup3",
                  "example" : "my-test-omnichannelgroup3",
                  "in" : "query",
                  "name" : "omnichannelgroup3-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "omnichannelgroup3-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup3_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup3_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "OmniChannelGroup3"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup3/search.json?dir=DESC&limit=25&omnichannelgroup3-name=my-test-omnichannelgroup3&omnichannelgroup3-name-exact=1&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup3/search.json?dir=DESC&limit=25&omnichannelgroup3-name=my-test-omnichannelgroup3&omnichannelgroup3-name-exact=1&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup3/search.json?dir=DESC&limit=25&omnichannelgroup3-name=my-test-omnichannelgroup3&omnichannelgroup3-name-exact=1&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&omnichannelgroup3-name=my-test-omnichannelgroup3&omnichannelgroup3-name-exact=1&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup3/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup3/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing omnichannelgroup3.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup3&method=update"
            },
            "operationId" : "updateOmniChannelGroup3",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the omnichannelgroup3 for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "omnichannelgroup3-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new omnichannelgroup3 name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "omnichannelgroup3-name",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup3_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchOmniChannelGroup3" : {
                        "description" : "Use the value of omnichannelgroup3_id entry to update a omnichannelgroup3 through omnichannelgroup3-id parameter.",
                        "operationId" : "searchOmniChannelGroup3",
                        "parameters" : {
                           "omnichannelgroup3-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing omnichannelgroup3.",
            "tags" : [
               "OmniChannelGroup3"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"omnichannelgroup3-id=1777564992&omnichannelgroup3-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup3/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'omnichannelgroup3-id' => '1777564992',\n'omnichannelgroup3-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup3/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup3/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('omnichannelgroup3-id=1777564992&omnichannelgroup3-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'omnichannelgroup3-id' : '1777564992',\n'omnichannelgroup3-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup4/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new omnichannelgroup4.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup4&method=create"
            },
            "operationId" : "createOmniChannelGroup4",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the omnichannelgroup4 template",
                  "example" : "my-test-omnichannelgroup4-name",
                  "in" : "query",
                  "name" : "omnichannelgroup4-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup4_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup4_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new omnichannelgroup4 entry.",
            "tags" : [
               "OmniChannelGroup4"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"omnichannelgroup4-name=my-test-omnichannelgroup4-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup4/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'omnichannelgroup4-name' => 'my-test-omnichannelgroup4-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup4/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup4/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('omnichannelgroup4-name=my-test-omnichannelgroup4-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'omnichannelgroup4-name' : 'my-test-omnichannelgroup4-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup4/exists.json" : {
         "get" : {
            "description" : "This query will check if a omnichannelgroup4-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup4&method=exists"
            },
            "operationId" : "existsOmniChannelGroup4",
            "parameters" : [
               {
                  "description" : "name of the omnichannelgroup4 to check",
                  "example" : "my-test-omnichannelgroup4",
                  "in" : "query",
                  "name" : "omnichannelgroup4-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup4_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup4_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a omnichannelgroup4-name exists",
            "tags" : [
               "OmniChannelGroup4"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup4/exists.json?omnichannelgroup4-name=my-test-omnichannelgroup4\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup4/exists.json?omnichannelgroup4-name=my-test-omnichannelgroup4',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup4/exists.json?omnichannelgroup4-name=my-test-omnichannelgroup4');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'omnichannelgroup4-name=my-test-omnichannelgroup4'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup4/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup4/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup4&method=search"
            },
            "operationId" : "searchOmniChannelGroup4",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the omnichannelgroup4",
                  "example" : "my-test-omnichannelgroup4",
                  "in" : "query",
                  "name" : "omnichannelgroup4-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "omnichannelgroup4-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup4_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup4_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "OmniChannelGroup4"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup4/search.json?dir=DESC&limit=25&omnichannelgroup4-name=my-test-omnichannelgroup4&omnichannelgroup4-name-exact=1&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup4/search.json?dir=DESC&limit=25&omnichannelgroup4-name=my-test-omnichannelgroup4&omnichannelgroup4-name-exact=1&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup4/search.json?dir=DESC&limit=25&omnichannelgroup4-name=my-test-omnichannelgroup4&omnichannelgroup4-name-exact=1&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&omnichannelgroup4-name=my-test-omnichannelgroup4&omnichannelgroup4-name-exact=1&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup4/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup4/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing omnichannelgroup4.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup4&method=update"
            },
            "operationId" : "updateOmniChannelGroup4",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the omnichannelgroup4 for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "omnichannelgroup4-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new omnichannelgroup4 name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "omnichannelgroup4-name",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup4_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchOmniChannelGroup4" : {
                        "description" : "Use the value of omnichannelgroup4_id entry to update a omnichannelgroup4 through omnichannelgroup4-id parameter.",
                        "operationId" : "searchOmniChannelGroup4",
                        "parameters" : {
                           "omnichannelgroup4-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing omnichannelgroup4.",
            "tags" : [
               "OmniChannelGroup4"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"omnichannelgroup4-id=1777564992&omnichannelgroup4-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup4/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'omnichannelgroup4-id' => '1777564992',\n'omnichannelgroup4-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup4/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup4/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('omnichannelgroup4-id=1777564992&omnichannelgroup4-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'omnichannelgroup4-id' : '1777564992',\n'omnichannelgroup4-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup5/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new omnichannelgroup5.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup5&method=create"
            },
            "operationId" : "createOmniChannelGroup5",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the omnichannelgroup5 template",
                  "example" : "my-test-omnichannelgroup5-name",
                  "in" : "query",
                  "name" : "omnichannelgroup5-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup5_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup5_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new omnichannelgroup5 entry.",
            "tags" : [
               "OmniChannelGroup5"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"omnichannelgroup5-name=my-test-omnichannelgroup5-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup5/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'omnichannelgroup5-name' => 'my-test-omnichannelgroup5-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup5/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup5/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('omnichannelgroup5-name=my-test-omnichannelgroup5-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'omnichannelgroup5-name' : 'my-test-omnichannelgroup5-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup5/exists.json" : {
         "get" : {
            "description" : "This query will check if a omnichannelgroup5-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup5&method=exists"
            },
            "operationId" : "existsOmniChannelGroup5",
            "parameters" : [
               {
                  "description" : "name of the omnichannelgroup5 to check",
                  "example" : "my-test-omnichannelgroup5",
                  "in" : "query",
                  "name" : "omnichannelgroup5-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup5_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup5_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a omnichannelgroup5-name exists",
            "tags" : [
               "OmniChannelGroup5"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup5/exists.json?omnichannelgroup5-name=my-test-omnichannelgroup5\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup5/exists.json?omnichannelgroup5-name=my-test-omnichannelgroup5',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup5/exists.json?omnichannelgroup5-name=my-test-omnichannelgroup5');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'omnichannelgroup5-name=my-test-omnichannelgroup5'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup5/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup5/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup5&method=search"
            },
            "operationId" : "searchOmniChannelGroup5",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the omnichannelgroup5",
                  "example" : "my-test-omnichannelgroup5",
                  "in" : "query",
                  "name" : "omnichannelgroup5-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "omnichannelgroup5-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup5_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup5_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "OmniChannelGroup5"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup5/search.json?dir=DESC&limit=25&omnichannelgroup5-name=my-test-omnichannelgroup5&omnichannelgroup5-name-exact=1&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup5/search.json?dir=DESC&limit=25&omnichannelgroup5-name=my-test-omnichannelgroup5&omnichannelgroup5-name-exact=1&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup5/search.json?dir=DESC&limit=25&omnichannelgroup5-name=my-test-omnichannelgroup5&omnichannelgroup5-name-exact=1&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&omnichannelgroup5-name=my-test-omnichannelgroup5&omnichannelgroup5-name-exact=1&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup5/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/omnichannelgroup5/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing omnichannelgroup5.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=omnichannelgroup5&method=update"
            },
            "operationId" : "updateOmniChannelGroup5",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the omnichannelgroup5 for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "omnichannelgroup5-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new omnichannelgroup5 name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "omnichannelgroup5-name",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "omnichannelgroup5_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchOmniChannelGroup5" : {
                        "description" : "Use the value of omnichannelgroup5_id entry to update a omnichannelgroup5 through omnichannelgroup5-id parameter.",
                        "operationId" : "searchOmniChannelGroup5",
                        "parameters" : {
                           "omnichannelgroup5-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing omnichannelgroup5.",
            "tags" : [
               "OmniChannelGroup5"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"omnichannelgroup5-id=1777564992&omnichannelgroup5-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup5/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'omnichannelgroup5-id' => '1777564992',\n'omnichannelgroup5-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup5/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/omnichannelgroup5/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('omnichannelgroup5-id=1777564992&omnichannelgroup5-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'omnichannelgroup5-id' : '1777564992',\n'omnichannelgroup5-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ope/exists.json" : {
         "get" : {
            "description" : "This query will check if a ope-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ope&method=exists"
            },
            "operationId" : "existsCampaign",
            "parameters" : [
               {
                  "description" : "name of the campaign to check",
                  "example" : "my-test-campaign",
                  "in" : "query",
                  "name" : "ope-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "mediaplan_id"
                                 },
                                 {
                                    "name" : "ope_archive"
                                 },
                                 {
                                    "name" : "ope_vvcpriority"
                                 },
                                 {
                                    "name" : "ope_vccookieage"
                                 },
                                 {
                                    "name" : "tfpublish_id"
                                 },
                                 {
                                    "name" : "publisher_id"
                                 },
                                 {
                                    "name" : "ope_id"
                                 },
                                 {
                                    "name" : "tfdatasource_id"
                                 },
                                 {
                                    "name" : "ope_vvcookieage"
                                 },
                                 {
                                    "name" : "ope_stop"
                                 },
                                 {
                                    "name" : "ope_start"
                                 },
                                 {
                                    "name" : "tfexporttemplate_id"
                                 },
                                 {
                                    "name" : "tfgenerator_id"
                                 },
                                 {
                                    "name" : "ope_active"
                                 },
                                 {
                                    "name" : "tfexportrule_id"
                                 },
                                 {
                                    "name" : "ope_type"
                                 },
                                 {
                                    "name" : "ope_name"
                                 },
                                 {
                                    "name" : "media_key"
                                 },
                                 {
                                    "name" : "media_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "N",
                                       "c",
                                       "30d",
                                       "0",
                                       "10114",
                                       "217",
                                       "0",
                                       "30d",
                                       null,
                                       null,
                                       "0",
                                       "0",
                                       "Y",
                                       "0",
                                       "BANNER",
                                       "1307_partenaire_promoapplimobile",
                                       "ADVERTISING",
                                       "3"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a campaign exists",
            "tags" : [
               "Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/exists.json?ope-name=my-test-campaign\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/exists.json?ope-name=my-test-campaign',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/exists.json?ope-name=my-test-campaign');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ope-name=my-test-campaign'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ope/externaldatareset.json" : {
         "post" : {
            "description" : "This query will delete external uploaded data for a campaign on a given period.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ope&method=externaldatareset"
            },
            "operationId" : "externaldataresetCampaign",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the campaign for which you want the external data removed.",
                  "example" : "Campaign_name_1",
                  "in" : "query",
                  "name" : "ope-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "start date following the MM/DD/YYYY format",
                  "example" : "05/12/2016",
                  "in" : "query",
                  "name" : "date-from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "end date following the MM/DD/YYYY format",
                  "example" : "05/13/2016",
                  "in" : "query",
                  "name" : "date-to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Reset uploaded data",
            "tags" : [
               "Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"date-from=05%2F12%2F2016&date-to=05%2F13%2F2016&ope-name=Campaign_name_1\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/externaldatareset.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'date-from' => '05/12/2016',\n'date-to' => '05/13/2016',\n'ope-name' => 'Campaign_name_1'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/externaldatareset.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/externaldatareset.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('date-from=05%2F12%2F2016&date-to=05%2F13%2F2016&ope-name=Campaign_name_1');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'date-from' : '05%2F12%2F2016',\n'date-to' : '05%2F13%2F2016',\n'ope-name' : 'Campaign_name_1'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ope/externaldataupload_advertising.json" : {
         "post" : {
            "description" : "This query will upload external data for campaigns in the RTB & display campaigns.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ope&method=externaldataupload_advertising"
            },
            "operationId" : "externaldatauploadAdvertisingCampaign",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the local name of the file you want to upload.\n\nFile example :\n\n```\nea:date;ea:ope;ea:location;ea:creative;ea:external_view;ea:external_click;ea:external_cost\n2014-01-01;Campaign_name_1;Location_1;Creative_1;12345;0;0\n2014-01-01;Campaign_name_1;Location_1;Creative_1;123;2;0\n2014-01-01;Campaign_name_2;Location_1;Creative_1;165;21;0.23\n2014-01-02;Campaign_name_1;Location_1;Creative_1;5;0;0.12\n2014-01-03;Campaign_name_1;Location_1;Creative_1;500;12;15.2\n2014-01-04;Campaign_name_1;Location_1;Creative_1;0;2;1.2\n```\n",
                  "example" : "data-to-upload.csv",
                  "in" : "query",
                  "name" : "file-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Upload data for display campaigns.",
            "tags" : [
               "Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST  -F file-name=@data-to-upload.csv https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/externaldataupload_advertising.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'file-name' => 'data-to-upload.csv'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/externaldataupload_advertising.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/externaldataupload_advertising.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('file-name=data-to-upload.csv');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'file-name' : 'data-to-upload.csv'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ope/externaldataupload_affiliation.json" : {
         "post" : {
            "description" : "This query will upload external data for campaigns in the affiliate campaigns.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ope&method=externaldataupload_affiliation"
            },
            "operationId" : "externaldatauploadAffiliationCampaign",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the local name of the file you want to upload.\n\nFile example :\n\n```\nea:date;ea:ope;ea:creative;ea:external_view;ea:external_click;ea:external_cost\n2014-01-01;Campaign_name_1;Creative_1;12345;0;0\n2014-01-01;Campaign_name_1;Creative_2;123;2;0\n2014-01-01;Campaign_name_2;Creative_1;165;21;0.23\n2014-01-02;Campaign_name_1;Creative_1;5;0;0.12\n2014-01-03;Campaign_name_1;Creative_1;500;12;15.2\n2014-01-04;Campaign_name_1;Creative_1;0;2;1.2\n```\n",
                  "example" : "data-to-upload.csv",
                  "in" : "query",
                  "name" : "file-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Upload data for affiliate campaigns.",
            "tags" : [
               "Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST  -F file-name=@data-to-upload.csv https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/externaldataupload_affiliation.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'file-name' => 'data-to-upload.csv'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/externaldataupload_affiliation.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/externaldataupload_affiliation.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('file-name=data-to-upload.csv');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'file-name' : 'data-to-upload.csv'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ope/externaldataupload_mailing.json" : {
         "post" : {
            "description" : "This query will upload external data for campaigns in the mailing campaigns.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ope&method=externaldataupload_mailing"
            },
            "operationId" : "externaldatauploadMailingCampaign",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the local name of the file you want to upload.\n\nFile example :\n\n```\nea:date;ea:ope;ea:external_view;ea:external_click;ea:external_cost\n2014-01-01;Campaign_name_1;12345;0;0\n2014-01-01;Campaign_name_1;123;2;0\n2014-01-01;Campaign_name_2;165;21;0.23\n2014-01-02;Campaign_name_1;5;0;0.12\n2014-01-03;Campaign_name_1;500;12;15.2\n2014-01-04;Campaign_name_1;0;2;1.2\n```\n",
                  "example" : "data-to-upload.csv",
                  "in" : "query",
                  "name" : "file-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Upload data for mailing campaigns.",
            "tags" : [
               "Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST  -F file-name=@data-to-upload.csv https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/externaldataupload_mailing.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'file-name' => 'data-to-upload.csv'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/externaldataupload_mailing.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/externaldataupload_mailing.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('file-name=data-to-upload.csv');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'file-name' : 'data-to-upload.csv'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ope/externaldataupload_media.json" : {
         "post" : {
            "description" : "This query will upload external data for campaigns managed by the Eulerian Media AdServer.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ope&method=externaldataupload_media"
            },
            "operationId" : "externaldatauploadMediaCampaign",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the local name of the file you want to upload.\n\nFile example :\n\n``Ì`\nea:date;ea:publisher;ea:ope;ea:location;ea:creative;ea:external_view;ea:external_click;ea:external_cost\n2014-01-01;Publisher_1;Campaign_name_1;Location_1;Creative_1;12345;0;0\n2014-01-01;Publisher_1;Campaign_name_1;Location_1;Creative_2;123;2;0\n2014-01-01;Publisher_1;Campaign_name_2;Location_1;Creative_1;165;21;0.23\n2014-01-02;Publisher_2;Campaign_name_1;Location_1;Creative_1;5;0;0.12\n2014-01-03;Publisher_2;Campaign_name_1;Location_1;Creative_1;500;12;15.2\n2014-01-04;Publisher_3;Campaign_name_1;Location_1;Creative_1;0;2;1.2\n``Ì`\n",
                  "example" : "data-to-upload.csv",
                  "in" : "query",
                  "name" : "file-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Upload data for Eulerian Media campaigns.",
            "tags" : [
               "Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST  -F file-name=@data-to-upload.csv https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/externaldataupload_media.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'file-name' => 'data-to-upload.csv'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/externaldataupload_media.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/externaldataupload_media.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('file-name=data-to-upload.csv');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'file-name' : 'data-to-upload.csv'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ope/externaldataupload_product.json" : {
         "post" : {
            "description" : "This query will upload external data for campaigns in the product based campaigns, whatever the channel they are linked to.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ope&method=externaldataupload_product"
            },
            "operationId" : "externaldatauploadProductCampaign",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the local name of the file you want to upload.\n\nFile example :\n\n```\nea:date;ea:ope;ea:product;ea:external_click;ea:external_cost\n2014-01-01;Campaign_name_1;Product_Ref_1;0;0\n2014-01-01;Campaign_name_1;Product_Ref_2;2;0\n2014-01-01;Campaign_name_1;Product_Ref_1;165;0.23\n2014-01-02;Campaign_name_1;Product_Ref_1;5;0;0.12\n2014-01-03;Campaign_name_1;Product_Ref_1;500;12;15.2\n2014-01-04;Campaign_name_1;Product_Ref_1;0;2;1.2\n```\n",
                  "example" : "data-to-upload.csv",
                  "in" : "query",
                  "name" : "file-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Upload data for product based campaigns.",
            "tags" : [
               "Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST  -F file-name=@data-to-upload.csv https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/externaldataupload_product.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'file-name' => 'data-to-upload.csv'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/externaldataupload_product.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/externaldataupload_product.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('file-name=data-to-upload.csv');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'file-name' : 'data-to-upload.csv'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ope/get_ope_by_creative.json" : {
         "get" : {
            "description" : "Given a creative-id or a creative-name return the list of campaigns linked to them.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ope&method=get_ope_by_creative"
            },
            "operationId" : "getOpeByCreativeCampaign",
            "parameters" : [
               {
                  "description" : "id of the creative. You can search for multiple ids by using pipes, eg: creative-id=123|78|34",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "creative-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the creative. You can search for multiple names by using pipes, eg: creative-name=test1|test3|placement10",
                  "example" : "creative-56x89",
                  "in" : "query",
                  "name" : "creative-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "mediaplan_id"
                                 },
                                 {
                                    "name" : "ope_archive"
                                 },
                                 {
                                    "name" : "ope_vvcpriority"
                                 },
                                 {
                                    "name" : "ope_vccookieage"
                                 },
                                 {
                                    "name" : "tfpublish_id"
                                 },
                                 {
                                    "name" : "publisher_id"
                                 },
                                 {
                                    "name" : "ope_id"
                                 },
                                 {
                                    "name" : "tfdatasource_id"
                                 },
                                 {
                                    "name" : "ope_vvcookieage"
                                 },
                                 {
                                    "name" : "ope_stop"
                                 },
                                 {
                                    "name" : "ope_start"
                                 },
                                 {
                                    "name" : "tfexporttemplate_id"
                                 },
                                 {
                                    "name" : "tfgenerator_id"
                                 },
                                 {
                                    "name" : "ope_active"
                                 },
                                 {
                                    "name" : "tfexportrule_id"
                                 },
                                 {
                                    "name" : "ope_type"
                                 },
                                 {
                                    "name" : "ope_name"
                                 },
                                 {
                                    "name" : "media_key"
                                 },
                                 {
                                    "name" : "media_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "N",
                                       "c",
                                       "30d",
                                       "0",
                                       "10114",
                                       "217",
                                       "0",
                                       "30d",
                                       null,
                                       null,
                                       "0",
                                       "0",
                                       "Y",
                                       "0",
                                       "BANNER",
                                       "1307_partenaire_promoapplimobile",
                                       "ADVERTISING",
                                       "3"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Campaigns linked by creative.",
            "tags" : [
               "Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/get_ope_by_creative.json?creative-id=1777564992&creative-name=creative-56x89&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/get_ope_by_creative.json?creative-id=1777564992&creative-name=creative-56x89&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/get_ope_by_creative.json?creative-id=1777564992&creative-name=creative-56x89&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'creative-id=1777564992&creative-name=creative-56x89&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/get_ope_by_creative.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ope/get_ope_by_location.json" : {
         "get" : {
            "description" : "Given a location-id or a location-name return the list of campaigns linked to them.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ope&method=get_ope_by_location"
            },
            "operationId" : "getOpeByLocationCampaign",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "id of the location. You can search for multiple ids by using pipes, eg: location-id=123|78|34",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "location-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the location. You can search for multiple names by using pipes, eg: location-name=test1|test3|placement10",
                  "example" : "placement-468x790",
                  "in" : "query",
                  "name" : "location-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "mediaplan_id"
                                 },
                                 {
                                    "name" : "ope_archive"
                                 },
                                 {
                                    "name" : "ope_vvcpriority"
                                 },
                                 {
                                    "name" : "ope_vccookieage"
                                 },
                                 {
                                    "name" : "tfpublish_id"
                                 },
                                 {
                                    "name" : "publisher_id"
                                 },
                                 {
                                    "name" : "ope_id"
                                 },
                                 {
                                    "name" : "tfdatasource_id"
                                 },
                                 {
                                    "name" : "ope_vvcookieage"
                                 },
                                 {
                                    "name" : "ope_stop"
                                 },
                                 {
                                    "name" : "ope_start"
                                 },
                                 {
                                    "name" : "tfexporttemplate_id"
                                 },
                                 {
                                    "name" : "tfgenerator_id"
                                 },
                                 {
                                    "name" : "ope_active"
                                 },
                                 {
                                    "name" : "tfexportrule_id"
                                 },
                                 {
                                    "name" : "ope_type"
                                 },
                                 {
                                    "name" : "ope_name"
                                 },
                                 {
                                    "name" : "media_key"
                                 },
                                 {
                                    "name" : "media_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "N",
                                       "c",
                                       "30d",
                                       "0",
                                       "10114",
                                       "217",
                                       "0",
                                       "30d",
                                       null,
                                       null,
                                       "0",
                                       "0",
                                       "Y",
                                       "0",
                                       "BANNER",
                                       "1307_partenaire_promoapplimobile",
                                       "ADVERTISING",
                                       "3"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Campaigns linked by location.",
            "tags" : [
               "Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/get_ope_by_location.json?dir=DESC&limit=25&location-id=1777564992&location-name=placement-468x790&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/get_ope_by_location.json?dir=DESC&limit=25&location-id=1777564992&location-name=placement-468x790&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/get_ope_by_location.json?dir=DESC&limit=25&location-id=1777564992&location-name=placement-468x790&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&location-id=1777564992&location-name=placement-468x790&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/get_ope_by_location.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ope/get_ope_by_media.json" : {
         "get" : {
            "description" : "Given a media-key return the list of campaigns linked to them.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ope&method=get_ope_by_media"
            },
            "operationId" : "getOpeByMediaCampaign",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "key of the channel.",
                  "example" : "ADVERTISING",
                  "in" : "query",
                  "name" : "media-key",
                  "schema" : {
                     "enum" : [
                        "MAILING",
                        "ADVERTISING",
                        "AFFILIATION",
                        "SPONSOREDLINK",
                        "PARTNER",
                        "PAIDINCLUSION",
                        "SOCIAL",
                        "SOCIALFREE",
                        "TRUSTEDFREE",
                        "GENERIC"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "mediaplan_id"
                                 },
                                 {
                                    "name" : "ope_archive"
                                 },
                                 {
                                    "name" : "ope_vvcpriority"
                                 },
                                 {
                                    "name" : "ope_vccookieage"
                                 },
                                 {
                                    "name" : "tfpublish_id"
                                 },
                                 {
                                    "name" : "publisher_id"
                                 },
                                 {
                                    "name" : "ope_id"
                                 },
                                 {
                                    "name" : "tfdatasource_id"
                                 },
                                 {
                                    "name" : "ope_vvcookieage"
                                 },
                                 {
                                    "name" : "ope_stop"
                                 },
                                 {
                                    "name" : "ope_start"
                                 },
                                 {
                                    "name" : "tfexporttemplate_id"
                                 },
                                 {
                                    "name" : "tfgenerator_id"
                                 },
                                 {
                                    "name" : "ope_active"
                                 },
                                 {
                                    "name" : "tfexportrule_id"
                                 },
                                 {
                                    "name" : "ope_type"
                                 },
                                 {
                                    "name" : "ope_name"
                                 },
                                 {
                                    "name" : "media_key"
                                 },
                                 {
                                    "name" : "media_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "N",
                                       "c",
                                       "30d",
                                       "0",
                                       "10114",
                                       "217",
                                       "0",
                                       "30d",
                                       null,
                                       null,
                                       "0",
                                       "0",
                                       "Y",
                                       "0",
                                       "BANNER",
                                       "1307_partenaire_promoapplimobile",
                                       "ADVERTISING",
                                       "3"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Campaigns linked by channel.",
            "tags" : [
               "Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/get_ope_by_media.json?dir=DESC&limit=25&media-key=ADVERTISING&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/get_ope_by_media.json?dir=DESC&limit=25&media-key=ADVERTISING&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/get_ope_by_media.json?dir=DESC&limit=25&media-key=ADVERTISING&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&media-key=ADVERTISING&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/get_ope_by_media.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ope/get_ope_by_publisher.json" : {
         "get" : {
            "description" : "Given a publisher-id or a publisher-name return the list of campaigns linked to them.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ope&method=get_ope_by_publisher"
            },
            "operationId" : "getOpeByPublisherCampaign",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "id of the publisher. You can search for multiple ids by using pipes, eg: publisher-id=123|78|34",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "publisher-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the publisher. You can search for multiple names by using pipes, eg: publisher-name=test1|test3|placement10",
                  "example" : "me",
                  "in" : "query",
                  "name" : "publisher-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "mediaplan_id"
                                 },
                                 {
                                    "name" : "ope_archive"
                                 },
                                 {
                                    "name" : "ope_vvcpriority"
                                 },
                                 {
                                    "name" : "ope_vccookieage"
                                 },
                                 {
                                    "name" : "tfpublish_id"
                                 },
                                 {
                                    "name" : "publisher_id"
                                 },
                                 {
                                    "name" : "ope_id"
                                 },
                                 {
                                    "name" : "tfdatasource_id"
                                 },
                                 {
                                    "name" : "ope_vvcookieage"
                                 },
                                 {
                                    "name" : "ope_stop"
                                 },
                                 {
                                    "name" : "ope_start"
                                 },
                                 {
                                    "name" : "tfexporttemplate_id"
                                 },
                                 {
                                    "name" : "tfgenerator_id"
                                 },
                                 {
                                    "name" : "ope_active"
                                 },
                                 {
                                    "name" : "tfexportrule_id"
                                 },
                                 {
                                    "name" : "ope_type"
                                 },
                                 {
                                    "name" : "ope_name"
                                 },
                                 {
                                    "name" : "media_key"
                                 },
                                 {
                                    "name" : "media_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "N",
                                       "c",
                                       "30d",
                                       "0",
                                       "10114",
                                       "217",
                                       "0",
                                       "30d",
                                       null,
                                       null,
                                       "0",
                                       "0",
                                       "Y",
                                       "0",
                                       "BANNER",
                                       "1307_partenaire_promoapplimobile",
                                       "ADVERTISING",
                                       "3"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Campaigns linked by publisher.",
            "tags" : [
               "Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/get_ope_by_publisher.json?dir=DESC&limit=25&publisher-id=1777564992&publisher-name=me&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/get_ope_by_publisher.json?dir=DESC&limit=25&publisher-id=1777564992&publisher-name=me&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/get_ope_by_publisher.json?dir=DESC&limit=25&publisher-id=1777564992&publisher-name=me&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&publisher-id=1777564992&publisher-name=me&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/get_ope_by_publisher.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ope/link_to_submedia.json" : {
         "post" : {
            "description" : "This query will link the provided campaign name to the virtual subchannel.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ope&method=link_to_submedia"
            },
            "operationId" : "linkToSubmediaCampaign",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the name of the campaign you want to link.",
                  "example" : "my-campaign",
                  "in" : "query",
                  "name" : "ope-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the name of the virtual subchannel you want to link the campaign to.",
                  "example" : "my-virtual-subchannel",
                  "in" : "query",
                  "name" : "submedia-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Link campaign to virtual subchannel.",
            "tags" : [
               "Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"ope-name=my-campaign&submedia-name=my-virtual-subchannel\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/link_to_submedia.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'ope-name' => 'my-campaign',\n'submedia-name' => 'my-virtual-subchannel'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/link_to_submedia.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/link_to_submedia.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('ope-name=my-campaign&submedia-name=my-virtual-subchannel');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'ope-name' : 'my-campaign',\n'submedia-name' : 'my-virtual-subchannel'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ope/unlink_from_submedia.json" : {
         "post" : {
            "description" : "This query will unlink the provided campaign name from any linked virtual subchannel.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ope&method=unlink_from_submedia"
            },
            "operationId" : "unlinkFromSubmediaCampaign",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the name of the campaign you want to link.",
                  "example" : "my-campaign",
                  "in" : "query",
                  "name" : "ope-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Unlink campaign from virtual subchannel.",
            "tags" : [
               "Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"ope-name=my-campaign\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/unlink_from_submedia.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'ope-name' => 'my-campaign'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/unlink_from_submedia.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ope/unlink_from_submedia.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('ope-name=my-campaign');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'ope-name' : 'my-campaign'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ordercollectorconfigmt/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ordercollectorconfigmt&method=search"
            },
            "operationId" : "searchTMSOrder",
            "parameters" : [
               {
                  "description" : "id of the tag as displaid in the TMS solution",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "collectorconfigmt-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "month for which you want to search for data",
                  "example" : "012022",
                  "in" : "query",
                  "name" : "mmyyyy",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the native partner for which you want tag that have been triggered",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "mtnative-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "regexp matching the executed content for the tag",
                  "example" : ".*amount.*",
                  "in" : "query",
                  "name" : "ordercollectorconfigmt-content-eregexp",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the order as displayed in the order list",
                  "example" : "17775649921777564992",
                  "in" : "query",
                  "name" : "orderid-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ordercollectorconfigmt_date"
                                 },
                                 {
                                    "name" : "orderid_id"
                                 },
                                 {
                                    "name" : "mtnative_key"
                                 },
                                 {
                                    "name" : "collectorconfigmt_name"
                                 },
                                 {
                                    "name" : "ordercollectorconfigmt_id"
                                 },
                                 {
                                    "name" : "ordercollectorconfigmt_type"
                                 },
                                 {
                                    "name" : "order_ref"
                                 },
                                 {
                                    "name" : "collectorconfigmt_id"
                                 },
                                 {
                                    "name" : "ordercollectorconfigmt_isnative"
                                 },
                                 {
                                    "name" : "ordercollectorconfigmt_content"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1640991698",
                                    "8396124516243462049",
                                    "",
                                    "Partner_DMP_20210408",
                                    "111",
                                    null,
                                    "7305171157",
                                    "8481",
                                    "N",
                                    null
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "TMS-Order"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordercollectorconfigmt/search.json?collectorconfigmt-id=1777564992&dir=DESC&limit=25&mmyyyy=012022&mtnative-id=1777564992&ordercollectorconfigmt-content-eregexp=.%2Aamount.%2A&orderid-id=17775649921777564992&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordercollectorconfigmt/search.json?collectorconfigmt-id=1777564992&dir=DESC&limit=25&mmyyyy=012022&mtnative-id=1777564992&ordercollectorconfigmt-content-eregexp=.*amount.*&orderid-id=17775649921777564992&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordercollectorconfigmt/search.json?collectorconfigmt-id=1777564992&dir=DESC&limit=25&mmyyyy=012022&mtnative-id=1777564992&ordercollectorconfigmt-content-eregexp=.*amount.*&orderid-id=17775649921777564992&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'collectorconfigmt-id=1777564992&dir=DESC&limit=25&mmyyyy=012022&mtnative-id=1777564992&ordercollectorconfigmt-content-eregexp=.%2Aamount.%2A&orderid-id=17775649921777564992&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordercollectorconfigmt/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/orderdataconnector/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=orderdataconnector&method=search"
            },
            "operationId" : "searchS2SOrder",
            "parameters" : [
               {
                  "description" : "id of the tag as displaid in the TMS solution",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "dataconnector-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the native partner for which you want tag that have been triggered",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "dcnative-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "month for which you want to search for data",
                  "example" : "012022",
                  "in" : "query",
                  "name" : "mmyyyy",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "regexp matching the executed content for the tag",
                  "example" : ".*amount.*",
                  "in" : "query",
                  "name" : "orderdataconnector-content-eregexp",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the order as displayed in the order list",
                  "example" : "17775649921777564992",
                  "in" : "query",
                  "name" : "orderid-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "orderdataconnector_date"
                                 },
                                 {
                                    "name" : "orderid_id"
                                 },
                                 {
                                    "name" : "dcnative_key"
                                 },
                                 {
                                    "name" : "dataconnector_name"
                                 },
                                 {
                                    "name" : "orderdataconnector_id"
                                 },
                                 {
                                    "name" : "orderdataconnector_type"
                                 },
                                 {
                                    "name" : "order_ref"
                                 },
                                 {
                                    "name" : "dataconnector_id"
                                 },
                                 {
                                    "name" : "orderdataconnector_content"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1640991698",
                                    "8396124516243462049",
                                    "",
                                    "Partner_DMP_20210408",
                                    "111",
                                    null,
                                    "7305171157",
                                    "8481",
                                    null
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "S2S-Order"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderdataconnector/search.json?dataconnector-id=1777564992&dcnative-id=1777564992&dir=DESC&limit=25&mmyyyy=012022&orderdataconnector-content-eregexp=.%2Aamount.%2A&orderid-id=17775649921777564992&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderdataconnector/search.json?dataconnector-id=1777564992&dcnative-id=1777564992&dir=DESC&limit=25&mmyyyy=012022&orderdataconnector-content-eregexp=.*amount.*&orderid-id=17775649921777564992&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderdataconnector/search.json?dataconnector-id=1777564992&dcnative-id=1777564992&dir=DESC&limit=25&mmyyyy=012022&orderdataconnector-content-eregexp=.*amount.*&orderid-id=17775649921777564992&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dataconnector-id=1777564992&dcnative-id=1777564992&dir=DESC&limit=25&mmyyyy=012022&orderdataconnector-content-eregexp=.%2Aamount.%2A&orderid-id=17775649921777564992&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderdataconnector/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/orderpayment/exists.json" : {
         "get" : {
            "description" : "This query will check if a orderpayment-key exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=orderpayment&method=exists"
            },
            "operationId" : "existsOrderPayment",
            "parameters" : [
               {
                  "description" : "name of the orderpayment to check",
                  "example" : "my-test-orderpayment",
                  "in" : "query",
                  "name" : "orderpayment-key",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "orderpayment_id"
                                 },
                                 {
                                    "name" : "orderpayment_key"
                                 },
                                 {
                                    "name" : "orderpayment_desc"
                                 },
                                 {
                                    "name" : "orderpayment_sort"
                                 },
                                 {
                                    "name" : "orderpayment_visible"
                                 },
                                 {
                                    "name" : "orderpayment_subgroup"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "MyPayment",
                                    null,
                                    0,
                                    "Y",
                                    null
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a orderpayment-key exists",
            "tags" : [
               "OrderPayment"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpayment/exists.json?orderpayment-key=my-test-orderpayment\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpayment/exists.json?orderpayment-key=my-test-orderpayment',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpayment/exists.json?orderpayment-key=my-test-orderpayment');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'orderpayment-key=my-test-orderpayment'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpayment/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/orderpayment/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=orderpayment&method=search"
            },
            "operationId" : "searchOrderPayment",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the orderpayment",
                  "example" : "my-test-orderpayment",
                  "in" : "query",
                  "name" : "orderpayment-key",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on visible flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "orderpayment-visible",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "orderpayment_id"
                                 },
                                 {
                                    "name" : "orderpayment_key"
                                 },
                                 {
                                    "name" : "orderpayment_desc"
                                 },
                                 {
                                    "name" : "orderpayment_sort"
                                 },
                                 {
                                    "name" : "orderpayment_visible"
                                 },
                                 {
                                    "name" : "orderpayment_subgroup"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "MyPayment",
                                    null,
                                    0,
                                    "Y",
                                    null
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "OrderPayment"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpayment/search.json?dir=DESC&limit=25&orderpayment-key=my-test-orderpayment&orderpayment-visible=Y&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpayment/search.json?dir=DESC&limit=25&orderpayment-key=my-test-orderpayment&orderpayment-visible=Y&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpayment/search.json?dir=DESC&limit=25&orderpayment-key=my-test-orderpayment&orderpayment-visible=Y&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&orderpayment-key=my-test-orderpayment&orderpayment-visible=Y&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpayment/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/orderpayment/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing order payment.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=orderpayment&method=update"
            },
            "operationId" : "updateOrderPayment",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the orderpayment for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "orderpayment-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new orderpayment name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "orderpayment-key",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to the new description",
                  "example" : "new description",
                  "in" : "query",
                  "name" : "orderpayment-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the visible attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "orderpayment-visible",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "orderpayment_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchOrderPayment" : {
                        "description" : "Use the value of orderpayment_id entry to update a orderpayment through orderpayment-id parameter.",
                        "operationId" : "searchOrderPayment",
                        "parameters" : {
                           "orderpayment-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing order payment.",
            "tags" : [
               "OrderPayment"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"orderpayment-desc=new%20description&orderpayment-id=1777564992&orderpayment-key=New%20name&orderpayment-visible=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpayment/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'orderpayment-desc' => 'new description',\n'orderpayment-id' => '1777564992',\n'orderpayment-key' => 'New name',\n'orderpayment-visible' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpayment/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpayment/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('orderpayment-desc=new%20description&orderpayment-id=1777564992&orderpayment-key=New%20name&orderpayment-visible=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'orderpayment-desc' : 'new%20description',\n'orderpayment-id' : '1777564992',\n'orderpayment-key' : 'New%20name',\n'orderpayment-visible' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/orderpaymentcustom/exists.json" : {
         "get" : {
            "description" : "This query will check if a orderpaymentcustom-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=orderpaymentcustom&method=exists"
            },
            "operationId" : "existsOrderPaymentCustom",
            "parameters" : [
               {
                  "description" : "name of the orderpaymentcustom to check",
                  "example" : "my-test-orderpaymentcustom",
                  "in" : "query",
                  "name" : "orderpaymentcustom-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "orderpaymentcustom_id"
                                 },
                                 {
                                    "name" : "orderpaymentcustom_name"
                                 },
                                 {
                                    "name" : "orderpaymentcustom_sort"
                                 },
                                 {
                                    "name" : "orderpaymentcustom_visible"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "MyTypeCustom",
                                    0,
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a orderpaymentcustom-name exists",
            "tags" : [
               "OrderPaymentCustom"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpaymentcustom/exists.json?orderpaymentcustom-name=my-test-orderpaymentcustom\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpaymentcustom/exists.json?orderpaymentcustom-name=my-test-orderpaymentcustom',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpaymentcustom/exists.json?orderpaymentcustom-name=my-test-orderpaymentcustom');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'orderpaymentcustom-name=my-test-orderpaymentcustom'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpaymentcustom/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/orderpaymentcustom/link.json" : {
         "get" : {
            "description" : "This query allows for linking one or more order payment to a custom order payment.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=orderpaymentcustom&method=link"
            },
            "operationId" : "linkOrderPaymentCustom",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "id of the orderpayment",
                  "example" : 10847,
                  "in" : "query",
                  "name" : "orderpayment-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the orderpaymentcustom",
                  "example" : 10847,
                  "in" : "query",
                  "name" : "orderpaymentcustom-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Link order payment",
            "tags" : [
               "OrderPaymentCustom"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpaymentcustom/link.json?dir=DESC&limit=25&orderpayment-id=10847&orderpaymentcustom-id=10847&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpaymentcustom/link.json?dir=DESC&limit=25&orderpayment-id=10847&orderpaymentcustom-id=10847&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpaymentcustom/link.json?dir=DESC&limit=25&orderpayment-id=10847&orderpaymentcustom-id=10847&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&orderpayment-id=10847&orderpaymentcustom-id=10847&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpaymentcustom/link.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/orderpaymentcustom/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=orderpaymentcustom&method=search"
            },
            "operationId" : "searchOrderPaymentCustom",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the orderpaymentcustom",
                  "example" : "my-test-orderpaymentcustom",
                  "in" : "query",
                  "name" : "orderpaymentcustom-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on visible flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "orderpaymentcustom-visible",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "orderpaymentcustom_id"
                                 },
                                 {
                                    "name" : "orderpaymentcustom_name"
                                 },
                                 {
                                    "name" : "orderpaymentcustom_sort"
                                 },
                                 {
                                    "name" : "orderpaymentcustom_visible"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "MyTypeCustom",
                                    0,
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "OrderPaymentCustom"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpaymentcustom/search.json?dir=DESC&limit=25&orderpaymentcustom-name=my-test-orderpaymentcustom&orderpaymentcustom-visible=Y&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpaymentcustom/search.json?dir=DESC&limit=25&orderpaymentcustom-name=my-test-orderpaymentcustom&orderpaymentcustom-visible=Y&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpaymentcustom/search.json?dir=DESC&limit=25&orderpaymentcustom-name=my-test-orderpaymentcustom&orderpaymentcustom-visible=Y&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&orderpaymentcustom-name=my-test-orderpaymentcustom&orderpaymentcustom-visible=Y&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpaymentcustom/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/orderpaymentcustom/unlink.json" : {
         "get" : {
            "description" : "This query allows for unlinking one or more order payment.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=orderpaymentcustom&method=unlink"
            },
            "operationId" : "unlinkOrderPaymentCustom",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "id of the orderpayment",
                  "example" : 10847,
                  "in" : "query",
                  "name" : "orderpayment-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "UnLink order payment",
            "tags" : [
               "OrderPaymentCustom"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpaymentcustom/unlink.json?dir=DESC&limit=25&orderpayment-id=10847&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpaymentcustom/unlink.json?dir=DESC&limit=25&orderpayment-id=10847&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpaymentcustom/unlink.json?dir=DESC&limit=25&orderpayment-id=10847&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&orderpayment-id=10847&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpaymentcustom/unlink.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/orderpaymentcustom/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing order payment.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=orderpaymentcustom&method=update"
            },
            "operationId" : "updateOrderPaymentCustom",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the orderpaymentcustom for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "orderpaymentcustom-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new orderpaymentcustom name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "orderpaymentcustom-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the visible attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "orderpaymentcustom-visible",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "orderpaymentcustom_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchOrderPaymentCustom" : {
                        "description" : "Use the value of orderpaymentcustom_id entry to update a orderpaymentcustom through orderpaymentcustom-id parameter.",
                        "operationId" : "searchOrderPaymentCustom",
                        "parameters" : {
                           "orderpaymentcustom-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing order payment.",
            "tags" : [
               "OrderPaymentCustom"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"orderpaymentcustom-id=1777564992&orderpaymentcustom-name=New%20name&orderpaymentcustom-visible=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpaymentcustom/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'orderpaymentcustom-id' => '1777564992',\n'orderpaymentcustom-name' => 'New name',\n'orderpaymentcustom-visible' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpaymentcustom/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/orderpaymentcustom/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('orderpaymentcustom-id=1777564992&orderpaymentcustom-name=New%20name&orderpaymentcustom-visible=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'orderpaymentcustom-id' : '1777564992',\n'orderpaymentcustom-name' : 'New%20name',\n'orderpaymentcustom-visible' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ordertype/exists.json" : {
         "get" : {
            "description" : "This query will check if a ordertype-key exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ordertype&method=exists"
            },
            "operationId" : "existsOrderType",
            "parameters" : [
               {
                  "description" : "name of the ordertype to check",
                  "example" : "my-test-ordertype",
                  "in" : "query",
                  "name" : "ordertype-key",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ordertype_id"
                                 },
                                 {
                                    "name" : "ordertype_key"
                                 },
                                 {
                                    "name" : "ordertype_desc"
                                 },
                                 {
                                    "name" : "ordertype_sort"
                                 },
                                 {
                                    "name" : "ordertypecustom_id"
                                 },
                                 {
                                    "name" : "ordertype_visible"
                                 },
                                 {
                                    "name" : "ordertype_subgroup"
                                 },
                                 {
                                    "name" : "ordertype_offline"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "MyType",
                                    null,
                                    0,
                                    1,
                                    "Y",
                                    null,
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a ordertype-key exists",
            "tags" : [
               "OrderType"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertype/exists.json?ordertype-key=my-test-ordertype\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertype/exists.json?ordertype-key=my-test-ordertype',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertype/exists.json?ordertype-key=my-test-ordertype');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ordertype-key=my-test-ordertype'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertype/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ordertype/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ordertype&method=search"
            },
            "operationId" : "searchOrderType",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the ordertype",
                  "example" : "my-test-ordertype",
                  "in" : "query",
                  "name" : "ordertype-key",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on offline flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "ordertype-offline",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on visible flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "ordertype-visible",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to the new ordertypecustom",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "ordertypecustom-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ordertype_id"
                                 },
                                 {
                                    "name" : "ordertype_key"
                                 },
                                 {
                                    "name" : "ordertype_desc"
                                 },
                                 {
                                    "name" : "ordertype_sort"
                                 },
                                 {
                                    "name" : "ordertypecustom_id"
                                 },
                                 {
                                    "name" : "ordertype_visible"
                                 },
                                 {
                                    "name" : "ordertype_subgroup"
                                 },
                                 {
                                    "name" : "ordertype_offline"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "MyType",
                                    null,
                                    0,
                                    1,
                                    "Y",
                                    null,
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "OrderType"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertype/search.json?dir=DESC&limit=25&ordertype-key=my-test-ordertype&ordertype-offline=Y&ordertype-visible=Y&ordertypecustom-id=1777564992&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertype/search.json?dir=DESC&limit=25&ordertype-key=my-test-ordertype&ordertype-offline=Y&ordertype-visible=Y&ordertypecustom-id=1777564992&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertype/search.json?dir=DESC&limit=25&ordertype-key=my-test-ordertype&ordertype-offline=Y&ordertype-visible=Y&ordertypecustom-id=1777564992&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&ordertype-key=my-test-ordertype&ordertype-offline=Y&ordertype-visible=Y&ordertypecustom-id=1777564992&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertype/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ordertype/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing order type.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ordertype&method=update"
            },
            "operationId" : "updateOrderType",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the ordertype for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "ordertype-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new ordertype name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "ordertype-key",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to the new description",
                  "example" : "new description",
                  "in" : "query",
                  "name" : "ordertype-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to the new ordertypecustom",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "ordertypecustom-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the visible attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "ordertype-visible",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the offline attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "ordertype-offline",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ordertype_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchOrderType" : {
                        "description" : "Use the value of ordertype_id entry to update a ordertype through ordertype-id parameter.",
                        "operationId" : "searchOrderType",
                        "parameters" : {
                           "ordertype-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing order type.",
            "tags" : [
               "OrderType"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"ordertype-desc=new%20description&ordertype-id=1777564992&ordertype-key=New%20name&ordertype-offline=Y&ordertype-visible=Y&ordertypecustom-id=1777564992\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertype/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'ordertype-desc' => 'new description',\n'ordertype-id' => '1777564992',\n'ordertype-key' => 'New name',\n'ordertype-offline' => 'Y',\n'ordertype-visible' => 'Y',\n'ordertypecustom-id' => '1777564992'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertype/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertype/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('ordertype-desc=new%20description&ordertype-id=1777564992&ordertype-key=New%20name&ordertype-offline=Y&ordertype-visible=Y&ordertypecustom-id=1777564992');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'ordertype-desc' : 'new%20description',\n'ordertype-id' : '1777564992',\n'ordertype-key' : 'New%20name',\n'ordertype-offline' : 'Y',\n'ordertype-visible' : 'Y',\n'ordertypecustom-id' : '1777564992'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ordertypecustom/exists.json" : {
         "get" : {
            "description" : "This query will check if a ordertypecustom-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ordertypecustom&method=exists"
            },
            "operationId" : "existsOrderTypeCustom",
            "parameters" : [
               {
                  "description" : "name of the ordertypecustom to check",
                  "example" : "my-test-ordertypecustom",
                  "in" : "query",
                  "name" : "ordertypecustom-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ordertypecustom_id"
                                 },
                                 {
                                    "name" : "ordertypecustom_name"
                                 },
                                 {
                                    "name" : "ordertypecustom_sort"
                                 },
                                 {
                                    "name" : "ordertypecustom_visible"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "MyTypeCustom",
                                    0,
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a ordertypecustom-name exists",
            "tags" : [
               "OrderTypeCustom"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertypecustom/exists.json?ordertypecustom-name=my-test-ordertypecustom\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertypecustom/exists.json?ordertypecustom-name=my-test-ordertypecustom',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertypecustom/exists.json?ordertypecustom-name=my-test-ordertypecustom');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ordertypecustom-name=my-test-ordertypecustom'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertypecustom/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ordertypecustom/link.json" : {
         "get" : {
            "description" : "This query allows for linking one or more order type to a custom order type.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ordertypecustom&method=link"
            },
            "operationId" : "linkOrderTypeCustom",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "id of the ordertype",
                  "example" : 10847,
                  "in" : "query",
                  "name" : "ordertype-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the ordertypecustom",
                  "example" : 10847,
                  "in" : "query",
                  "name" : "ordertypecustom-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Link order type",
            "tags" : [
               "OrderTypeCustom"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertypecustom/link.json?dir=DESC&limit=25&ordertype-id=10847&ordertypecustom-id=10847&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertypecustom/link.json?dir=DESC&limit=25&ordertype-id=10847&ordertypecustom-id=10847&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertypecustom/link.json?dir=DESC&limit=25&ordertype-id=10847&ordertypecustom-id=10847&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&ordertype-id=10847&ordertypecustom-id=10847&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertypecustom/link.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ordertypecustom/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ordertypecustom&method=search"
            },
            "operationId" : "searchOrderTypeCustom",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the ordertypecustom",
                  "example" : "my-test-ordertypecustom",
                  "in" : "query",
                  "name" : "ordertypecustom-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on visible flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "ordertypecustom-visible",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ordertypecustom_id"
                                 },
                                 {
                                    "name" : "ordertypecustom_name"
                                 },
                                 {
                                    "name" : "ordertypecustom_sort"
                                 },
                                 {
                                    "name" : "ordertypecustom_visible"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "MyTypeCustom",
                                    0,
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "OrderTypeCustom"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertypecustom/search.json?dir=DESC&limit=25&ordertypecustom-name=my-test-ordertypecustom&ordertypecustom-visible=Y&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertypecustom/search.json?dir=DESC&limit=25&ordertypecustom-name=my-test-ordertypecustom&ordertypecustom-visible=Y&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertypecustom/search.json?dir=DESC&limit=25&ordertypecustom-name=my-test-ordertypecustom&ordertypecustom-visible=Y&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&ordertypecustom-name=my-test-ordertypecustom&ordertypecustom-visible=Y&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertypecustom/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ordertypecustom/unlink.json" : {
         "get" : {
            "description" : "This query allows for unlinking one or more order type.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ordertypecustom&method=unlink"
            },
            "operationId" : "unlinkOrderTypeCustom",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "id of the ordertype",
                  "example" : 10847,
                  "in" : "query",
                  "name" : "ordertype-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "UnLink order type",
            "tags" : [
               "OrderTypeCustom"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertypecustom/unlink.json?dir=DESC&limit=25&ordertype-id=10847&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertypecustom/unlink.json?dir=DESC&limit=25&ordertype-id=10847&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertypecustom/unlink.json?dir=DESC&limit=25&ordertype-id=10847&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&ordertype-id=10847&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertypecustom/unlink.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/ordertypecustom/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing order type.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=ordertypecustom&method=update"
            },
            "operationId" : "updateOrderTypeCustom",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the ordertypecustom for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "ordertypecustom-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new ordertypecustom name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "ordertypecustom-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the visible attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "ordertypecustom-visible",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ordertypecustom_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchOrderTypeCustom" : {
                        "description" : "Use the value of ordertypecustom_id entry to update a ordertypecustom through ordertypecustom-id parameter.",
                        "operationId" : "searchOrderTypeCustom",
                        "parameters" : {
                           "ordertypecustom-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing order type.",
            "tags" : [
               "OrderTypeCustom"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"ordertypecustom-id=1777564992&ordertypecustom-name=New%20name&ordertypecustom-visible=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertypecustom/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'ordertypecustom-id' => '1777564992',\n'ordertypecustom-name' => 'New name',\n'ordertypecustom-visible' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertypecustom/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/ordertypecustom/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('ordertypecustom-id=1777564992&ordertypecustom-name=New%20name&ordertypecustom-visible=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'ordertypecustom-id' : '1777564992',\n'ordertypecustom-name' : 'New%20name',\n'ordertypecustom-visible' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagegroup/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new pagegroup.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagegroup&method=create"
            },
            "operationId" : "createPageGroup",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the pagegroup",
                  "example" : "my-test-pagegroup-name",
                  "in" : "query",
                  "name" : "pagegroup-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate if the pagegroup is the default one.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "pagegroup-dflt",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "example" : "^/homepage$",
                  "in" : "query",
                  "name" : "pagegroup-pattern",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagegroup_id"
                                 },
                                 {
                                    "name" : "pagegroup_name"
                                 },
                                 {
                                    "name" : "pagegroup_sort"
                                 },
                                 {
                                    "name" : "pagegroup_pattern"
                                 },
                                 {
                                    "name" : "pagegroup_visible"
                                 },
                                 {
                                    "name" : "pagegroup_dflt"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "visitor",
                                    "1",
                                    "/homepage",
                                    "Y",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new pagegroup entry.",
            "tags" : [
               "PageGroup"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"pagegroup-dflt=N&pagegroup-name=my-test-pagegroup-name&pagegroup-pattern=%5E%2Fhomepage%24\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagegroup/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'pagegroup-dflt' => 'N',\n'pagegroup-name' => 'my-test-pagegroup-name',\n'pagegroup-pattern' => '^/homepage$'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagegroup/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagegroup/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('pagegroup-dflt=N&pagegroup-name=my-test-pagegroup-name&pagegroup-pattern=%5E%2Fhomepage%24');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'pagegroup-dflt' : 'N',\n'pagegroup-name' : 'my-test-pagegroup-name',\n'pagegroup-pattern' : '%5E%2Fhomepage%24'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagegroup/exists.json" : {
         "get" : {
            "description" : "This query will check if a pagegroup-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagegroup&method=exists"
            },
            "operationId" : "existsPageGroup",
            "parameters" : [
               {
                  "description" : "name of the pagegroup to check",
                  "example" : "my-test-pagegroup",
                  "in" : "query",
                  "name" : "pagegroup-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagegroup_id"
                                 },
                                 {
                                    "name" : "pagegroup_name"
                                 },
                                 {
                                    "name" : "pagegroup_sort"
                                 },
                                 {
                                    "name" : "pagegroup_pattern"
                                 },
                                 {
                                    "name" : "pagegroup_visible"
                                 },
                                 {
                                    "name" : "pagegroup_dflt"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "visitor",
                                    "1",
                                    "/homepage",
                                    "Y",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a pagegroup-name exists",
            "tags" : [
               "PageGroup"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagegroup/exists.json?pagegroup-name=my-test-pagegroup\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagegroup/exists.json?pagegroup-name=my-test-pagegroup',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagegroup/exists.json?pagegroup-name=my-test-pagegroup');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'pagegroup-name=my-test-pagegroup'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagegroup/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagegroup/pages.json" : {
         "get" : {
            "description" : "This query allows for listing all the pages linked to a given pagegroup with the last modification time.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagegroup&method=pages"
            },
            "operationId" : "pagesPageGroup",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "id of the pagegroup",
                  "example" : 1254,
                  "in" : "query",
                  "name" : "pagegroup-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pageinfo_id"
                                 },
                                 {
                                    "name" : "pageinfo_name"
                                 },
                                 {
                                    "name" : "pageinfo_url"
                                 },
                                 {
                                    "name" : "pagepagegroup_mtime"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "3932",
                                    "visitor/page1",
                                    "https://toto.com/visitor/page/page1",
                                    "1536767836"
                                 ],
                                 [
                                    "32393932",
                                    "visitor/page2",
                                    "https://toto.com/visitor/page2/page",
                                    "1536767846"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "List all the pages linked to a pagegroup.",
            "tags" : [
               "PageGroup"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagegroup/pages.json?dir=DESC&limit=25&pagegroup-id=1254&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagegroup/pages.json?dir=DESC&limit=25&pagegroup-id=1254&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagegroup/pages.json?dir=DESC&limit=25&pagegroup-id=1254&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&pagegroup-id=1254&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagegroup/pages.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagegroup/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagegroup&method=search"
            },
            "operationId" : "searchPageGroup",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the pagegroup",
                  "example" : "my-test-pagegroup",
                  "in" : "query",
                  "name" : "pagegroup-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "LIKE search on pattern",
                  "example" : "Test",
                  "in" : "query",
                  "name" : "pagegroup-pattern",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on visible flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "pagegroup-visible",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagegroup_id"
                                 },
                                 {
                                    "name" : "pagegroup_name"
                                 },
                                 {
                                    "name" : "pagegroup_sort"
                                 },
                                 {
                                    "name" : "pagegroup_pattern"
                                 },
                                 {
                                    "name" : "pagegroup_visible"
                                 },
                                 {
                                    "name" : "pagegroup_dflt"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "visitor",
                                    "1",
                                    "/homepage",
                                    "Y",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "PageGroup"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagegroup/search.json?dir=DESC&limit=25&pagegroup-name=my-test-pagegroup&pagegroup-pattern=Test&pagegroup-visible=Y&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagegroup/search.json?dir=DESC&limit=25&pagegroup-name=my-test-pagegroup&pagegroup-pattern=Test&pagegroup-visible=Y&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagegroup/search.json?dir=DESC&limit=25&pagegroup-name=my-test-pagegroup&pagegroup-pattern=Test&pagegroup-visible=Y&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&pagegroup-name=my-test-pagegroup&pagegroup-pattern=Test&pagegroup-visible=Y&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagegroup/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagegroup/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing pagegroup.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagegroup&method=update"
            },
            "operationId" : "updatePageGroup",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the pagegroup for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "pagegroup-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new pagegroup name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "pagegroup-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new pagegroup pattern",
                  "example" : "^/home$",
                  "in" : "query",
                  "name" : "pagegroup-pattern",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "sort of the pagegroup",
                  "example" : 2,
                  "in" : "query",
                  "name" : "pagegroup-sort",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the visible attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "pagegroup-visible",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagegroup_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchPageGroup" : {
                        "description" : "Use the value of pagegroup_id entry to update a pagegroup through pagegroup-id parameter.",
                        "operationId" : "searchPageGroup",
                        "parameters" : {
                           "pagegroup-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing pagegroup.",
            "tags" : [
               "PageGroup"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"pagegroup-id=1777564992&pagegroup-name=New%20name&pagegroup-pattern=%5E%2Fhome%24&pagegroup-sort=2&pagegroup-visible=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagegroup/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'pagegroup-id' => '1777564992',\n'pagegroup-name' => 'New name',\n'pagegroup-pattern' => '^/home$',\n'pagegroup-sort' => '2',\n'pagegroup-visible' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagegroup/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagegroup/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('pagegroup-id=1777564992&pagegroup-name=New%20name&pagegroup-pattern=%5E%2Fhome%24&pagegroup-sort=2&pagegroup-visible=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'pagegroup-id' : '1777564992',\n'pagegroup-name' : 'New%20name',\n'pagegroup-pattern' : '%5E%2Fhome%24',\n'pagegroup-sort' : '2',\n'pagegroup-visible' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pageinfo/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pageinfo&method=search"
            },
            "operationId" : "searchPageInfo",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the page",
                  "example" : "my-test-pageinfo",
                  "in" : "query",
                  "name" : "pageinfo-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "url of the page",
                  "example" : "https://www.mydomain.com/my-test-pageinfo",
                  "in" : "query",
                  "name" : "pageinfo-url",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pageinfo_id"
                                 },
                                 {
                                    "name" : "pageinfo_name"
                                 },
                                 {
                                    "name" : "pageinfo_url"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992,
                                    "my-page",
                                    "https://www.mydomain.com/my-page"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "PageInfo"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pageinfo/search.json?dir=DESC&limit=25&pageinfo-name=my-test-pageinfo&pageinfo-url=https%3A%2F%2Fwww.mydomain.com%2Fmy-test-pageinfo&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pageinfo/search.json?dir=DESC&limit=25&pageinfo-name=my-test-pageinfo&pageinfo-url=https://www.mydomain.com/my-test-pageinfo&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pageinfo/search.json?dir=DESC&limit=25&pageinfo-name=my-test-pageinfo&pageinfo-url=https://www.mydomain.com/my-test-pageinfo&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&pageinfo-name=my-test-pageinfo&pageinfo-url=https%3A%2F%2Fwww.mydomain.com%2Fmy-test-pageinfo&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pageinfo/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pageinfo/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing pageinfo.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pageinfo&method=update"
            },
            "operationId" : "updatePageInfo",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the pageinfo for which you want to modify attributes",
                  "example" : "my-page",
                  "in" : "query",
                  "name" : "pageinfo-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new url",
                  "example" : "New url",
                  "in" : "query",
                  "name" : "pageinfo-url",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pageinfo_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchPageInfo" : {
                        "description" : "Use the value of pageinfo_id entry to update a pageinfo through pageinfo-id parameter.",
                        "operationId" : "searchPageInfo",
                        "parameters" : {
                           "pageinfo-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update attributes linked to a pageinfo name.",
            "tags" : [
               "PageInfo"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"pageinfo-name=my-page&pageinfo-url=New%20url\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pageinfo/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'pageinfo-name' => 'my-page',\n'pageinfo-url' => 'New url'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pageinfo/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pageinfo/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('pageinfo-name=my-page&pageinfo-url=New%20url');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'pageinfo-name' : 'my-page',\n'pageinfo-url' : 'New%20url'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel1/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new pagelabel1.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel1&method=create"
            },
            "operationId" : "createPageLabel1",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the pagelabel1 template",
                  "example" : "my-test-pagelabel1-name",
                  "in" : "query",
                  "name" : "pagelabel1-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel1_id"
                                 },
                                 {
                                    "name" : "pagelabel1_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new pagelabel1 entry.",
            "tags" : [
               "PageLabel1"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"pagelabel1-name=my-test-pagelabel1-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel1/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'pagelabel1-name' => 'my-test-pagelabel1-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel1/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel1/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('pagelabel1-name=my-test-pagelabel1-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'pagelabel1-name' : 'my-test-pagelabel1-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel1/exists.json" : {
         "get" : {
            "description" : "This query will check if a pagelabel1-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel1&method=exists"
            },
            "operationId" : "existsPageLabel1",
            "parameters" : [
               {
                  "description" : "name of the pagelabel1 to check",
                  "example" : "my-test-pagelabel1",
                  "in" : "query",
                  "name" : "pagelabel1-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel1_id"
                                 },
                                 {
                                    "name" : "pagelabel1_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a pagelabel1-name exists",
            "tags" : [
               "PageLabel1"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel1/exists.json?pagelabel1-name=my-test-pagelabel1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel1/exists.json?pagelabel1-name=my-test-pagelabel1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel1/exists.json?pagelabel1-name=my-test-pagelabel1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'pagelabel1-name=my-test-pagelabel1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel1/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel1/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel1&method=search"
            },
            "operationId" : "searchPageLabel1",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the pagelabel1",
                  "example" : "my-test-pagelabel1",
                  "in" : "query",
                  "name" : "pagelabel1-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "pagelabel1-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel1_id"
                                 },
                                 {
                                    "name" : "pagelabel1_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "PageLabel1"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel1/search.json?dir=DESC&limit=25&pagelabel1-name=my-test-pagelabel1&pagelabel1-name-exact=1&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel1/search.json?dir=DESC&limit=25&pagelabel1-name=my-test-pagelabel1&pagelabel1-name-exact=1&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel1/search.json?dir=DESC&limit=25&pagelabel1-name=my-test-pagelabel1&pagelabel1-name-exact=1&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&pagelabel1-name=my-test-pagelabel1&pagelabel1-name-exact=1&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel1/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel1/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing pagelabel1.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel1&method=update"
            },
            "operationId" : "updatePageLabel1",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the pagelabel1 for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "pagelabel1-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new pagelabel1 name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "pagelabel1-name",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel1_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchPageLabel1" : {
                        "description" : "Use the value of pagelabel1_id entry to update a pagelabel1 through pagelabel1-id parameter.",
                        "operationId" : "searchPageLabel1",
                        "parameters" : {
                           "pagelabel1-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing pagelabel1.",
            "tags" : [
               "PageLabel1"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"pagelabel1-id=1777564992&pagelabel1-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel1/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'pagelabel1-id' => '1777564992',\n'pagelabel1-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel1/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel1/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('pagelabel1-id=1777564992&pagelabel1-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'pagelabel1-id' : '1777564992',\n'pagelabel1-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel2/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new pagelabel2.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel2&method=create"
            },
            "operationId" : "createPageLabel2",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the pagelabel2 template",
                  "example" : "my-test-pagelabel2-name",
                  "in" : "query",
                  "name" : "pagelabel2-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel2_id"
                                 },
                                 {
                                    "name" : "pagelabel2_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new pagelabel2 entry.",
            "tags" : [
               "PageLabel2"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"pagelabel2-name=my-test-pagelabel2-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel2/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'pagelabel2-name' => 'my-test-pagelabel2-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel2/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel2/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('pagelabel2-name=my-test-pagelabel2-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'pagelabel2-name' : 'my-test-pagelabel2-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel2/exists.json" : {
         "get" : {
            "description" : "This query will check if a pagelabel2-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel2&method=exists"
            },
            "operationId" : "existsPageLabel2",
            "parameters" : [
               {
                  "description" : "name of the pagelabel2 to check",
                  "example" : "my-test-pagelabel2",
                  "in" : "query",
                  "name" : "pagelabel2-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel2_id"
                                 },
                                 {
                                    "name" : "pagelabel2_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a pagelabel2-name exists",
            "tags" : [
               "PageLabel2"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel2/exists.json?pagelabel2-name=my-test-pagelabel2\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel2/exists.json?pagelabel2-name=my-test-pagelabel2',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel2/exists.json?pagelabel2-name=my-test-pagelabel2');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'pagelabel2-name=my-test-pagelabel2'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel2/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel2/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel2&method=search"
            },
            "operationId" : "searchPageLabel2",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the pagelabel2",
                  "example" : "my-test-pagelabel2",
                  "in" : "query",
                  "name" : "pagelabel2-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "pagelabel2-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel2_id"
                                 },
                                 {
                                    "name" : "pagelabel2_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "PageLabel2"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel2/search.json?dir=DESC&limit=25&pagelabel2-name=my-test-pagelabel2&pagelabel2-name-exact=1&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel2/search.json?dir=DESC&limit=25&pagelabel2-name=my-test-pagelabel2&pagelabel2-name-exact=1&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel2/search.json?dir=DESC&limit=25&pagelabel2-name=my-test-pagelabel2&pagelabel2-name-exact=1&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&pagelabel2-name=my-test-pagelabel2&pagelabel2-name-exact=1&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel2/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel2/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing pagelabel2.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel2&method=update"
            },
            "operationId" : "updatePageLabel2",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the pagelabel2 for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "pagelabel2-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new pagelabel2 name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "pagelabel2-name",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel2_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchPageLabel2" : {
                        "description" : "Use the value of pagelabel2_id entry to update a pagelabel2 through pagelabel2-id parameter.",
                        "operationId" : "searchPageLabel2",
                        "parameters" : {
                           "pagelabel2-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing pagelabel2.",
            "tags" : [
               "PageLabel2"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"pagelabel2-id=1777564992&pagelabel2-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel2/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'pagelabel2-id' => '1777564992',\n'pagelabel2-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel2/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel2/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('pagelabel2-id=1777564992&pagelabel2-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'pagelabel2-id' : '1777564992',\n'pagelabel2-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel3/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new pagelabel3.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel3&method=create"
            },
            "operationId" : "createPageLabel3",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the pagelabel3 template",
                  "example" : "my-test-pagelabel3-name",
                  "in" : "query",
                  "name" : "pagelabel3-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel3_id"
                                 },
                                 {
                                    "name" : "pagelabel3_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new pagelabel3 entry.",
            "tags" : [
               "PageLabel3"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"pagelabel3-name=my-test-pagelabel3-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel3/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'pagelabel3-name' => 'my-test-pagelabel3-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel3/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel3/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('pagelabel3-name=my-test-pagelabel3-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'pagelabel3-name' : 'my-test-pagelabel3-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel3/exists.json" : {
         "get" : {
            "description" : "This query will check if a pagelabel3-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel3&method=exists"
            },
            "operationId" : "existsPageLabel3",
            "parameters" : [
               {
                  "description" : "name of the pagelabel3 to check",
                  "example" : "my-test-pagelabel3",
                  "in" : "query",
                  "name" : "pagelabel3-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel3_id"
                                 },
                                 {
                                    "name" : "pagelabel3_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a pagelabel3-name exists",
            "tags" : [
               "PageLabel3"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel3/exists.json?pagelabel3-name=my-test-pagelabel3\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel3/exists.json?pagelabel3-name=my-test-pagelabel3',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel3/exists.json?pagelabel3-name=my-test-pagelabel3');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'pagelabel3-name=my-test-pagelabel3'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel3/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel3/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel3&method=search"
            },
            "operationId" : "searchPageLabel3",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the pagelabel3",
                  "example" : "my-test-pagelabel3",
                  "in" : "query",
                  "name" : "pagelabel3-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "pagelabel3-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel3_id"
                                 },
                                 {
                                    "name" : "pagelabel3_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "PageLabel3"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel3/search.json?dir=DESC&limit=25&pagelabel3-name=my-test-pagelabel3&pagelabel3-name-exact=1&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel3/search.json?dir=DESC&limit=25&pagelabel3-name=my-test-pagelabel3&pagelabel3-name-exact=1&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel3/search.json?dir=DESC&limit=25&pagelabel3-name=my-test-pagelabel3&pagelabel3-name-exact=1&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&pagelabel3-name=my-test-pagelabel3&pagelabel3-name-exact=1&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel3/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel3/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing pagelabel3.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel3&method=update"
            },
            "operationId" : "updatePageLabel3",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the pagelabel3 for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "pagelabel3-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new pagelabel3 name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "pagelabel3-name",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel3_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchPageLabel3" : {
                        "description" : "Use the value of pagelabel3_id entry to update a pagelabel3 through pagelabel3-id parameter.",
                        "operationId" : "searchPageLabel3",
                        "parameters" : {
                           "pagelabel3-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing pagelabel3.",
            "tags" : [
               "PageLabel3"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"pagelabel3-id=1777564992&pagelabel3-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel3/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'pagelabel3-id' => '1777564992',\n'pagelabel3-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel3/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel3/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('pagelabel3-id=1777564992&pagelabel3-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'pagelabel3-id' : '1777564992',\n'pagelabel3-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel4/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new pagelabel4.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel4&method=create"
            },
            "operationId" : "createPageLabel4",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the pagelabel4 template",
                  "example" : "my-test-pagelabel4-name",
                  "in" : "query",
                  "name" : "pagelabel4-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel4_id"
                                 },
                                 {
                                    "name" : "pagelabel4_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new pagelabel4 entry.",
            "tags" : [
               "PageLabel4"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"pagelabel4-name=my-test-pagelabel4-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel4/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'pagelabel4-name' => 'my-test-pagelabel4-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel4/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel4/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('pagelabel4-name=my-test-pagelabel4-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'pagelabel4-name' : 'my-test-pagelabel4-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel4/exists.json" : {
         "get" : {
            "description" : "This query will check if a pagelabel4-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel4&method=exists"
            },
            "operationId" : "existsPageLabel4",
            "parameters" : [
               {
                  "description" : "name of the pagelabel4 to check",
                  "example" : "my-test-pagelabel4",
                  "in" : "query",
                  "name" : "pagelabel4-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel4_id"
                                 },
                                 {
                                    "name" : "pagelabel4_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a pagelabel4-name exists",
            "tags" : [
               "PageLabel4"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel4/exists.json?pagelabel4-name=my-test-pagelabel4\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel4/exists.json?pagelabel4-name=my-test-pagelabel4',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel4/exists.json?pagelabel4-name=my-test-pagelabel4');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'pagelabel4-name=my-test-pagelabel4'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel4/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel4/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel4&method=search"
            },
            "operationId" : "searchPageLabel4",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the pagelabel4",
                  "example" : "my-test-pagelabel4",
                  "in" : "query",
                  "name" : "pagelabel4-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "pagelabel4-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel4_id"
                                 },
                                 {
                                    "name" : "pagelabel4_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "PageLabel4"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel4/search.json?dir=DESC&limit=25&pagelabel4-name=my-test-pagelabel4&pagelabel4-name-exact=1&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel4/search.json?dir=DESC&limit=25&pagelabel4-name=my-test-pagelabel4&pagelabel4-name-exact=1&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel4/search.json?dir=DESC&limit=25&pagelabel4-name=my-test-pagelabel4&pagelabel4-name-exact=1&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&pagelabel4-name=my-test-pagelabel4&pagelabel4-name-exact=1&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel4/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel4/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing pagelabel4.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel4&method=update"
            },
            "operationId" : "updatePageLabel4",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the pagelabel4 for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "pagelabel4-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new pagelabel4 name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "pagelabel4-name",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel4_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchPageLabel4" : {
                        "description" : "Use the value of pagelabel4_id entry to update a pagelabel4 through pagelabel4-id parameter.",
                        "operationId" : "searchPageLabel4",
                        "parameters" : {
                           "pagelabel4-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing pagelabel4.",
            "tags" : [
               "PageLabel4"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"pagelabel4-id=1777564992&pagelabel4-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel4/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'pagelabel4-id' => '1777564992',\n'pagelabel4-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel4/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel4/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('pagelabel4-id=1777564992&pagelabel4-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'pagelabel4-id' : '1777564992',\n'pagelabel4-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel5/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new pagelabel5.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel5&method=create"
            },
            "operationId" : "createPageLabel5",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the pagelabel5 template",
                  "example" : "my-test-pagelabel5-name",
                  "in" : "query",
                  "name" : "pagelabel5-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel5_id"
                                 },
                                 {
                                    "name" : "pagelabel5_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new pagelabel5 entry.",
            "tags" : [
               "PageLabel5"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"pagelabel5-name=my-test-pagelabel5-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel5/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'pagelabel5-name' => 'my-test-pagelabel5-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel5/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel5/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('pagelabel5-name=my-test-pagelabel5-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'pagelabel5-name' : 'my-test-pagelabel5-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel5/exists.json" : {
         "get" : {
            "description" : "This query will check if a pagelabel5-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel5&method=exists"
            },
            "operationId" : "existsPageLabel5",
            "parameters" : [
               {
                  "description" : "name of the pagelabel5 to check",
                  "example" : "my-test-pagelabel5",
                  "in" : "query",
                  "name" : "pagelabel5-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel5_id"
                                 },
                                 {
                                    "name" : "pagelabel5_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a pagelabel5-name exists",
            "tags" : [
               "PageLabel5"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel5/exists.json?pagelabel5-name=my-test-pagelabel5\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel5/exists.json?pagelabel5-name=my-test-pagelabel5',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel5/exists.json?pagelabel5-name=my-test-pagelabel5');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'pagelabel5-name=my-test-pagelabel5'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel5/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel5/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel5&method=search"
            },
            "operationId" : "searchPageLabel5",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the pagelabel5",
                  "example" : "my-test-pagelabel5",
                  "in" : "query",
                  "name" : "pagelabel5-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "pagelabel5-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel5_id"
                                 },
                                 {
                                    "name" : "pagelabel5_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "PageLabel5"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel5/search.json?dir=DESC&limit=25&pagelabel5-name=my-test-pagelabel5&pagelabel5-name-exact=1&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel5/search.json?dir=DESC&limit=25&pagelabel5-name=my-test-pagelabel5&pagelabel5-name-exact=1&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel5/search.json?dir=DESC&limit=25&pagelabel5-name=my-test-pagelabel5&pagelabel5-name-exact=1&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&pagelabel5-name=my-test-pagelabel5&pagelabel5-name-exact=1&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel5/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/pagelabel5/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing pagelabel5.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=pagelabel5&method=update"
            },
            "operationId" : "updatePageLabel5",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the pagelabel5 for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "pagelabel5-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new pagelabel5 name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "pagelabel5-name",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "pagelabel5_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchPageLabel5" : {
                        "description" : "Use the value of pagelabel5_id entry to update a pagelabel5 through pagelabel5-id parameter.",
                        "operationId" : "searchPageLabel5",
                        "parameters" : {
                           "pagelabel5-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing pagelabel5.",
            "tags" : [
               "PageLabel5"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"pagelabel5-id=1777564992&pagelabel5-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel5/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'pagelabel5-id' => '1777564992',\n'pagelabel5-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel5/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/pagelabel5/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('pagelabel5-id=1777564992&pagelabel5-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'pagelabel5-id' : '1777564992',\n'pagelabel5-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/partner/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new data provider.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=partner&method=create"
            },
            "operationId" : "createDataProvider",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the partner template",
                  "example" : "my-test-partner-name",
                  "in" : "query",
                  "name" : "partner-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "description for the current data provider.",
                  "example" : "best partner",
                  "in" : "query",
                  "name" : "partner-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to enable archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "partner-archive",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to enable active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "partner-active",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "partner_id"
                                 },
                                 {
                                    "name" : "partner_name"
                                 },
                                 {
                                    "name" : "partner_desc"
                                 },
                                 {
                                    "name" : "partner_archive"
                                 },
                                 {
                                    "name" : "partner_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "Axciom",
                                    "Data from Axciom",
                                    "N",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new data provider.",
            "tags" : [
               "Data Provider"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"partner-active=Y&partner-archive=Y&partner-desc=best%20partner&partner-name=my-test-partner-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partner/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'partner-active' => 'Y',\n'partner-archive' => 'Y',\n'partner-desc' => 'best partner',\n'partner-name' => 'my-test-partner-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partner/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partner/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('partner-active=Y&partner-archive=Y&partner-desc=best%20partner&partner-name=my-test-partner-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'partner-active' : 'Y',\n'partner-archive' : 'Y',\n'partner-desc' : 'best%20partner',\n'partner-name' : 'my-test-partner-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/partner/exists.json" : {
         "get" : {
            "description" : "This query will check if a partner-name exists for the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=partner&method=exists"
            },
            "operationId" : "existsDataProvider",
            "parameters" : [
               {
                  "description" : "name of the partner to check",
                  "example" : "my-test-partner",
                  "in" : "query",
                  "name" : "partner-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "partner_id"
                                 },
                                 {
                                    "name" : "partner_name"
                                 },
                                 {
                                    "name" : "partner_desc"
                                 },
                                 {
                                    "name" : "partner_archive"
                                 },
                                 {
                                    "name" : "partner_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "Axciom",
                                    "Data from Axciom",
                                    "N",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a data provider exists",
            "tags" : [
               "Data Provider"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partner/exists.json?partner-name=my-test-partner\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partner/exists.json?partner-name=my-test-partner',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partner/exists.json?partner-name=my-test-partner');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'partner-name=my-test-partner'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partner/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/partner/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=partner&method=search"
            },
            "operationId" : "searchDataProvider",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "partner-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "partner-archive",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "LIKE search on description",
                  "example" : "Test",
                  "in" : "query",
                  "name" : "partner-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the partner",
                  "example" : "my-test-partner",
                  "in" : "query",
                  "name" : "partner-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "partner-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "partner_id"
                                 },
                                 {
                                    "name" : "partner_name"
                                 },
                                 {
                                    "name" : "partner_desc"
                                 },
                                 {
                                    "name" : "partner_archive"
                                 },
                                 {
                                    "name" : "partner_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "Axciom",
                                    "Data from Axciom",
                                    "N",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Data Provider"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partner/search.json?dir=DESC&limit=25&partner-active=Y&partner-archive=Y&partner-desc=Test&partner-name=my-test-partner&partner-name-exact=1&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partner/search.json?dir=DESC&limit=25&partner-active=Y&partner-archive=Y&partner-desc=Test&partner-name=my-test-partner&partner-name-exact=1&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partner/search.json?dir=DESC&limit=25&partner-active=Y&partner-archive=Y&partner-desc=Test&partner-name=my-test-partner&partner-name-exact=1&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&partner-active=Y&partner-archive=Y&partner-desc=Test&partner-name=my-test-partner&partner-name-exact=1&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partner/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/partner/sspparam_url.json" : {
         "get" : {
            "description" : "This query allows you to get a server2server URL so that you can update in real-time data linked to a user, you can then provide the parameters with the user identifier. IP-only access is handled so that you can control which servers can update data.\n\nTo target the user you want to update the data for, you can provide :\n\n* `etuix` which is the encrypted cookie linked to your 1st party tracking domain.\n\n* `uid` which is the CRM id linked to a given user.\n\nOnce you know which user you want to target you need to provide the parameters as key/values prefixed by `euk` key.\n\nURL samples :\n\n* target `uid` + parameter is `age` : `https://{DOMAIN}/sspparam/{SITE}/{TOKEN}/?uid=crm-123456789&eukage=23`\n\n* target `etuix` + parameter is `gender` : `https://{DOMAIN}/sspparam/{SITE}/{TOKEN}/?etuix=DEQwyRwgEDJm_8YpRfghVFTm2DqtpKXLMazT2ZDX&eukgender=F`\n\n> The parameters provided to the call need to exists in the system, they are not created dynamically.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=partner&method=sspparam_url"
            },
            "operationId" : "sspparamUrlDataProvider",
            "parameters" : [
               {
                  "description" : "IP address from which the call can be made. You can provided multiple IPs separated by commas, eg: 192.1683.1.2,192.163.1.3. You can also provide an IP regexp to allow broader range matching.",
                  "example" : "192.163.1.2",
                  "in" : "query",
                  "name" : "ip",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "partner name for which you want the real-time URL.",
                  "example" : "Axciom",
                  "in" : "query",
                  "name" : "partner-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "partner_id"
                                 },
                                 {
                                    "name" : "ip"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "https://{DOMAIN}/sspparam/{SITE}/{TOKEN}/",
                                    "^(192.163.1.2)$"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Real-time S2S API",
            "tags" : [
               "Data Provider"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partner/sspparam_url.json?ip=192.163.1.2&partner-name=Axciom\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partner/sspparam_url.json?ip=192.163.1.2&partner-name=Axciom',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partner/sspparam_url.json?ip=192.163.1.2&partner-name=Axciom');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ip=192.163.1.2&partner-name=Axciom'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partner/sspparam_url.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/partner/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing data provider.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=partner&method=update"
            },
            "operationId" : "updateDataProvider",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the partner for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "partner-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new partner name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "partner-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "LIKE search on description",
                  "example" : "Test",
                  "in" : "query",
                  "name" : "partner-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "partner-archive",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "partner-active",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "partner_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchDataProvider" : {
                        "description" : "Use the value of partner_id entry to update a partner through partner-id parameter.",
                        "operationId" : "searchDataProvider",
                        "parameters" : {
                           "partner-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing data provider.",
            "tags" : [
               "Data Provider"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"partner-active=Y&partner-archive=Y&partner-desc=Test&partner-id=1777564992&partner-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partner/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'partner-active' => 'Y',\n'partner-archive' => 'Y',\n'partner-desc' => 'Test',\n'partner-id' => '1777564992',\n'partner-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partner/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partner/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('partner-active=Y&partner-archive=Y&partner-desc=Test&partner-id=1777564992&partner-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'partner-active' : 'Y',\n'partner-archive' : 'Y',\n'partner-desc' : 'Test',\n'partner-id' : '1777564992',\n'partner-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/partneruserparam/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new data provider parameter.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=partneruserparam&method=create"
            },
            "operationId" : "createDataProviderParameters",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the data provider parameter template",
                  "example" : "my-test-partneruserparam-name",
                  "in" : "query",
                  "name" : "partneruserparam-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the data provider id to which this data provider parameter is going to be linked to",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "partner-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : 0,
                  "description" : "the data typing of the data provider parameter as listed in the above description.",
                  "example" : 2,
                  "in" : "query",
                  "name" : "partneruserparam-dtype",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "0",
                        "1",
                        "2",
                        "3"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y / N flag indicating if the data collection is made in realtime or through async file.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "partneruserparam-collector",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the depth level of this data provider parameter.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "partneruserparam-depth",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y / N flag indicating if the parameter is active or not.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "partneruserparam-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y / N flag indicating if the parameter is archived or not.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "partneruserparam-archive",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "description of the data provider name",
                  "example" : "my description",
                  "in" : "query",
                  "name" : "partneruserparam-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y / N flag indicating if we need to track modification time on the data provider parameter.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "partneruserparam-wmtime",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "when partneruserparam_mtime is set to Y, provide the number of days for which the data will be deleted for the current user.",
                  "example" : 10,
                  "in" : "query",
                  "name" : "partneruserparam-expiredays",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "hashing algorithm to apply",
                  "example" : "sha256lctr",
                  "in" : "query",
                  "name" : "partneruserparam-hashalgo",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "number of days from which hashing is to be applied.",
                  "example" : 10,
                  "in" : "query",
                  "name" : "partneruserparam-hashdelay",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "provide a regexp that must match the value, you can invert with a prefixed ! (ex: !^(1|0)$ match all except 1 or 0)",
                  "example" : "^(1|0)$/",
                  "in" : "query",
                  "name" : "partneruserparam-pattern",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "partneruserparam_dtype"
                                 },
                                 {
                                    "name" : "partneruserparam_active"
                                 },
                                 {
                                    "name" : "partneruserparam_id"
                                 },
                                 {
                                    "name" : "partneruserparam_desc"
                                 },
                                 {
                                    "name" : "partneruserparam_archive"
                                 },
                                 {
                                    "name" : "partneruserparam_name"
                                 },
                                 {
                                    "name" : "partneruserparam_uiconfig"
                                 },
                                 {
                                    "name" : "partneruserparam_depth"
                                 },
                                 {
                                    "name" : "partner_id"
                                 },
                                 {
                                    "name" : "partneruserparam_collector"
                                 },
                                 {
                                    "name" : "partneruserparam_expiredays"
                                 },
                                 {
                                    "name" : "partneruserparam_wmtime"
                                 },
                                 {
                                    "name" : "partneruserparam_hashalgo"
                                 },
                                 {
                                    "name" : "partneruserparam_hashdelay"
                                 },
                                 {
                                    "name" : "partneruserparam_pattern"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "Y",
                                       "1",
                                       "carte",
                                       "N",
                                       "carte",
                                       "{}",
                                       "3",
                                       "1",
                                       "Y",
                                       "N",
                                       0,
                                       "",
                                       "",
                                       ""
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new data provider parameter entry.",
            "tags" : [
               "Data Provider Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"partner-id=1777564992&partneruserparam-active=N&partneruserparam-archive=N&partneruserparam-collector=N&partneruserparam-depth=1&partneruserparam-desc=my%20description&partneruserparam-dtype=2&partneruserparam-expiredays=10&partneruserparam-hashalgo=sha256lctr&partneruserparam-hashdelay=10&partneruserparam-name=my-test-partneruserparam-name&partneruserparam-pattern=%5E%281%7C0%29%24%2F&partneruserparam-wmtime=N\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partneruserparam/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'partner-id' => '1777564992',\n'partneruserparam-active' => 'N',\n'partneruserparam-archive' => 'N',\n'partneruserparam-collector' => 'N',\n'partneruserparam-depth' => '1',\n'partneruserparam-desc' => 'my description',\n'partneruserparam-dtype' => '2',\n'partneruserparam-expiredays' => '10',\n'partneruserparam-hashalgo' => 'sha256lctr',\n'partneruserparam-hashdelay' => '10',\n'partneruserparam-name' => 'my-test-partneruserparam-name',\n'partneruserparam-pattern' => '^(1|0)$/',\n'partneruserparam-wmtime' => 'N'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partneruserparam/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partneruserparam/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('partner-id=1777564992&partneruserparam-active=N&partneruserparam-archive=N&partneruserparam-collector=N&partneruserparam-depth=1&partneruserparam-desc=my%20description&partneruserparam-dtype=2&partneruserparam-expiredays=10&partneruserparam-hashalgo=sha256lctr&partneruserparam-hashdelay=10&partneruserparam-name=my-test-partneruserparam-name&partneruserparam-pattern=%5E%281%7C0%29%24%2F&partneruserparam-wmtime=N');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'partner-id' : '1777564992',\n'partneruserparam-active' : 'N',\n'partneruserparam-archive' : 'N',\n'partneruserparam-collector' : 'N',\n'partneruserparam-depth' : '1',\n'partneruserparam-desc' : 'my%20description',\n'partneruserparam-dtype' : '2',\n'partneruserparam-expiredays' : '10',\n'partneruserparam-hashalgo' : 'sha256lctr',\n'partneruserparam-hashdelay' : '10',\n'partneruserparam-name' : 'my-test-partneruserparam-name',\n'partneruserparam-pattern' : '%5E%281%7C0%29%24%2F',\n'partneruserparam-wmtime' : 'N'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/partneruserparam/exists.json" : {
         "get" : {
            "description" : "This query will check if a partneruserparam-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=partneruserparam&method=exists"
            },
            "operationId" : "existsDataProviderParameters",
            "parameters" : [
               {
                  "description" : "name of the data provider parameter to check",
                  "example" : "my-test-partneruserparam",
                  "in" : "query",
                  "name" : "partneruserparam-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "partneruserparam_dtype"
                                 },
                                 {
                                    "name" : "partneruserparam_active"
                                 },
                                 {
                                    "name" : "partneruserparam_id"
                                 },
                                 {
                                    "name" : "partneruserparam_desc"
                                 },
                                 {
                                    "name" : "partneruserparam_archive"
                                 },
                                 {
                                    "name" : "partneruserparam_name"
                                 },
                                 {
                                    "name" : "partneruserparam_uiconfig"
                                 },
                                 {
                                    "name" : "partneruserparam_depth"
                                 },
                                 {
                                    "name" : "partner_id"
                                 },
                                 {
                                    "name" : "partneruserparam_collector"
                                 },
                                 {
                                    "name" : "partneruserparam_expiredays"
                                 },
                                 {
                                    "name" : "partneruserparam_wmtime"
                                 },
                                 {
                                    "name" : "partneruserparam_hashalgo"
                                 },
                                 {
                                    "name" : "partneruserparam_hashdelay"
                                 },
                                 {
                                    "name" : "partneruserparam_pattern"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "Y",
                                       "1",
                                       "carte",
                                       "N",
                                       "carte",
                                       "{}",
                                       "3",
                                       "1",
                                       "Y",
                                       "N",
                                       0,
                                       "",
                                       "",
                                       ""
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a partneruserparam-name exists",
            "tags" : [
               "Data Provider Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partneruserparam/exists.json?partneruserparam-name=my-test-partneruserparam\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partneruserparam/exists.json?partneruserparam-name=my-test-partneruserparam',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partneruserparam/exists.json?partneruserparam-name=my-test-partneruserparam');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'partneruserparam-name=my-test-partneruserparam'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partneruserparam/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/partneruserparam/lookup.json" : {
         "get" : {
            "description" : "This query will check in the system where the given data provider parameter is used.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=partneruserparam&method=lookup"
            },
            "operationId" : "lookupDataProviderParameters",
            "parameters" : [
               {
                  "description" : "indicate to limit the search to a specific class of parameters, you can provide multiple classes by using commas. eg: dataconnector,coldebmdb",
                  "example" : "dataconnector",
                  "in" : "query",
                  "name" : "class",
                  "schema" : {
                     "enum" : [
                        "ergmacrotemplate",
                        "opedataparam",
                        "tpcreativeengine",
                        "collectorconfigmthandler",
                        "dataconnector",
                        "clustervalue",
                        "denysitecentric",
                        "clickdispatcher",
                        "view",
                        "tpcampaignelttargeting",
                        "campaignelttargeting",
                        "ebmdb",
                        "coldebmdb"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "default" : "param,rule",
                  "description" : "indicate to limit the search to a specific context, you can provide multiple context by using commas. eg: param,rule",
                  "example" : "param",
                  "in" : "query",
                  "name" : "context",
                  "schema" : {
                     "enum" : [
                        "param",
                        "rule"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the data provider parameter for which you want to do the lookup.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "partneruserparam-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "context"
                                 },
                                 {
                                    "name" : "id"
                                 },
                                 {
                                    "name" : "name"
                                 },
                                 {
                                    "name" : "class"
                                 },
                                 {
                                    "name" : "type"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "param",
                                    "6931",
                                    "TV_DEPAT_IDF",
                                    "coldebmdb",
                                    "param"
                                 ],
                                 [
                                    "rule",
                                    "481",
                                    "TV",
                                    "ebmdbreq",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Lookup the usage of the data provider parameter.",
            "tags" : [
               "Data Provider Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partneruserparam/lookup.json?class=dataconnector&context=param&partneruserparam-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partneruserparam/lookup.json?class=dataconnector&context=param&partneruserparam-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partneruserparam/lookup.json?class=dataconnector&context=param&partneruserparam-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'class=dataconnector&context=param&partneruserparam-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partneruserparam/lookup.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/partneruserparam/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=partneruserparam&method=search"
            },
            "operationId" : "searchDataProviderParameters",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the data provider parameter",
                  "example" : "my-test-partneruserparam",
                  "in" : "query",
                  "name" : "partneruserparam-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "partneruserparam-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "partneruserparam_dtype"
                                 },
                                 {
                                    "name" : "partneruserparam_active"
                                 },
                                 {
                                    "name" : "partneruserparam_id"
                                 },
                                 {
                                    "name" : "partneruserparam_desc"
                                 },
                                 {
                                    "name" : "partneruserparam_archive"
                                 },
                                 {
                                    "name" : "partneruserparam_name"
                                 },
                                 {
                                    "name" : "partneruserparam_uiconfig"
                                 },
                                 {
                                    "name" : "partneruserparam_depth"
                                 },
                                 {
                                    "name" : "partner_id"
                                 },
                                 {
                                    "name" : "partneruserparam_collector"
                                 },
                                 {
                                    "name" : "partneruserparam_expiredays"
                                 },
                                 {
                                    "name" : "partneruserparam_wmtime"
                                 },
                                 {
                                    "name" : "partneruserparam_hashalgo"
                                 },
                                 {
                                    "name" : "partneruserparam_hashdelay"
                                 },
                                 {
                                    "name" : "partneruserparam_pattern"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "Y",
                                       "1",
                                       "carte",
                                       "N",
                                       "carte",
                                       "{}",
                                       "3",
                                       "1",
                                       "Y",
                                       "N",
                                       0,
                                       "",
                                       "",
                                       ""
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Data Provider Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partneruserparam/search.json?dir=DESC&limit=25&partneruserparam-name=my-test-partneruserparam&partneruserparam-name-exact=1&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partneruserparam/search.json?dir=DESC&limit=25&partneruserparam-name=my-test-partneruserparam&partneruserparam-name-exact=1&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partneruserparam/search.json?dir=DESC&limit=25&partneruserparam-name=my-test-partneruserparam&partneruserparam-name-exact=1&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&partneruserparam-name=my-test-partneruserparam&partneruserparam-name-exact=1&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partneruserparam/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/partneruserparam/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing data provider parameter.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=partneruserparam&method=update"
            },
            "operationId" : "updateDataProviderParameters",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the data provider parameter for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "partneruserparam-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new data provider parameter name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "partneruserparam-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : 0,
                  "description" : "the data typing of the data provider parameter as listed in the above description.",
                  "example" : 2,
                  "in" : "query",
                  "name" : "partneruserparam-dtype",
                  "schema" : {
                     "enum" : [
                        "0",
                        "1",
                        "2",
                        "3"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y / N flag indicating if the data collection is made in realtime or through async file.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "partneruserparam-collector",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the depth level of this data provider parameter.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "partneruserparam-depth",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y / N flag indicating if the parameter is active or not.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "partneruserparam-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "description of the data provider name",
                  "example" : "my description",
                  "in" : "query",
                  "name" : "partneruserparam-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Y / N flag indicating if we need to track modification time on the data provider parameter.",
                  "example" : "N",
                  "in" : "query",
                  "name" : "partneruserparam-wmtime",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "when partneruserparam_mtime is set to Y, provide the number of days for which the data will be deleted for the current user.",
                  "example" : 10,
                  "in" : "query",
                  "name" : "partneruserparam-expiredays",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "hashing algorithm to apply",
                  "example" : "sha256lctr",
                  "in" : "query",
                  "name" : "partneruserparam-hashalgo",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "number of days from which hashing is to be applied.",
                  "example" : 10,
                  "in" : "query",
                  "name" : "partneruserparam-hashdelay",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "provide a regexp that must match the value, you can invert with a prefixed ! (ex: !^(1|0)$ match all except 1 or 0)",
                  "example" : "^(1|0)$/",
                  "in" : "query",
                  "name" : "partneruserparam-pattern",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "partneruserparam_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchDataProviderParameters" : {
                        "description" : "Use the value of partneruserparam_id entry to update a partneruserparam through partneruserparam-id parameter.",
                        "operationId" : "searchDataProviderParameters",
                        "parameters" : {
                           "partneruserparam-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing data provider parameter.",
            "tags" : [
               "Data Provider Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"partneruserparam-active=N&partneruserparam-collector=N&partneruserparam-depth=1&partneruserparam-desc=my%20description&partneruserparam-dtype=2&partneruserparam-expiredays=10&partneruserparam-hashalgo=sha256lctr&partneruserparam-hashdelay=10&partneruserparam-id=1777564992&partneruserparam-name=New%20name&partneruserparam-pattern=%5E%281%7C0%29%24%2F&partneruserparam-wmtime=N\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partneruserparam/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'partneruserparam-active' => 'N',\n'partneruserparam-collector' => 'N',\n'partneruserparam-depth' => '1',\n'partneruserparam-desc' => 'my description',\n'partneruserparam-dtype' => '2',\n'partneruserparam-expiredays' => '10',\n'partneruserparam-hashalgo' => 'sha256lctr',\n'partneruserparam-hashdelay' => '10',\n'partneruserparam-id' => '1777564992',\n'partneruserparam-name' => 'New name',\n'partneruserparam-pattern' => '^(1|0)$/',\n'partneruserparam-wmtime' => 'N'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partneruserparam/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/partneruserparam/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('partneruserparam-active=N&partneruserparam-collector=N&partneruserparam-depth=1&partneruserparam-desc=my%20description&partneruserparam-dtype=2&partneruserparam-expiredays=10&partneruserparam-hashalgo=sha256lctr&partneruserparam-hashdelay=10&partneruserparam-id=1777564992&partneruserparam-name=New%20name&partneruserparam-pattern=%5E%281%7C0%29%24%2F&partneruserparam-wmtime=N');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'partneruserparam-active' : 'N',\n'partneruserparam-collector' : 'N',\n'partneruserparam-depth' : '1',\n'partneruserparam-desc' : 'my%20description',\n'partneruserparam-dtype' : '2',\n'partneruserparam-expiredays' : '10',\n'partneruserparam-hashalgo' : 'sha256lctr',\n'partneruserparam-hashdelay' : '10',\n'partneruserparam-id' : '1777564992',\n'partneruserparam-name' : 'New%20name',\n'partneruserparam-pattern' : '%5E%281%7C0%29%24%2F',\n'partneruserparam-wmtime' : 'N'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/product/get_params_by_ref.json" : {
         "get" : {
            "description" : "Given a product reference, this query allows to return all the parameters associated with it.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=product&method=get_params_by_ref"
            },
            "operationId" : "getParamsByRefProduct",
            "parameters" : [
               {
                  "description" : "reference of the product for which you want the parameters",
                  "example" : "PRDCT-12345",
                  "in" : "query",
                  "name" : "product-ref",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "productparam_name"
                                 },
                                 {
                                    "name" : "productparam_value"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "MEAkelkoo",
                                    null
                                 ],
                                 [
                                    "MEA",
                                    "1"
                                 ],
                                 [
                                    "brand",
                                    "Le Coq Sportif"
                                 ],
                                 [
                                    "MEAshopzilla",
                                    "1"
                                 ],
                                 [
                                    "taille",
                                    "Disponible en : S = 8-10 ans, M = 10-12 ans, L = 12-14 ans, XL = 14-16 ans, "
                                 ],
                                 [
                                    "weight",
                                    "0"
                                 ],
                                 [
                                    "prix_barre",
                                    "20"
                                 ],
                                 [
                                    "MEARDC",
                                    null
                                 ],
                                 [
                                    "type_promotion",
                                    null
                                 ],
                                 [
                                    "model_number",
                                    "INDIGO-SILVER"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 10
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get params for a product reference.",
            "tags" : [
               "Product"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/product/get_params_by_ref.json?product-ref=PRDCT-12345\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/product/get_params_by_ref.json?product-ref=PRDCT-12345',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/product/get_params_by_ref.json?product-ref=PRDCT-12345');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'product-ref=PRDCT-12345'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/product/get_params_by_ref.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/product/offline.json" : {
         "get" : {
            "description" : "Given a list of product reference, this query will set them to offline. Maximum 100 product reference per call.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=product&method=offline"
            },
            "operationId" : "offlineProduct",
            "parameters" : [
               {
                  "description" : "reference of the product you want to set offline",
                  "example" : "PRDCT-12345,PRDCT-987654,PRDCT-321659",
                  "in" : "query",
                  "name" : "product-ref",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Set one or more products offline",
            "tags" : [
               "Product"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/product/offline.json?product-ref=PRDCT-12345%2CPRDCT-987654%2CPRDCT-321659\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/product/offline.json?product-ref=PRDCT-12345,PRDCT-987654,PRDCT-321659',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/product/offline.json?product-ref=PRDCT-12345,PRDCT-987654,PRDCT-321659');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'product-ref=PRDCT-12345%2CPRDCT-987654%2CPRDCT-321659'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/product/offline.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/product/online.json" : {
         "get" : {
            "description" : "Given a list of product reference, this query will set them to online. Maximum 100 product reference per call.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=product&method=online"
            },
            "operationId" : "onlineProduct",
            "parameters" : [
               {
                  "description" : "reference of the product you want to set online",
                  "example" : "PRDCT-12345,PRDCT-987654,PRDCT-321659",
                  "in" : "query",
                  "name" : "product-ref",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Set one or more products online",
            "tags" : [
               "Product"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/product/online.json?product-ref=PRDCT-12345%2CPRDCT-987654%2CPRDCT-321659\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/product/online.json?product-ref=PRDCT-12345,PRDCT-987654,PRDCT-321659',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/product/online.json?product-ref=PRDCT-12345,PRDCT-987654,PRDCT-321659');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'product-ref=PRDCT-12345%2CPRDCT-987654%2CPRDCT-321659'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/product/online.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/productparam/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new productparam.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=productparam&method=create"
            },
            "operationId" : "createProductParameters",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the productparam",
                  "example" : "my-test-productparam-name",
                  "in" : "query",
                  "name" : "productparam-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate the description of the productparam",
                  "example" : "my desc",
                  "in" : "query",
                  "name" : "productparam-description",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "boolean indicating if the product parameter can be used in the analytics reports for segmentation.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "productparam-reportable",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "boolean indicating if the product parameter can be used in the DMP & audience engine reports.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "productparam-ebmdbable",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "boolean indicating if the product parameter can be used in the Merchandiser.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "productparam-merchandiser",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "productparam_id"
                                 },
                                 {
                                    "name" : "productparam_name"
                                 },
                                 {
                                    "name" : "productparam_description"
                                 },
                                 {
                                    "name" : "productparam_reportable"
                                 },
                                 {
                                    "name" : "productparam_exportable"
                                 },
                                 {
                                    "name" : "productparam_ebmdbable"
                                 },
                                 {
                                    "name" : "productparam_merchandiser"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "category",
                                    "Categories",
                                    "Y",
                                    "N",
                                    "Y",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new productparam entry.",
            "tags" : [
               "Product Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"productparam-description=my%20desc&productparam-ebmdbable=Y&productparam-merchandiser=Y&productparam-name=my-test-productparam-name&productparam-reportable=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/productparam/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'productparam-description' => 'my desc',\n'productparam-ebmdbable' => 'Y',\n'productparam-merchandiser' => 'Y',\n'productparam-name' => 'my-test-productparam-name',\n'productparam-reportable' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/productparam/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/productparam/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('productparam-description=my%20desc&productparam-ebmdbable=Y&productparam-merchandiser=Y&productparam-name=my-test-productparam-name&productparam-reportable=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'productparam-description' : 'my%20desc',\n'productparam-ebmdbable' : 'Y',\n'productparam-merchandiser' : 'Y',\n'productparam-name' : 'my-test-productparam-name',\n'productparam-reportable' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/productparam/exists.json" : {
         "get" : {
            "description" : "This query will check if a productparam-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=productparam&method=exists"
            },
            "operationId" : "existsProductParameters",
            "parameters" : [
               {
                  "description" : "name of the productparam to check",
                  "example" : "my-test-productparam",
                  "in" : "query",
                  "name" : "productparam-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "productparam_id"
                                 },
                                 {
                                    "name" : "productparam_name"
                                 },
                                 {
                                    "name" : "productparam_description"
                                 },
                                 {
                                    "name" : "productparam_reportable"
                                 },
                                 {
                                    "name" : "productparam_exportable"
                                 },
                                 {
                                    "name" : "productparam_ebmdbable"
                                 },
                                 {
                                    "name" : "productparam_merchandiser"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "category",
                                    "Categories",
                                    "Y",
                                    "N",
                                    "Y",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a productparam-name exists",
            "tags" : [
               "Product Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/productparam/exists.json?productparam-name=my-test-productparam\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/productparam/exists.json?productparam-name=my-test-productparam',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/productparam/exists.json?productparam-name=my-test-productparam');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'productparam-name=my-test-productparam'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/productparam/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/productparam/lookup.json" : {
         "get" : {
            "description" : "This query will check in the system where the given productparam parameter is used.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=productparam&method=lookup"
            },
            "operationId" : "lookupProductParameters",
            "parameters" : [
               {
                  "description" : "indicate to limit the search to a specific class of parameters, you can provide multiple classes by using commas. eg: dataconnector,coldebmdb",
                  "example" : "dataconnector",
                  "in" : "query",
                  "name" : "class",
                  "schema" : {
                     "enum" : [
                        "ergmacrotemplate",
                        "opedataparam",
                        "tpcreativeengine",
                        "collectorconfigmthandler",
                        "dataconnector",
                        "clustervalue",
                        "denysitecentric",
                        "clickdispatcher",
                        "view",
                        "tpcampaignelttargeting",
                        "campaignelttargeting",
                        "ebmdb",
                        "coldebmdb"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "default" : "param,rule",
                  "description" : "indicate to limit the search to a specific context, you can provide multiple context by using commas. eg: param,rule",
                  "example" : "param",
                  "in" : "query",
                  "name" : "context",
                  "schema" : {
                     "enum" : [
                        "param",
                        "rule"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the productparam parameter for which you want to do the lookup.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "productparam-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "context"
                                 },
                                 {
                                    "name" : "id"
                                 },
                                 {
                                    "name" : "name"
                                 },
                                 {
                                    "name" : "class"
                                 },
                                 {
                                    "name" : "type"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "param",
                                    "6931",
                                    "TV_DEPAT_IDF",
                                    "coldebmdb",
                                    "param"
                                 ],
                                 [
                                    "rule",
                                    "481",
                                    "TV",
                                    "ebmdbreq",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Lookup the usage of the productparam parameter.",
            "tags" : [
               "Product Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/productparam/lookup.json?class=dataconnector&context=param&productparam-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/productparam/lookup.json?class=dataconnector&context=param&productparam-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/productparam/lookup.json?class=dataconnector&context=param&productparam-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'class=dataconnector&context=param&productparam-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/productparam/lookup.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/productparam/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=productparam&method=search"
            },
            "operationId" : "searchProductParameters",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "set to Y to filter on ebmdbable parameters.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "productparam-ebmdbable",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y to filter on merchandiser parameters.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "productparam-merchandiser",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the productparam",
                  "example" : "my-test-productparam",
                  "in" : "query",
                  "name" : "productparam-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "productparam-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y to filter on reportable parameters.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "productparam-reportable",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "productparam_id"
                                 },
                                 {
                                    "name" : "productparam_name"
                                 },
                                 {
                                    "name" : "productparam_description"
                                 },
                                 {
                                    "name" : "productparam_reportable"
                                 },
                                 {
                                    "name" : "productparam_exportable"
                                 },
                                 {
                                    "name" : "productparam_ebmdbable"
                                 },
                                 {
                                    "name" : "productparam_merchandiser"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "category",
                                    "Categories",
                                    "Y",
                                    "N",
                                    "Y",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Product Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/productparam/search.json?dir=DESC&limit=25&productparam-ebmdbable=Y&productparam-merchandiser=Y&productparam-name=my-test-productparam&productparam-name-exact=1&productparam-reportable=Y&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/productparam/search.json?dir=DESC&limit=25&productparam-ebmdbable=Y&productparam-merchandiser=Y&productparam-name=my-test-productparam&productparam-name-exact=1&productparam-reportable=Y&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/productparam/search.json?dir=DESC&limit=25&productparam-ebmdbable=Y&productparam-merchandiser=Y&productparam-name=my-test-productparam&productparam-name-exact=1&productparam-reportable=Y&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&productparam-ebmdbable=Y&productparam-merchandiser=Y&productparam-name=my-test-productparam&productparam-name-exact=1&productparam-reportable=Y&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/productparam/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/productparam/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing productparam.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=productparam&method=update"
            },
            "operationId" : "updateProductParameters",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the productparam for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "productparam-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new productparam name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "productparam-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate the description of the productparam",
                  "example" : "my desc",
                  "in" : "query",
                  "name" : "productparam-description",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "boolean indicating if the product parameter can be used in the analytics reports for segmentation.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "productparam-reportable",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "boolean indicating if the product parameter can be used in the DMP & audience engine reports.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "productparam-ebmdbable",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "boolean indicating if the product parameter can be used in the Merchandiser.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "productparam-merchandiser",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "productparam_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchProductParameters" : {
                        "description" : "Use the value of productparam_id entry to update a productparam through productparam-id parameter.",
                        "operationId" : "searchProductParameters",
                        "parameters" : {
                           "productparam-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing productparam.",
            "tags" : [
               "Product Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"productparam-description=my%20desc&productparam-ebmdbable=Y&productparam-id=1777564992&productparam-merchandiser=Y&productparam-name=New%20name&productparam-reportable=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/productparam/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'productparam-description' => 'my desc',\n'productparam-ebmdbable' => 'Y',\n'productparam-id' => '1777564992',\n'productparam-merchandiser' => 'Y',\n'productparam-name' => 'New name',\n'productparam-reportable' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/productparam/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/productparam/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('productparam-description=my%20desc&productparam-ebmdbable=Y&productparam-id=1777564992&productparam-merchandiser=Y&productparam-name=New%20name&productparam-reportable=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'productparam-description' : 'my%20desc',\n'productparam-ebmdbable' : 'Y',\n'productparam-id' : '1777564992',\n'productparam-merchandiser' : 'Y',\n'productparam-name' : 'New%20name',\n'productparam-reportable' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/profile/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new profile.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=profile&method=create"
            },
            "operationId" : "createProfile",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the profile template",
                  "example" : "my-test-profile-name",
                  "in" : "query",
                  "name" : "profile-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate the weight of the profile, the profile are sorted by this value, a user cannot go back.",
                  "example" : 10,
                  "in" : "query",
                  "name" : "profile-weight",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "example" : "^/homepage$",
                  "in" : "query",
                  "name" : "profile-pattern",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "profile_id"
                                 },
                                 {
                                    "name" : "profile_name"
                                 },
                                 {
                                    "name" : "profile_weight"
                                 },
                                 {
                                    "name" : "profile_ergmask"
                                 },
                                 {
                                    "name" : "profile_pattern"
                                 },
                                 {
                                    "name" : "profile_visible"
                                 },
                                 {
                                    "name" : "profile_visitduration"
                                 },
                                 {
                                    "name" : "profile_pagenb"
                                 },
                                 {
                                    "name" : "profile_visitnb"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "visitor",
                                    "1",
                                    "",
                                    "/homepage",
                                    "Y",
                                    0,
                                    0,
                                    0
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new profile entry.",
            "tags" : [
               "Profile"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"profile-name=my-test-profile-name&profile-pattern=%5E%2Fhomepage%24&profile-weight=10\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/profile/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'profile-name' => 'my-test-profile-name',\n'profile-pattern' => '^/homepage$',\n'profile-weight' => '10'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/profile/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/profile/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('profile-name=my-test-profile-name&profile-pattern=%5E%2Fhomepage%24&profile-weight=10');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'profile-name' : 'my-test-profile-name',\n'profile-pattern' : '%5E%2Fhomepage%24',\n'profile-weight' : '10'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/profile/exists.json" : {
         "get" : {
            "description" : "This query will check if a profile-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=profile&method=exists"
            },
            "operationId" : "existsProfile",
            "parameters" : [
               {
                  "description" : "name of the profile to check",
                  "example" : "my-test-profile",
                  "in" : "query",
                  "name" : "profile-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "profile_id"
                                 },
                                 {
                                    "name" : "profile_name"
                                 },
                                 {
                                    "name" : "profile_weight"
                                 },
                                 {
                                    "name" : "profile_ergmask"
                                 },
                                 {
                                    "name" : "profile_pattern"
                                 },
                                 {
                                    "name" : "profile_visible"
                                 },
                                 {
                                    "name" : "profile_visitduration"
                                 },
                                 {
                                    "name" : "profile_pagenb"
                                 },
                                 {
                                    "name" : "profile_visitnb"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "visitor",
                                    "1",
                                    "",
                                    "/homepage",
                                    "Y",
                                    0,
                                    0,
                                    0
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a profile-name exists",
            "tags" : [
               "Profile"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/profile/exists.json?profile-name=my-test-profile\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/profile/exists.json?profile-name=my-test-profile',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/profile/exists.json?profile-name=my-test-profile');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'profile-name=my-test-profile'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/profile/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/profile/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=profile&method=search"
            },
            "operationId" : "searchProfile",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the profile",
                  "example" : "my-test-profile",
                  "in" : "query",
                  "name" : "profile-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "profile-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "LIKE search on pattern",
                  "example" : "Test",
                  "in" : "query",
                  "name" : "profile-pattern",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on visible flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "profile-visible",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "weight of the profile",
                  "example" : 2,
                  "in" : "query",
                  "name" : "profile-weight",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "profile_id"
                                 },
                                 {
                                    "name" : "profile_name"
                                 },
                                 {
                                    "name" : "profile_weight"
                                 },
                                 {
                                    "name" : "profile_ergmask"
                                 },
                                 {
                                    "name" : "profile_pattern"
                                 },
                                 {
                                    "name" : "profile_visible"
                                 },
                                 {
                                    "name" : "profile_visitduration"
                                 },
                                 {
                                    "name" : "profile_pagenb"
                                 },
                                 {
                                    "name" : "profile_visitnb"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "visitor",
                                    "1",
                                    "",
                                    "/homepage",
                                    "Y",
                                    0,
                                    0,
                                    0
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Profile"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/profile/search.json?dir=DESC&limit=25&profile-name=my-test-profile&profile-name-exact=1&profile-pattern=Test&profile-visible=Y&profile-weight=2&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/profile/search.json?dir=DESC&limit=25&profile-name=my-test-profile&profile-name-exact=1&profile-pattern=Test&profile-visible=Y&profile-weight=2&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/profile/search.json?dir=DESC&limit=25&profile-name=my-test-profile&profile-name-exact=1&profile-pattern=Test&profile-visible=Y&profile-weight=2&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&profile-name=my-test-profile&profile-name-exact=1&profile-pattern=Test&profile-visible=Y&profile-weight=2&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/profile/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/profile/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing profile.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=profile&method=update"
            },
            "operationId" : "updateProfile",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the profile for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "profile-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new profile name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "profile-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new profile pattern",
                  "example" : "^/home$",
                  "in" : "query",
                  "name" : "profile-pattern",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "weight of the profile",
                  "example" : 2,
                  "in" : "query",
                  "name" : "profile-weight",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the visible attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "profile-visible",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate the duration in seconds at which the profile is attributed",
                  "example" : 5,
                  "in" : "query",
                  "name" : "profile-visitduration",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate the number of pages at which the profile is attributed",
                  "example" : 5,
                  "in" : "query",
                  "name" : "profile-pagenb",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate the number of visits at which the profile is attributed",
                  "example" : 5,
                  "in" : "query",
                  "name" : "profile-visitnb",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "profile_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchProfile" : {
                        "description" : "Use the value of profile_id entry to update a profile through profile-id parameter.",
                        "operationId" : "searchProfile",
                        "parameters" : {
                           "profile-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing profile.",
            "tags" : [
               "Profile"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"profile-id=1777564992&profile-name=New%20name&profile-pagenb=5&profile-pattern=%5E%2Fhome%24&profile-visible=Y&profile-visitduration=5&profile-visitnb=5&profile-weight=2\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/profile/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'profile-id' => '1777564992',\n'profile-name' => 'New name',\n'profile-pagenb' => '5',\n'profile-pattern' => '^/home$',\n'profile-visible' => 'Y',\n'profile-visitduration' => '5',\n'profile-visitnb' => '5',\n'profile-weight' => '2'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/profile/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/profile/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('profile-id=1777564992&profile-name=New%20name&profile-pagenb=5&profile-pattern=%5E%2Fhome%24&profile-visible=Y&profile-visitduration=5&profile-visitnb=5&profile-weight=2');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'profile-id' : '1777564992',\n'profile-name' : 'New%20name',\n'profile-pagenb' : '5',\n'profile-pattern' : '%5E%2Fhome%24',\n'profile-visible' : 'Y',\n'profile-visitduration' : '5',\n'profile-visitnb' : '5',\n'profile-weight' : '2'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/publisher/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new publisher.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=publisher&method=create"
            },
            "operationId" : "createPublisher",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the publisher",
                  "example" : "my-test-publisher-name",
                  "in" : "query",
                  "name" : "publisher-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "publisher_url"
                                 },
                                 {
                                    "name" : "email_id"
                                 },
                                 {
                                    "name" : "publisher_phone"
                                 },
                                 {
                                    "name" : "publisher_archive"
                                 },
                                 {
                                    "name" : "publisher_fname"
                                 },
                                 {
                                    "name" : "publisher_servable"
                                 },
                                 {
                                    "name" : "publisher_name"
                                 },
                                 {
                                    "name" : "publisher_comment"
                                 },
                                 {
                                    "name" : "publisher_fname"
                                 },
                                 {
                                    "name" : "publisher_id"
                                 },
                                 {
                                    "name" : "publisher_email_addon"
                                 }
                              ],
                              "rows" : [
                                 [
                                    null,
                                    null,
                                    null,
                                    null,
                                    "N",
                                    null,
                                    "N",
                                    "Voyagez-Moins-Cher",
                                    null,
                                    null,
                                    "1",
                                    null
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new publisher.",
            "tags" : [
               "Publisher"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"publisher-name=my-test-publisher-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/publisher/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'publisher-name' => 'my-test-publisher-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/publisher/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/publisher/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('publisher-name=my-test-publisher-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'publisher-name' : 'my-test-publisher-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/publisher/exists.json" : {
         "get" : {
            "description" : "This query will check if a publisher name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=publisher&method=exists"
            },
            "operationId" : "existsPublisher",
            "parameters" : [
               {
                  "description" : "name of the publisher to check",
                  "example" : "my-test-publisher",
                  "in" : "query",
                  "name" : "publisher-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "publisher_url"
                                 },
                                 {
                                    "name" : "email_id"
                                 },
                                 {
                                    "name" : "publisher_phone"
                                 },
                                 {
                                    "name" : "publisher_archive"
                                 },
                                 {
                                    "name" : "publisher_fname"
                                 },
                                 {
                                    "name" : "publisher_servable"
                                 },
                                 {
                                    "name" : "publisher_name"
                                 },
                                 {
                                    "name" : "publisher_comment"
                                 },
                                 {
                                    "name" : "publisher_fname"
                                 },
                                 {
                                    "name" : "publisher_id"
                                 },
                                 {
                                    "name" : "publisher_email_addon"
                                 }
                              ],
                              "rows" : [
                                 [
                                    null,
                                    null,
                                    null,
                                    null,
                                    "N",
                                    null,
                                    "N",
                                    "Voyagez-Moins-Cher",
                                    null,
                                    null,
                                    "1",
                                    null
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a publisher exists",
            "tags" : [
               "Publisher"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/publisher/exists.json?publisher-name=my-test-publisher\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/publisher/exists.json?publisher-name=my-test-publisher',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/publisher/exists.json?publisher-name=my-test-publisher');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'publisher-name=my-test-publisher'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/publisher/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/publisher/get_publisher_by_location.json" : {
         "get" : {
            "description" : "Given a location-id or a location-name return the list of publishers linked to them.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=publisher&method=get_publisher_by_location"
            },
            "operationId" : "getPublisherByLocationPublisher",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "id of the location. You can search for multiple ids by using pipes, eg: location-id=123|78|34",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "location-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the location. You can search for multiple names by using pipes, eg: location-name=test1|test3|placement10",
                  "example" : "placement-468x790",
                  "in" : "query",
                  "name" : "location-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "publisher_url"
                                 },
                                 {
                                    "name" : "email_id"
                                 },
                                 {
                                    "name" : "publisher_phone"
                                 },
                                 {
                                    "name" : "publisher_archive"
                                 },
                                 {
                                    "name" : "publisher_fname"
                                 },
                                 {
                                    "name" : "publisher_servable"
                                 },
                                 {
                                    "name" : "publisher_name"
                                 },
                                 {
                                    "name" : "publisher_comment"
                                 },
                                 {
                                    "name" : "publisher_fname"
                                 },
                                 {
                                    "name" : "publisher_id"
                                 },
                                 {
                                    "name" : "publisher_email_addon"
                                 }
                              ],
                              "rows" : [
                                 [
                                    null,
                                    null,
                                    null,
                                    null,
                                    "N",
                                    null,
                                    "N",
                                    "Voyagez-Moins-Cher",
                                    null,
                                    null,
                                    "1",
                                    null
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get publishers linked to location.",
            "tags" : [
               "Publisher"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/publisher/get_publisher_by_location.json?dir=DESC&limit=25&location-id=1777564992&location-name=placement-468x790&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/publisher/get_publisher_by_location.json?dir=DESC&limit=25&location-id=1777564992&location-name=placement-468x790&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/publisher/get_publisher_by_location.json?dir=DESC&limit=25&location-id=1777564992&location-name=placement-468x790&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&location-id=1777564992&location-name=placement-468x790&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/publisher/get_publisher_by_location.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/publisher/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=publisher&method=search"
            },
            "operationId" : "searchPublisher",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "set to Y or N to filter on archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "publisher-archive",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "first name of the publisher",
                  "example" : "my-test-publisher-fname",
                  "in" : "query",
                  "name" : "publisher-fname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "publisher-fname-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "last name of the publisher",
                  "example" : "my-test-publisher-lname",
                  "in" : "query",
                  "name" : "publisher-lname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "publisher-lname-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the publisher",
                  "example" : "my-test-publisher",
                  "in" : "query",
                  "name" : "publisher-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "publisher-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "phone of the publisher",
                  "example" : "my-test-publisher-phone",
                  "in" : "query",
                  "name" : "publisher-phone",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "publisher-phone-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on servable flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "publisher-servable",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "publisher_url"
                                 },
                                 {
                                    "name" : "email_id"
                                 },
                                 {
                                    "name" : "publisher_phone"
                                 },
                                 {
                                    "name" : "publisher_archive"
                                 },
                                 {
                                    "name" : "publisher_fname"
                                 },
                                 {
                                    "name" : "publisher_servable"
                                 },
                                 {
                                    "name" : "publisher_name"
                                 },
                                 {
                                    "name" : "publisher_comment"
                                 },
                                 {
                                    "name" : "publisher_fname"
                                 },
                                 {
                                    "name" : "publisher_id"
                                 },
                                 {
                                    "name" : "publisher_email_addon"
                                 }
                              ],
                              "rows" : [
                                 [
                                    null,
                                    null,
                                    null,
                                    null,
                                    "N",
                                    null,
                                    "N",
                                    "Voyagez-Moins-Cher",
                                    null,
                                    null,
                                    "1",
                                    null
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Publisher"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/publisher/search.json?dir=DESC&limit=25&publisher-archive=Y&publisher-fname=my-test-publisher-fname&publisher-fname-exact=1&publisher-lname=my-test-publisher-lname&publisher-lname-exact=1&publisher-name=my-test-publisher&publisher-name-exact=1&publisher-phone=my-test-publisher-phone&publisher-phone-exact=1&publisher-servable=Y&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/publisher/search.json?dir=DESC&limit=25&publisher-archive=Y&publisher-fname=my-test-publisher-fname&publisher-fname-exact=1&publisher-lname=my-test-publisher-lname&publisher-lname-exact=1&publisher-name=my-test-publisher&publisher-name-exact=1&publisher-phone=my-test-publisher-phone&publisher-phone-exact=1&publisher-servable=Y&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/publisher/search.json?dir=DESC&limit=25&publisher-archive=Y&publisher-fname=my-test-publisher-fname&publisher-fname-exact=1&publisher-lname=my-test-publisher-lname&publisher-lname-exact=1&publisher-name=my-test-publisher&publisher-name-exact=1&publisher-phone=my-test-publisher-phone&publisher-phone-exact=1&publisher-servable=Y&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&publisher-archive=Y&publisher-fname=my-test-publisher-fname&publisher-fname-exact=1&publisher-lname=my-test-publisher-lname&publisher-lname-exact=1&publisher-name=my-test-publisher&publisher-name-exact=1&publisher-phone=my-test-publisher-phone&publisher-phone-exact=1&publisher-servable=Y&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/publisher/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/publisher/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing publisher.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=publisher&method=update"
            },
            "operationId" : "updatePublisher",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the publisher for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "publisher-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new publisher name",
                  "example" : "New-name",
                  "in" : "query",
                  "name" : "publisher-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new first name of the publisher",
                  "example" : "my-test-publisher-fname",
                  "in" : "query",
                  "name" : "publisher-fname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new last name of the publisher",
                  "example" : "my-test-publisher-lname",
                  "in" : "query",
                  "name" : "publisher-lname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new phone of the publisher",
                  "example" : "my-test-publisher-phone",
                  "in" : "query",
                  "name" : "publisher-phone",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "publisher-archive",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on servable flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "publisher-servable",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "publisher_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchPublisher" : {
                        "description" : "Use the value of publisher_id entry to update a publisher through publisher-id parameter.",
                        "operationId" : "searchPublisher",
                        "parameters" : {
                           "publisher-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing publisher.",
            "tags" : [
               "Publisher"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"publisher-archive=Y&publisher-fname=my-test-publisher-fname&publisher-id=1777564992&publisher-lname=my-test-publisher-lname&publisher-name=New-name&publisher-phone=my-test-publisher-phone&publisher-servable=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/publisher/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'publisher-archive' => 'Y',\n'publisher-fname' => 'my-test-publisher-fname',\n'publisher-id' => '1777564992',\n'publisher-lname' => 'my-test-publisher-lname',\n'publisher-name' => 'New-name',\n'publisher-phone' => 'my-test-publisher-phone',\n'publisher-servable' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/publisher/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/publisher/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('publisher-archive=Y&publisher-fname=my-test-publisher-fname&publisher-id=1777564992&publisher-lname=my-test-publisher-lname&publisher-name=New-name&publisher-phone=my-test-publisher-phone&publisher-servable=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'publisher-archive' : 'Y',\n'publisher-fname' : 'my-test-publisher-fname',\n'publisher-id' : '1777564992',\n'publisher-lname' : 'my-test-publisher-lname',\n'publisher-name' : 'New-name',\n'publisher-phone' : 'my-test-publisher-phone',\n'publisher-servable' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/redirectdomainallow/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new redirectdomainallow entry.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=redirectdomainallow&method=create"
            },
            "operationId" : "createRedirectDomainAllow",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the redirectdomainallow",
                  "example" : "my-test-redirectdomainallow-name",
                  "in" : "query",
                  "name" : "redirectdomainallow-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "pattern of the redirectdomainallow",
                  "example" : "%.my-partner-domain.com",
                  "in" : "query",
                  "name" : "redirectdomainallow-pattern",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "redirectdomainallow_id"
                                 },
                                 {
                                    "name" : "redirectdomainallow_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "46",
                                    "Test 1525126322"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new redirectdomainallow entry.",
            "tags" : [
               "RedirectDomainAllow"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"redirectdomainallow-name=my-test-redirectdomainallow-name&redirectdomainallow-pattern=%25.my-partner-domain.com\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/redirectdomainallow/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'redirectdomainallow-name' => 'my-test-redirectdomainallow-name',\n'redirectdomainallow-pattern' => '%.my-partner-domain.com'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/redirectdomainallow/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/redirectdomainallow/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('redirectdomainallow-name=my-test-redirectdomainallow-name&redirectdomainallow-pattern=%25.my-partner-domain.com');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'redirectdomainallow-name' : 'my-test-redirectdomainallow-name',\n'redirectdomainallow-pattern' : '%25.my-partner-domain.com'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/redirectdomainallow/exists.json" : {
         "get" : {
            "description" : "This query will check if a redirectdomainallow-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=redirectdomainallow&method=exists"
            },
            "operationId" : "existsRedirectDomainAllow",
            "parameters" : [
               {
                  "description" : "name of the redirectdomainallow to check",
                  "example" : "my-test-redirectdomainallow-name",
                  "in" : "query",
                  "name" : "redirectdomainallow-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "redirectdomainallow_name"
                                 },
                                 {
                                    "name" : "redirectdomainallow_id"
                                 },
                                 {
                                    "name" : "redirectdomainallow_pattern"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "Test ÃÂ¨ÃÂ¨ÃÂ¨r(\"\" 1525126113",
                                    "1",
                                    "http://www.test-1525126113.com"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a redirectdomainallow-name exists",
            "tags" : [
               "RedirectDomainAllow"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/redirectdomainallow/exists.json?redirectdomainallow-name=my-test-redirectdomainallow-name\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/redirectdomainallow/exists.json?redirectdomainallow-name=my-test-redirectdomainallow-name',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/redirectdomainallow/exists.json?redirectdomainallow-name=my-test-redirectdomainallow-name');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'redirectdomainallow-name=my-test-redirectdomainallow-name'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/redirectdomainallow/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/redirectdomainallow/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=redirectdomainallow&method=search"
            },
            "operationId" : "searchRedirectDomainAllow",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the redirectdomainallow",
                  "example" : "my-test-redirectdomainallow-name",
                  "in" : "query",
                  "name" : "redirectdomainallow-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "pattern of the redirectdomainallow",
                  "example" : "%.my-partner-domain.com",
                  "in" : "query",
                  "name" : "redirectdomainallow-pattern",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "redirectdomainallow_name"
                                 },
                                 {
                                    "name" : "redirectdomainallow_id"
                                 },
                                 {
                                    "name" : "redirectdomainallow_pattern"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "Test ÃÂ¨ÃÂ¨ÃÂ¨r(\"\" 1525126113",
                                    "1",
                                    "http://www.test-1525126113.com"
                                 ],
                                 [
                                    "Test ÃÂ¨ÃÂ¨ÃÂ¨r(\"\" 1525126200",
                                    "10",
                                    "http://www.test-1525126200.com"
                                 ],
                                 [
                                    "Test ÃÂ¨ÃÂ¨ÃÂ¨r(\"\" 1525126240",
                                    "19",
                                    "http://www.test-1525126240.com"
                                 ],
                                 [
                                    "Test ÃÂ¨ÃÂ¨ÃÂ¨r(\"\" 1525126262",
                                    "28",
                                    "http://www.test-1525126262.com"
                                 ],
                                 [
                                    "Test ÃÂ¨ÃÂ¨ÃÂ¨r(\"\" 1525126286",
                                    "37",
                                    "www.test-1525126286.com"
                                 ],
                                 [
                                    "Test 1525126322",
                                    "46",
                                    "http://www.test-1525126322.com"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 6
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "RedirectDomainAllow"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/redirectdomainallow/search.json?dir=DESC&limit=25&redirectdomainallow-name=my-test-redirectdomainallow-name&redirectdomainallow-pattern=%25.my-partner-domain.com&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/redirectdomainallow/search.json?dir=DESC&limit=25&redirectdomainallow-name=my-test-redirectdomainallow-name&redirectdomainallow-pattern=%.my-partner-domain.com&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/redirectdomainallow/search.json?dir=DESC&limit=25&redirectdomainallow-name=my-test-redirectdomainallow-name&redirectdomainallow-pattern=%.my-partner-domain.com&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&redirectdomainallow-name=my-test-redirectdomainallow-name&redirectdomainallow-pattern=%25.my-partner-domain.com&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/redirectdomainallow/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/redirectdomainallow/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing redirectdomainallow.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=redirectdomainallow&method=update"
            },
            "operationId" : "updateRedirectDomainAllow",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the redirectdomainallow for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "redirectdomainallow-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new redirectdomainallow name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "redirectdomainallow-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new redirectdomainallow pattern",
                  "example" : "New pattern",
                  "in" : "query",
                  "name" : "redirectdomainallow-pattern",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "redirectdomainallow_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchRedirectDomainAllow" : {
                        "description" : "Use the value of redirectdomainallow_id entry to update a redirectdomainallow through redirectdomainallow-id parameter.",
                        "operationId" : "searchRedirectDomainAllow",
                        "parameters" : {
                           "redirectdomainallow-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing redirectdomainallow.",
            "tags" : [
               "RedirectDomainAllow"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"redirectdomainallow-id=1777564992&redirectdomainallow-name=New%20name&redirectdomainallow-pattern=New%20pattern\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/redirectdomainallow/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'redirectdomainallow-id' => '1777564992',\n'redirectdomainallow-name' => 'New name',\n'redirectdomainallow-pattern' => 'New pattern'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/redirectdomainallow/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/redirectdomainallow/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('redirectdomainallow-id=1777564992&redirectdomainallow-name=New%20name&redirectdomainallow-pattern=New%20pattern');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'redirectdomainallow-id' : '1777564992',\n'redirectdomainallow-name' : 'New%20name',\n'redirectdomainallow-pattern' : 'New%20pattern'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/rootpublisher/exists.json" : {
         "get" : {
            "description" : "This query will check if a rootpublisher-name exists in the current website. We first check the exact match, if not found we check in lowercase. You can also provide a custom parameter to check to which partner publisher it is linked.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=rootpublisher&method=exists"
            },
            "operationId" : "existsPartnerPublisher",
            "parameters" : [
               {
                  "description" : "name of the custom parameters (cgiparam)",
                  "example" : "my-test-cgiparam",
                  "in" : "query",
                  "name" : "rootpublisher-cgiparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the rootpublisher to check",
                  "example" : "my-test-rootpublisher",
                  "in" : "query",
                  "name" : "rootpublisher-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "rootpublisher_id"
                                 },
                                 {
                                    "name" : "rootpublisher_name"
                                 },
                                 {
                                    "name" : "rootpublisher_cgiparam"
                                 },
                                 {
                                    "name" : "rootpublisher_shareable"
                                 },
                                 {
                                    "name" : "rootpublisher_e3rd"
                                 },
                                 {
                                    "name" : "rootpublisher_reverse"
                                 },
                                 {
                                    "name" : "rootpublisher_rpsetuserdata"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "8",
                                    "AppNexus",
                                    "apnxsid",
                                    "Y",
                                    "Y",
                                    "Y",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a rootpublisher-name / cgiparam exists",
            "tags" : [
               "Partner Publisher"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublisher/exists.json?rootpublisher-cgiparam=my-test-cgiparam&rootpublisher-name=my-test-rootpublisher\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublisher/exists.json?rootpublisher-cgiparam=my-test-cgiparam&rootpublisher-name=my-test-rootpublisher',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublisher/exists.json?rootpublisher-cgiparam=my-test-cgiparam&rootpublisher-name=my-test-rootpublisher');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'rootpublisher-cgiparam=my-test-cgiparam&rootpublisher-name=my-test-rootpublisher'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublisher/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/rootpublisher/getall.json" : {
         "get" : {
            "description" : "This query returns the full list of existing partner publisher.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=rootpublisher&method=getall"
            },
            "operationId" : "getallPartnerPublisher",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "rootpublisher_id"
                                 },
                                 {
                                    "name" : "rootpublisher_name"
                                 },
                                 {
                                    "name" : "rootpublisher_cgiparam"
                                 },
                                 {
                                    "name" : "rootpublisher_shareable"
                                 },
                                 {
                                    "name" : "rootpublisher_e3rd"
                                 },
                                 {
                                    "name" : "rootpublisher_reverse"
                                 },
                                 {
                                    "name" : "rootpublisher_rpsetuserdata"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "8",
                                    "AppNexus",
                                    "apnxsid",
                                    "Y",
                                    "Y",
                                    "Y",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get all the existing partner publisher.",
            "tags" : [
               "Partner Publisher"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublisher/getall.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublisher/getall.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublisher/getall.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublisher/getall.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/rootpublishercluster/batch_update.json" : {
         "post" : {
            "description" : "This query allows for updating in batch partner segments.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=rootpublishercluster&method=batch_update"
            },
            "operationId" : "batchUpdatePartnerSegments",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the partner segment for which you want to modify attributes, you can provide multiple ids separated by pipes, eg: rootpublishercluster-id=2334|789|43",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "rootpublishercluster-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new partner segment custom partner identifier",
                  "example" : "AMNET",
                  "in" : "query",
                  "name" : "rootpublishercluster-custompartner",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "rootpublishercluster-archive",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "rootpublishercluster-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on hidden flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "rootpublishercluster-hidden",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "rootpublishercluster_id"
                                 },
                                 {
                                    "name" : "status"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992,
                                    "ok"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Batch update partner segments.",
            "tags" : [
               "Partner Segments"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"rootpublishercluster-active=Y&rootpublishercluster-archive=Y&rootpublishercluster-custompartner=AMNET&rootpublishercluster-hidden=Y&rootpublishercluster-id=1777564992\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/batch_update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'rootpublishercluster-active' => 'Y',\n'rootpublishercluster-archive' => 'Y',\n'rootpublishercluster-custompartner' => 'AMNET',\n'rootpublishercluster-hidden' => 'Y',\n'rootpublishercluster-id' => '1777564992'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/batch_update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/batch_update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('rootpublishercluster-active=Y&rootpublishercluster-archive=Y&rootpublishercluster-custompartner=AMNET&rootpublishercluster-hidden=Y&rootpublishercluster-id=1777564992');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'rootpublishercluster-active' : 'Y',\n'rootpublishercluster-archive' : 'Y',\n'rootpublishercluster-custompartner' : 'AMNET',\n'rootpublishercluster-hidden' : 'Y',\n'rootpublishercluster-id' : '1777564992'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/rootpublishercluster/cold_volume_history.json" : {
         "get" : {
            "description" : "This query returns all the computed volumes for a given rootpublisher cluster, the volume is updated when a cold sync is made. It does not take in account the real-time connectors, so if you have real-time connectors, you will not have 100% of the data.\n\nYou will have access to the volume of data sent as a **add** type and you will have access to the volume of data sent as a **purge** type (for user marked for deletion).",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=rootpublishercluster&method=cold_volume_history"
            },
            "operationId" : "coldVolumeHistoryPartnerSegments",
            "parameters" : [
               {
                  "description" : "date from which you want the volumes in MM/DD/YYYY format",
                  "example" : "10/28/2019",
                  "in" : "query",
                  "name" : "date-from",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date from which you want the volumes in Epoch format",
                  "example" : 1777478592,
                  "in" : "query",
                  "name" : "date-from-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date to which you want the volumes in MM/DD/YYYY format",
                  "example" : "10/29/2019",
                  "in" : "query",
                  "name" : "date-to",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date to which you want the volumes in Epoch format",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "date-to-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the rootpublisher cluster.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "rootpublishercluster-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "epoch"
                                 },
                                 {
                                    "name" : "count"
                                 },
                                 {
                                    "name" : "date"
                                 },
                                 {
                                    "name" : "type"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       1777564992,
                                       "14654654",
                                       "04/30/2026 18",
                                       "add"
                                    ],
                                    [
                                       1777478592,
                                       "18651661",
                                       "04/29/2026 18",
                                       "purge"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Return the historical Cold volume linked to a rootpublisher cluster.",
            "tags" : [
               "Partner Segments"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/cold_volume_history.json?date-from=10%2F28%2F2019&date-from-epoch=1777478592&date-to=10%2F29%2F2019&date-to-epoch=1777564992&rootpublishercluster-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/cold_volume_history.json?date-from=10/28/2019&date-from-epoch=1777478592&date-to=10/29/2019&date-to-epoch=1777564992&rootpublishercluster-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/cold_volume_history.json?date-from=10/28/2019&date-from-epoch=1777478592&date-to=10/29/2019&date-to-epoch=1777564992&rootpublishercluster-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'date-from=10%2F28%2F2019&date-from-epoch=1777478592&date-to=10%2F29%2F2019&date-to-epoch=1777564992&rootpublishercluster-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/cold_volume_history.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/rootpublishercluster/exists.json" : {
         "get" : {
            "description" : "This query will check if a partner segment name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=rootpublishercluster&method=exists"
            },
            "operationId" : "existsPartnerSegments",
            "parameters" : [
               {
                  "description" : "name of the partner segment to check",
                  "example" : "my-test-segment",
                  "in" : "query",
                  "name" : "rootpublishercluster-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "rootpublishercluster_desc"
                                 },
                                 {
                                    "name" : "rootpublishercluster_value"
                                 },
                                 {
                                    "name" : "rootpublishercluster_status"
                                 },
                                 {
                                    "name" : "rootpublishercluster_archive"
                                 },
                                 {
                                    "name" : "rootpublishercluster_name"
                                 },
                                 {
                                    "name" : "rootpublishercluster_id"
                                 },
                                 {
                                    "name" : "rootpublishercluster_active"
                                 },
                                 {
                                    "name" : "rootpublisher_id"
                                 },
                                 {
                                    "name" : "rootpublishercluster_hidden"
                                 },
                                 {
                                    "name" : "rootpublishercluster_custompartner"
                                 },
                                 {
                                    "name" : "job_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       null,
                                       "6023067689858",
                                       "Normal",
                                       "N",
                                       "Eulerian - Test Mode",
                                       "15",
                                       "Y",
                                       "36",
                                       "N",
                                       "",
                                       1777564992
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a partner segment exists",
            "tags" : [
               "Partner Segments"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/exists.json?rootpublishercluster-name=my-test-segment\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/exists.json?rootpublishercluster-name=my-test-segment',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/exists.json?rootpublishercluster-name=my-test-segment');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'rootpublishercluster-name=my-test-segment'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/rootpublishercluster/fetch_partner_info.json" : {
         "get" : {
            "description" : "This query will allow you to query the partner API **if available** to fetch information about a partner segment, this can provide for example size information about the partner segment at the partner level. The response format will be different depending on the partner you are querying, it will never be the same from a partner to another.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=rootpublishercluster&method=fetch_partner_info"
            },
            "operationId" : "fetchPartnerInfoPartnerSegments",
            "parameters" : [
               {
                  "description" : "id of the partner segment to look for",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "rootpublishercluster-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "sizeForSearch"
                                 },
                                 {
                                    "name" : "sizeRange"
                                 },
                                 {
                                    "name" : "status"
                                 },
                                 {
                                    "name" : "size"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       987,
                                       0,
                                       "PENDING",
                                       0
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Query the partner.",
            "tags" : [
               "Partner Segments"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/fetch_partner_info.json?rootpublishercluster-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/fetch_partner_info.json?rootpublishercluster-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/fetch_partner_info.json?rootpublishercluster-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'rootpublishercluster-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/fetch_partner_info.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/rootpublishercluster/job_ebmdb.json" : {
         "get" : {
            "description" : "This query will look into which automated cold export a partner segment is used.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=rootpublishercluster&method=job_ebmdb"
            },
            "operationId" : "jobEbmdbPartnerSegments",
            "parameters" : [
               {
                  "description" : "id of the partner segment to look for",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "rootpublishercluster-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "job_active"
                                 },
                                 {
                                    "name" : "account_login"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       1777564992,
                                       "Test Saved Query",
                                       "Y",
                                       "webmaster1"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get linked automated job cold export.",
            "tags" : [
               "Partner Segments"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/job_ebmdb.json?rootpublishercluster-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/job_ebmdb.json?rootpublishercluster-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/job_ebmdb.json?rootpublishercluster-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'rootpublishercluster-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/job_ebmdb.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/rootpublishercluster/job_workflow.json" : {
         "get" : {
            "description" : "This query will look into which workflows a partner segment is used.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=rootpublishercluster&method=job_workflow"
            },
            "operationId" : "jobWorkflowPartnerSegments",
            "parameters" : [
               {
                  "description" : "id of the partner segment to look for",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "rootpublishercluster-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "job_active"
                                 },
                                 {
                                    "name" : "account_login"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       1777564992,
                                       "Test Workflow",
                                       "Y",
                                       "webmaster1"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get linked job workflows.",
            "tags" : [
               "Partner Segments"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/job_workflow.json?rootpublishercluster-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/job_workflow.json?rootpublishercluster-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/job_workflow.json?rootpublishercluster-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'rootpublishercluster-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/job_workflow.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/rootpublishercluster/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=rootpublishercluster&method=search"
            },
            "operationId" : "searchPartnerSegments",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "id of the partner for which the segment is linked to",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "rootpublisher-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "rootpublishercluster-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "rootpublishercluster-archive",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "custom partner linked to the segment, useful if you have a trading desk in the loop.",
                  "example" : "TVTY",
                  "in" : "query",
                  "name" : "rootpublishercluster-custompartner",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "description of the partner segment",
                  "example" : "my-test-desc",
                  "in" : "query",
                  "name" : "rootpublishercluster-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on hidden flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "rootpublishercluster-hidden",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the partner segment",
                  "example" : "my-test-segment",
                  "in" : "query",
                  "name" : "rootpublishercluster-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "rootpublishercluster-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "status of the segment at the partner, not normalized, it is different for each partner",
                  "example" : "enabled",
                  "in" : "query",
                  "name" : "rootpublishercluster-status",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "type of the segment partner, usually linked to the partner",
                  "example" : "APPNEXUS",
                  "in" : "query",
                  "name" : "rootpublishercluster-type",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "value of the segment at the partner level, usually it is an integer or a name",
                  "example" : "id1777564992",
                  "in" : "query",
                  "name" : "rootpublishercluster-value",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "rootpublishercluster_desc"
                                 },
                                 {
                                    "name" : "rootpublishercluster_value"
                                 },
                                 {
                                    "name" : "rootpublishercluster_status"
                                 },
                                 {
                                    "name" : "rootpublishercluster_archive"
                                 },
                                 {
                                    "name" : "rootpublishercluster_name"
                                 },
                                 {
                                    "name" : "rootpublishercluster_id"
                                 },
                                 {
                                    "name" : "rootpublishercluster_active"
                                 },
                                 {
                                    "name" : "rootpublisher_id"
                                 },
                                 {
                                    "name" : "rootpublishercluster_hidden"
                                 },
                                 {
                                    "name" : "rootpublishercluster_custompartner"
                                 },
                                 {
                                    "name" : "job_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       null,
                                       "6023067689858",
                                       "Normal",
                                       "N",
                                       "Eulerian - Test Mode",
                                       "15",
                                       "Y",
                                       "36",
                                       "N",
                                       "",
                                       1777564992
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Partner Segments"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/search.json?dir=DESC&limit=25&rootpublisher-id=1777564992&rootpublishercluster-active=Y&rootpublishercluster-archive=Y&rootpublishercluster-custompartner=TVTY&rootpublishercluster-desc=my-test-desc&rootpublishercluster-hidden=Y&rootpublishercluster-name=my-test-segment&rootpublishercluster-name-exact=1&rootpublishercluster-status=enabled&rootpublishercluster-type=APPNEXUS&rootpublishercluster-value=id1777564992&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/search.json?dir=DESC&limit=25&rootpublisher-id=1777564992&rootpublishercluster-active=Y&rootpublishercluster-archive=Y&rootpublishercluster-custompartner=TVTY&rootpublishercluster-desc=my-test-desc&rootpublishercluster-hidden=Y&rootpublishercluster-name=my-test-segment&rootpublishercluster-name-exact=1&rootpublishercluster-status=enabled&rootpublishercluster-type=APPNEXUS&rootpublishercluster-value=id1777564992&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/search.json?dir=DESC&limit=25&rootpublisher-id=1777564992&rootpublishercluster-active=Y&rootpublishercluster-archive=Y&rootpublishercluster-custompartner=TVTY&rootpublishercluster-desc=my-test-desc&rootpublishercluster-hidden=Y&rootpublishercluster-name=my-test-segment&rootpublishercluster-name-exact=1&rootpublishercluster-status=enabled&rootpublishercluster-type=APPNEXUS&rootpublishercluster-value=id1777564992&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&rootpublisher-id=1777564992&rootpublishercluster-active=Y&rootpublishercluster-archive=Y&rootpublishercluster-custompartner=TVTY&rootpublishercluster-desc=my-test-desc&rootpublishercluster-hidden=Y&rootpublishercluster-name=my-test-segment&rootpublishercluster-name-exact=1&rootpublishercluster-status=enabled&rootpublishercluster-type=APPNEXUS&rootpublishercluster-value=id1777564992&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/rootpublishercluster/statistics.json" : {
         "get" : {
            "description" : "This query allows you to request statistics linked to one or more partner segments.\n\nYou will be able for a given timerange to request:\n\n* `external_add` : the number of users added to a partner segment through async upload (no realtime)\n\n* `external_purge`: the number of users removed from a partner segment through async processing (no realtime) (not available yet)\n\n> This method is still **experimental** and the reporting is not available globally for all async process & partners, they will be added in the next couple of months.\n\n> *WARNING* : the volume returned by the API only concerns the volume effectively sent to the partner, however it does not mean that it is strictly the number of users the partner will treat on his end, due to different counting & merging or discarding mechanism it is possible that users are not handled by the partner. So for example if we send 5689 users to AppNexus, maybe AppNexus will only validate 5463 users and hence you will have a discrepency between the two systems.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=rootpublishercluster&method=statistics"
            },
            "operationId" : "statisticsPartnerSegments",
            "parameters" : [
               {
                  "description" : "date from which the data is requested. Format is always: *MM/DD/YYYY*",
                  "example" : "01/15/2018",
                  "in" : "query",
                  "name" : "date-from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date from which the data is requested. Format is always: *MM/DD/YYYY*. Data includes the full day.",
                  "example" : "01/29/2018",
                  "in" : "query",
                  "name" : "date-to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the partner segment for which you want to modify attributes, you can provide multiple ids separated by pipes, eg: rootpublishercluster-id=2334|789|43",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "rootpublishercluster-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "rootpublishercluster_id"
                                 },
                                 {
                                    "name" : "field"
                                 },
                                 {
                                    "name" : "epoch"
                                 },
                                 {
                                    "name" : "datetime"
                                 },
                                 {
                                    "name" : "count"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992,
                                    "external_add",
                                    0,
                                    1552667071,
                                    "Fri Mar 15 17:24:50 2019",
                                    1777564
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Statistics for partner segments.",
            "tags" : [
               "Partner Segments"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/statistics.json?date-from=01%2F15%2F2018&date-to=01%2F29%2F2018&rootpublishercluster-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/statistics.json?date-from=01/15/2018&date-to=01/29/2018&rootpublishercluster-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/statistics.json?date-from=01/15/2018&date-to=01/29/2018&rootpublishercluster-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'date-from=01%2F15%2F2018&date-to=01%2F29%2F2018&rootpublishercluster-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/statistics.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/rootpublishercluster/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing partner segment.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=rootpublishercluster&method=update"
            },
            "operationId" : "updatePartnerSegments",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the partner segment for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "rootpublishercluster-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new partner segment name",
                  "example" : "New-name",
                  "in" : "query",
                  "name" : "rootpublishercluster-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new partner segment value. **KNOW WHAT YOU DO** this can impact the segment populating at the partner level.",
                  "example" : "New-value",
                  "in" : "query",
                  "name" : "rootpublishercluster-value",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new partner segment description",
                  "example" : "description",
                  "in" : "query",
                  "name" : "rootpublishercluster-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new partner segment custom partner identifier",
                  "example" : "AMNET",
                  "in" : "query",
                  "name" : "rootpublishercluster-custompartner",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "rootpublishercluster-archive",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "rootpublishercluster-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on hidden flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "rootpublishercluster-hidden",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "rootpublishercluster_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchPartnerSegments" : {
                        "description" : "Use the value of rootpublishercluster_id entry to update a rootpublishercluster through rootpublishercluster-id parameter.",
                        "operationId" : "searchPartnerSegments",
                        "parameters" : {
                           "rootpublishercluster-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update a partner segment.",
            "tags" : [
               "Partner Segments"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"rootpublishercluster-active=Y&rootpublishercluster-archive=Y&rootpublishercluster-custompartner=AMNET&rootpublishercluster-desc=description&rootpublishercluster-hidden=Y&rootpublishercluster-id=1777564992&rootpublishercluster-name=New-name&rootpublishercluster-value=New-value\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'rootpublishercluster-active' => 'Y',\n'rootpublishercluster-archive' => 'Y',\n'rootpublishercluster-custompartner' => 'AMNET',\n'rootpublishercluster-desc' => 'description',\n'rootpublishercluster-hidden' => 'Y',\n'rootpublishercluster-id' => '1777564992',\n'rootpublishercluster-name' => 'New-name',\n'rootpublishercluster-value' => 'New-value'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/rootpublishercluster/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('rootpublishercluster-active=Y&rootpublishercluster-archive=Y&rootpublishercluster-custompartner=AMNET&rootpublishercluster-desc=description&rootpublishercluster-hidden=Y&rootpublishercluster-id=1777564992&rootpublishercluster-name=New-name&rootpublishercluster-value=New-value');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'rootpublishercluster-active' : 'Y',\n'rootpublishercluster-archive' : 'Y',\n'rootpublishercluster-custompartner' : 'AMNET',\n'rootpublishercluster-desc' : 'description',\n'rootpublishercluster-hidden' : 'Y',\n'rootpublishercluster-id' : '1777564992',\n'rootpublishercluster-name' : 'New-name',\n'rootpublishercluster-value' : 'New-value'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/runtimeerror/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination. You can only request month per month, no month overlap is allowed.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=runtimeerror&method=search"
            },
            "operationId" : "searchRunTimeError",
            "parameters" : [
               {
                  "description" : "id of the TMS tag you want to filter on, you can provide multiple values.",
                  "example" : "108470",
                  "in" : "query",
                  "name" : "collectorconfigmt-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the S2S connector you want to filter one, you can provide multiple values.",
                  "example" : "108470",
                  "in" : "query",
                  "name" : "dataconnector-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "category of the item generating the error. If `mt` it is a TMS tag, if `dc` it is a server-server connector.",
                  "example" : "mt",
                  "in" : "query",
                  "name" : "runtimeerror-category",
                  "schema" : {
                     "enum" : [
                        "mt",
                        "dc"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of either the TMS tag or the S2S connector.",
                  "example" : 10847,
                  "in" : "query",
                  "name" : "runtimeerror-categoryid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "epoch time from which you want to start searching for.",
                  "example" : 1777442592,
                  "in" : "query",
                  "name" : "runtimeerror-date-from-epoch",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "epoch time to which you want to search.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "runtimeerror-date-to-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "runtimeerror_error"
                                 },
                                 {
                                    "name" : "runtimeerror_category"
                                 },
                                 {
                                    "name" : "runtimeerror_error"
                                 },
                                 {
                                    "name" : "runtimeerror_id"
                                 },
                                 {
                                    "name" : "name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992,
                                    "mt",
                                    10847,
                                    "ReferenceError: v is not defined",
                                    "3",
                                    "my-tag-name"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "RunTimeError"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/runtimeerror/search.json?collectorconfigmt-id=108470&dataconnector-id=108470&dir=DESC&limit=25&runtimeerror-category=mt&runtimeerror-categoryid=10847&runtimeerror-date-from-epoch=1777442592&runtimeerror-date-to-epoch=1777564992&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/runtimeerror/search.json?collectorconfigmt-id=108470&dataconnector-id=108470&dir=DESC&limit=25&runtimeerror-category=mt&runtimeerror-categoryid=10847&runtimeerror-date-from-epoch=1777442592&runtimeerror-date-to-epoch=1777564992&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/runtimeerror/search.json?collectorconfigmt-id=108470&dataconnector-id=108470&dir=DESC&limit=25&runtimeerror-category=mt&runtimeerror-categoryid=10847&runtimeerror-date-from-epoch=1777442592&runtimeerror-date-to-epoch=1777564992&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'collectorconfigmt-id=108470&dataconnector-id=108470&dir=DESC&limit=25&runtimeerror-category=mt&runtimeerror-categoryid=10847&runtimeerror-date-from-epoch=1777442592&runtimeerror-date-to-epoch=1777564992&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/runtimeerror/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semaccount/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new semaccount.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semaccount&method=create"
            },
            "operationId" : "createSEMAccount",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the semaccount",
                  "example" : "my-test-semaccount-name",
                  "in" : "query",
                  "name" : "semaccount-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semaccount_desc"
                                 },
                                 {
                                    "name" : "semaccount_id"
                                 },
                                 {
                                    "name" : "semaccount_name"
                                 },
                                 {
                                    "name" : "semaccount_status"
                                 },
                                 {
                                    "name" : "semaccount_visible"
                                 }
                              ],
                              "rows" : [
                                 [
                                    null,
                                    1777564992,
                                    "Test SEMAccount",
                                    "ACTIVE",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new semaccount.",
            "tags" : [
               "SEM Account"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"semaccount-name=my-test-semaccount-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semaccount/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'semaccount-name' => 'my-test-semaccount-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semaccount/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semaccount/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('semaccount-name=my-test-semaccount-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'semaccount-name' : 'my-test-semaccount-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semaccount/exists.json" : {
         "get" : {
            "description" : "This query will check if a semaccount name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semaccount&method=exists"
            },
            "operationId" : "existsSEMAccount",
            "parameters" : [
               {
                  "description" : "name of the semaccount to check",
                  "example" : "my-test-semaccount",
                  "in" : "query",
                  "name" : "semaccount-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semaccount_desc"
                                 },
                                 {
                                    "name" : "semaccount_id"
                                 },
                                 {
                                    "name" : "semaccount_name"
                                 },
                                 {
                                    "name" : "semaccount_status"
                                 },
                                 {
                                    "name" : "semaccount_visible"
                                 }
                              ],
                              "rows" : [
                                 [
                                    null,
                                    1777564992,
                                    "Test SEMAccount",
                                    "ACTIVE",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a semaccount exists",
            "tags" : [
               "SEM Account"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semaccount/exists.json?semaccount-name=my-test-semaccount\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semaccount/exists.json?semaccount-name=my-test-semaccount',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semaccount/exists.json?semaccount-name=my-test-semaccount');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'semaccount-name=my-test-semaccount'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semaccount/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semaccount/modify.json" : {
         "post" : {
            "description" : "This query allows for updating an existing semaccount.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semaccount&method=modify"
            },
            "operationId" : "modifySEMAccount",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the semaccount for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semaccount-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new semaccount name",
                  "example" : "New-name",
                  "in" : "query",
                  "name" : "semaccount-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new semaccount description",
                  "example" : "New description",
                  "in" : "query",
                  "name" : "semaccount-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on visible flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "semaccount-visible",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semaccount_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Update an existing semaccount.",
            "tags" : [
               "SEM Account"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"semaccount-desc=New%20description&semaccount-id=1777564992&semaccount-name=New-name&semaccount-visible=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semaccount/modify.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'semaccount-desc' => 'New description',\n'semaccount-id' => '1777564992',\n'semaccount-name' => 'New-name',\n'semaccount-visible' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semaccount/modify.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semaccount/modify.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('semaccount-desc=New%20description&semaccount-id=1777564992&semaccount-name=New-name&semaccount-visible=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'semaccount-desc' : 'New%20description',\n'semaccount-id' : '1777564992',\n'semaccount-name' : 'New-name',\n'semaccount-visible' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semaccount/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semaccount&method=search"
            },
            "operationId" : "searchSEMAccount",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "internal id of the semaccount you want",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semaccount-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the semaccount",
                  "example" : "my-test-semaccount",
                  "in" : "query",
                  "name" : "semaccount-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "semaccount-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on visible flag",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semaccount-visible",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semaccount_desc"
                                 },
                                 {
                                    "name" : "semaccount_id"
                                 },
                                 {
                                    "name" : "semaccount_name"
                                 },
                                 {
                                    "name" : "semaccount_status"
                                 },
                                 {
                                    "name" : "semaccount_visible"
                                 }
                              ],
                              "rows" : [
                                 [
                                    null,
                                    1777564992,
                                    "Test SEMAccount",
                                    "ACTIVE",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "SEM Account"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semaccount/search.json?dir=DESC&limit=25&semaccount-id=1777564992&semaccount-name=my-test-semaccount&semaccount-name-exact=1&semaccount-visible=1777564992&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semaccount/search.json?dir=DESC&limit=25&semaccount-id=1777564992&semaccount-name=my-test-semaccount&semaccount-name-exact=1&semaccount-visible=1777564992&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semaccount/search.json?dir=DESC&limit=25&semaccount-id=1777564992&semaccount-name=my-test-semaccount&semaccount-name-exact=1&semaccount-visible=1777564992&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&semaccount-id=1777564992&semaccount-name=my-test-semaccount&semaccount-name-exact=1&semaccount-visible=1777564992&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semaccount/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semadgroup/exists.json" : {
         "get" : {
            "description" : "This query will check if a semadgroup name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semadgroup&method=exists"
            },
            "operationId" : "existsSEMAdGroup",
            "parameters" : [
               {
                  "description" : "name of the semadgroup to check",
                  "example" : "my-test-semadgroup",
                  "in" : "query",
                  "name" : "semadgroup-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "internal id of the semcampaign to which the semadgroup should belong.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semcampaign-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semadgroup_desc"
                                 },
                                 {
                                    "name" : "semadgroup_id"
                                 },
                                 {
                                    "name" : "semadgroup_name"
                                 },
                                 {
                                    "name" : "semadgroup_pltfrmid"
                                 },
                                 {
                                    "name" : "semadgroup_status"
                                 },
                                 {
                                    "name" : "semadgroup_visible"
                                 },
                                 {
                                    "name" : "semcampaign_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    null,
                                    1777564992,
                                    "Test SEMAdgroup",
                                    "3216548",
                                    "ACTIVE",
                                    "Y",
                                    "17775649921777564992"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a semadgroup exists",
            "tags" : [
               "SEM AdGroup"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semadgroup/exists.json?semadgroup-name=my-test-semadgroup&semcampaign-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semadgroup/exists.json?semadgroup-name=my-test-semadgroup&semcampaign-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semadgroup/exists.json?semadgroup-name=my-test-semadgroup&semcampaign-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'semadgroup-name=my-test-semadgroup&semcampaign-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semadgroup/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semadgroup/modify.json" : {
         "post" : {
            "description" : "This query allows for updating an existing semadgroup.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semadgroup&method=modify"
            },
            "operationId" : "modifySEMAdGroup",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the semadgroup for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semadgroup-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new semadgroup name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "semadgroup-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new semadgroup description",
                  "example" : "New description",
                  "in" : "query",
                  "name" : "semadgroup-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to update visible flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "semadgroup-visible",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semadgroup_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Update an existing semadgroup.",
            "tags" : [
               "SEM AdGroup"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"semadgroup-desc=New%20description&semadgroup-id=1777564992&semadgroup-name=New%20name&semadgroup-visible=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semadgroup/modify.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'semadgroup-desc' => 'New description',\n'semadgroup-id' => '1777564992',\n'semadgroup-name' => 'New name',\n'semadgroup-visible' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semadgroup/modify.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semadgroup/modify.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('semadgroup-desc=New%20description&semadgroup-id=1777564992&semadgroup-name=New%20name&semadgroup-visible=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'semadgroup-desc' : 'New%20description',\n'semadgroup-id' : '1777564992',\n'semadgroup-name' : 'New%20name',\n'semadgroup-visible' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semadgroup/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semadgroup&method=search"
            },
            "operationId" : "searchSEMAdGroup",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "internal id of the publisher for which you want the linked semadgroups",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "publisher-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "internal id of the semadgroup you want",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semadgroup-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "internal id of the semadgroup you do not want, ie the complementary",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semadgroup-id-notin",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the semadgroup",
                  "example" : "my-test-semadgroup",
                  "in" : "query",
                  "name" : "semadgroup-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "semadgroup-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "internal id of the semcampaign for which you want the linked semadgroups",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semcampaign-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semadgroup_desc"
                                 },
                                 {
                                    "name" : "semadgroup_id"
                                 },
                                 {
                                    "name" : "semadgroup_name"
                                 },
                                 {
                                    "name" : "semadgroup_pltfrmid"
                                 },
                                 {
                                    "name" : "semadgroup_status"
                                 },
                                 {
                                    "name" : "semadgroup_visible"
                                 },
                                 {
                                    "name" : "semcampaign_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    null,
                                    1777564992,
                                    "Test SEMAdgroup",
                                    "3216548",
                                    "ACTIVE",
                                    "Y",
                                    "17775649921777564992"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "SEM AdGroup"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semadgroup/search.json?dir=DESC&limit=25&publisher-id=1777564992&semadgroup-id=1777564992&semadgroup-id-notin=1777564992&semadgroup-name=my-test-semadgroup&semadgroup-name-exact=1&semcampaign-id=1777564992&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semadgroup/search.json?dir=DESC&limit=25&publisher-id=1777564992&semadgroup-id=1777564992&semadgroup-id-notin=1777564992&semadgroup-name=my-test-semadgroup&semadgroup-name-exact=1&semcampaign-id=1777564992&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semadgroup/search.json?dir=DESC&limit=25&publisher-id=1777564992&semadgroup-id=1777564992&semadgroup-id-notin=1777564992&semadgroup-name=my-test-semadgroup&semadgroup-name-exact=1&semcampaign-id=1777564992&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&publisher-id=1777564992&semadgroup-id=1777564992&semadgroup-id-notin=1777564992&semadgroup-name=my-test-semadgroup&semadgroup-name-exact=1&semcampaign-id=1777564992&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semadgroup/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semcampaign/create_alias.json" : {
         "post" : {
            "description" : "This query allows for creating an alias for the targeted semcampaign for the linked semaccount.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semcampaign&method=create_alias"
            },
            "operationId" : "createAliasSEMCampaign",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the semaccount to which the semcampaign is linked.",
                  "example" : "17775430320-0000-000",
                  "in" : "query",
                  "name" : "semaccount-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the semcampaign for which you want to get the alias, it MUST be the id as provided by the platform.",
                  "example" : 1777561392,
                  "in" : "query",
                  "name" : "semcampaign-pltfrmid",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the alias you want to see in the user interface.",
                  "example" : "My Aliased Campaign",
                  "in" : "query",
                  "name" : "opealias-alias",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semcampaign_pltfrmid"
                                 },
                                 {
                                    "name" : "semcampaign_id"
                                 },
                                 {
                                    "name" : "semcampaign_name"
                                 },
                                 {
                                    "name" : "publisher_name"
                                 },
                                 {
                                    "name" : "semaccount_name"
                                 },
                                 {
                                    "name" : "ope_name"
                                 },
                                 {
                                    "name" : "ope_id"
                                 },
                                 {
                                    "name" : "opealias_alias"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992,
                                    1777543032,
                                    "Aliased Campaign",
                                    "google-ads",
                                    "235-9865-985",
                                    "271-235-9865-985-1777564992",
                                    1777564.992,
                                    "My Aliased Campaign"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create an alias for a semcampaign.",
            "tags" : [
               "SEM Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"opealias-alias=My%20Aliased%20Campaign&semaccount-name=17775430320-0000-000&semcampaign-pltfrmid=1777561392\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/create_alias.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'opealias-alias' => 'My Aliased Campaign',\n'semaccount-name' => '17775430320-0000-000',\n'semcampaign-pltfrmid' => '1777561392'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/create_alias.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/create_alias.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('opealias-alias=My%20Aliased%20Campaign&semaccount-name=17775430320-0000-000&semcampaign-pltfrmid=1777561392');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'opealias-alias' : 'My%20Aliased%20Campaign',\n'semaccount-name' : '17775430320-0000-000',\n'semcampaign-pltfrmid' : '1777561392'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semcampaign/exists.json" : {
         "get" : {
            "description" : "This query will check if a semcampaign name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semcampaign&method=exists"
            },
            "operationId" : "existsSEMCampaign",
            "parameters" : [
               {
                  "description" : "name of the semcampaign to check",
                  "example" : "my-test-semcampaign",
                  "in" : "query",
                  "name" : "semcampaign-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semaccount_id"
                                 },
                                 {
                                    "name" : "semcampaign_desc"
                                 },
                                 {
                                    "name" : "semcampaign_id"
                                 },
                                 {
                                    "name" : "semcampaign_name"
                                 },
                                 {
                                    "name" : "semcampaign_pltfrmid"
                                 },
                                 {
                                    "name" : "semcampaign_status"
                                 },
                                 {
                                    "name" : "semcampaign_visible"
                                 }
                              ],
                              "rows" : [
                                 [
                                    15,
                                    null,
                                    1777564992,
                                    "Test SEMCampaign",
                                    "01234548",
                                    "ACTIVE",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a semcampaign exists",
            "tags" : [
               "SEM Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/exists.json?semcampaign-name=my-test-semcampaign\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/exists.json?semcampaign-name=my-test-semcampaign',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/exists.json?semcampaign-name=my-test-semcampaign');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'semcampaign-name=my-test-semcampaign'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semcampaign/get_alias.json" : {
         "get" : {
            "description" : "This query allows for getting the aliased name that is linked to the semcampaign id that has been captured by the live traffic.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semcampaign&method=get_alias"
            },
            "operationId" : "getAliasSEMCampaign",
            "parameters" : [
               {
                  "description" : "name of the semaccount to which the semcampaign is linked.",
                  "example" : "17775430320-0000-000",
                  "in" : "query",
                  "name" : "semaccount-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the semcampaign for which you want to get the alias, it MUST be the id as provided by the platform.",
                  "example" : 1777561392,
                  "in" : "query",
                  "name" : "semcampaign-pltfrmid",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semcampaign_pltfrmid"
                                 },
                                 {
                                    "name" : "semcampaign_id"
                                 },
                                 {
                                    "name" : "semcampaign_name"
                                 },
                                 {
                                    "name" : "publisher_name"
                                 },
                                 {
                                    "name" : "semaccount_name"
                                 },
                                 {
                                    "name" : "ope_name"
                                 },
                                 {
                                    "name" : "ope_id"
                                 },
                                 {
                                    "name" : "opealias_alias"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992,
                                    1777543032,
                                    "My Alias",
                                    "google-ads",
                                    "235-9865-985",
                                    "271-235-9865-985-1777564992",
                                    1777564.992,
                                    "My Aliased Campaign"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get the alias linked to the semcampaign.",
            "tags" : [
               "SEM Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/get_alias.json?semaccount-name=17775430320-0000-000&semcampaign-pltfrmid=1777561392\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/get_alias.json?semaccount-name=17775430320-0000-000&semcampaign-pltfrmid=1777561392',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/get_alias.json?semaccount-name=17775430320-0000-000&semcampaign-pltfrmid=1777561392');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'semaccount-name=17775430320-0000-000&semcampaign-pltfrmid=1777561392'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/get_alias.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semcampaign/link_to_semaccount.json" : {
         "post" : {
            "description" : "This query allows for updating the link between a semaccount & multiple semcampaigns, this will be useful for creating account hierarchy from scratch. **WARNING** do not use this API if you have an active EPC, this will mix the data.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semcampaign&method=link_to_semaccount"
            },
            "operationId" : "linkToSemaccountSEMCampaign",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the semaccount to link the targeted semcampaign to.",
                  "example" : 1777543032,
                  "in" : "query",
                  "name" : "semaccount-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the publisher to which the current PPC traffic is linked for the corresponding semcampaign, it is the publisher provided in the sem tracking links.",
                  "example" : 1764604992,
                  "in" : "query",
                  "name" : "publisher-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the semcampaign for which you want to update the linked semaccount, you can provide multiple ids separated by a comma, max 20 entries",
                  "example" : "1777564992,1777561392",
                  "in" : "query",
                  "name" : "semcampaign-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semcampaign_id"
                                 },
                                 {
                                    "name" : "semaccount_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992,
                                    1777543032
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Link the semcampaigns to a semaccount.",
            "tags" : [
               "SEM Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"publisher-id=1764604992&semaccount-id=1777543032&semcampaign-id=1777564992%2C1777561392\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/link_to_semaccount.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'publisher-id' => '1764604992',\n'semaccount-id' => '1777543032',\n'semcampaign-id' => '1777564992,1777561392'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/link_to_semaccount.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/link_to_semaccount.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('publisher-id=1764604992&semaccount-id=1777543032&semcampaign-id=1777564992%2C1777561392');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'publisher-id' : '1764604992',\n'semaccount-id' : '1777543032',\n'semcampaign-id' : '1777564992%2C1777561392'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semcampaign/modify.json" : {
         "post" : {
            "description" : "This query allows for updating an existing semcampaign.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semcampaign&method=modify"
            },
            "operationId" : "modifySEMCampaign",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the semcampaign for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semcampaign-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new semcampaign name",
                  "example" : "New-name",
                  "in" : "query",
                  "name" : "semcampaign-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new semcampaign description",
                  "example" : "New description",
                  "in" : "query",
                  "name" : "semcampaign-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to update visible flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "semcampaign-visible",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semcampaign_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Update an existing semcampaign.",
            "tags" : [
               "SEM Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"semcampaign-desc=New%20description&semcampaign-id=1777564992&semcampaign-name=New-name&semcampaign-visible=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/modify.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'semcampaign-desc' => 'New description',\n'semcampaign-id' => '1777564992',\n'semcampaign-name' => 'New-name',\n'semcampaign-visible' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/modify.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/modify.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('semcampaign-desc=New%20description&semcampaign-id=1777564992&semcampaign-name=New-name&semcampaign-visible=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'semcampaign-desc' : 'New%20description',\n'semcampaign-id' : '1777564992',\n'semcampaign-name' : 'New-name',\n'semcampaign-visible' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semcampaign/remove_alias.json" : {
         "get" : {
            "description" : "This query allows for removing the alias for the targeted semcampaign for the linked semaccount.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semcampaign&method=remove_alias"
            },
            "operationId" : "removeAliasSEMCampaign",
            "parameters" : [
               {
                  "description" : "name of the semaccount to which the semcampaign is linked.",
                  "example" : "17775430320-0000-000",
                  "in" : "query",
                  "name" : "semaccount-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the semcampaign for which you want to get the alias, it MUST be the id as provided by the platform.",
                  "example" : 1777561392,
                  "in" : "query",
                  "name" : "semcampaign-pltfrmid",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semcampaign_pltfrmid"
                                 },
                                 {
                                    "name" : "semcampaign_id"
                                 },
                                 {
                                    "name" : "semcampaign_name"
                                 },
                                 {
                                    "name" : "publisher_name"
                                 },
                                 {
                                    "name" : "semaccount_name"
                                 },
                                 {
                                    "name" : "ope_name"
                                 },
                                 {
                                    "name" : "ope_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992,
                                    1777543032,
                                    "My SEMCampaign Name",
                                    "google-ads",
                                    "235-9865-985",
                                    "271-235-9865-985-1777564992",
                                    1777564.992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Remove an alias for a semcampaign.",
            "tags" : [
               "SEM Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/remove_alias.json?semaccount-name=17775430320-0000-000&semcampaign-pltfrmid=1777561392\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/remove_alias.json?semaccount-name=17775430320-0000-000&semcampaign-pltfrmid=1777561392',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/remove_alias.json?semaccount-name=17775430320-0000-000&semcampaign-pltfrmid=1777561392');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'semaccount-name=17775430320-0000-000&semcampaign-pltfrmid=1777561392'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/remove_alias.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semcampaign/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semcampaign&method=search"
            },
            "operationId" : "searchSEMCampaign",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "internal id of the publisher for which you want the linked semcampaigns",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "publisher-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "internal id of the semaccount for which you want the linked semcampaigns",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semaccount-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "internal id of the semcampaign you want",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semcampaign-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "internal id of the semcampaign you do not want, ie the complementary",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semcampaign-id-notin",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the semcampaign",
                  "example" : "my-test-semcampaign",
                  "in" : "query",
                  "name" : "semcampaign-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "semcampaign-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semaccount_id"
                                 },
                                 {
                                    "name" : "semcampaign_desc"
                                 },
                                 {
                                    "name" : "semcampaign_id"
                                 },
                                 {
                                    "name" : "semcampaign_name"
                                 },
                                 {
                                    "name" : "semcampaign_pltfrmid"
                                 },
                                 {
                                    "name" : "semcampaign_status"
                                 },
                                 {
                                    "name" : "semcampaign_visible"
                                 }
                              ],
                              "rows" : [
                                 [
                                    15,
                                    null,
                                    1777564992,
                                    "Test SEMCampaign",
                                    "01234548",
                                    "ACTIVE",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "SEM Campaign"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/search.json?dir=DESC&limit=25&publisher-id=1777564992&semaccount-id=1777564992&semcampaign-id=1777564992&semcampaign-id-notin=1777564992&semcampaign-name=my-test-semcampaign&semcampaign-name-exact=1&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/search.json?dir=DESC&limit=25&publisher-id=1777564992&semaccount-id=1777564992&semcampaign-id=1777564992&semcampaign-id-notin=1777564992&semcampaign-name=my-test-semcampaign&semcampaign-name-exact=1&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/search.json?dir=DESC&limit=25&publisher-id=1777564992&semaccount-id=1777564992&semcampaign-id=1777564992&semcampaign-id-notin=1777564992&semcampaign-name=my-test-semcampaign&semcampaign-name-exact=1&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&publisher-id=1777564992&semaccount-id=1777564992&semcampaign-id=1777564992&semcampaign-id-notin=1777564992&semcampaign-name=my-test-semcampaign&semcampaign-name-exact=1&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcampaign/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semcreative/exists.json" : {
         "get" : {
            "description" : "This query will check if a semcreative name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semcreative&method=exists"
            },
            "operationId" : "existsSEMCreative",
            "parameters" : [
               {
                  "description" : "name of the semcreative to check",
                  "example" : "my-test-semcreative",
                  "in" : "query",
                  "name" : "semcreative-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semcreative_desc"
                                 },
                                 {
                                    "name" : "semcreative_id"
                                 },
                                 {
                                    "name" : "semcreative_name"
                                 },
                                 {
                                    "name" : "semcreative_visible"
                                 },
                                 {
                                    "name" : "semcreative_pltfrmtype"
                                 },
                                 {
                                    "name" : "semcreative_status"
                                 },
                                 {
                                    "name" : "semcreative_pltfrmtxt1"
                                 },
                                 {
                                    "name" : "semcreative_pltfrmtxt2"
                                 },
                                 {
                                    "name" : "semcreative_pltfrmtxt3"
                                 },
                                 {
                                    "name" : "semcreative_pltfrmtxt4"
                                 },
                                 {
                                    "name" : "semcreativegroup_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    null,
                                    1777564992,
                                    "Test SEMCreative",
                                    "Y",
                                    "IMAGE_AD",
                                    "ACTIVE",
                                    null,
                                    null,
                                    null,
                                    null,
                                    "17775649921777564992"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a semcreative exists",
            "tags" : [
               "SEM Creative"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreative/exists.json?semcreative-name=my-test-semcreative\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreative/exists.json?semcreative-name=my-test-semcreative',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreative/exists.json?semcreative-name=my-test-semcreative');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'semcreative-name=my-test-semcreative'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreative/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semcreative/modify.json" : {
         "post" : {
            "description" : "This query allows for updating an existing semcreative.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semcreative&method=modify"
            },
            "operationId" : "modifySEMCreative",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the semcreative for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semcreative-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new semcreative description",
                  "example" : "New description",
                  "in" : "query",
                  "name" : "semcreative-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to update visible flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "semcreative-visible",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "new semcreative text",
                  "example" : "New text",
                  "in" : "query",
                  "name" : "semcreative-pltfrmtxt1",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new semcreative text",
                  "example" : "New text",
                  "in" : "query",
                  "name" : "semcreative-pltfrmtxt2",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new semcreative text",
                  "example" : "New text",
                  "in" : "query",
                  "name" : "semcreative-pltfrmtxt3",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new semcreative text",
                  "example" : "New text",
                  "in" : "query",
                  "name" : "semcreative-pltfrmtxt4",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the semcreativegroup to which you want to link the semcreative.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semcreativegroup-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semcreative_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Update an existing semcreative.",
            "tags" : [
               "SEM Creative"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"semcreative-desc=New%20description&semcreative-id=1777564992&semcreative-pltfrmtxt1=New%20text&semcreative-pltfrmtxt2=New%20text&semcreative-pltfrmtxt3=New%20text&semcreative-pltfrmtxt4=New%20text&semcreative-visible=Y&semcreativegroup-id=1777564992\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreative/modify.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'semcreative-desc' => 'New description',\n'semcreative-id' => '1777564992',\n'semcreative-pltfrmtxt1' => 'New text',\n'semcreative-pltfrmtxt2' => 'New text',\n'semcreative-pltfrmtxt3' => 'New text',\n'semcreative-pltfrmtxt4' => 'New text',\n'semcreative-visible' => 'Y',\n'semcreativegroup-id' => '1777564992'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreative/modify.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreative/modify.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('semcreative-desc=New%20description&semcreative-id=1777564992&semcreative-pltfrmtxt1=New%20text&semcreative-pltfrmtxt2=New%20text&semcreative-pltfrmtxt3=New%20text&semcreative-pltfrmtxt4=New%20text&semcreative-visible=Y&semcreativegroup-id=1777564992');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'semcreative-desc' : 'New%20description',\n'semcreative-id' : '1777564992',\n'semcreative-pltfrmtxt1' : 'New%20text',\n'semcreative-pltfrmtxt2' : 'New%20text',\n'semcreative-pltfrmtxt3' : 'New%20text',\n'semcreative-pltfrmtxt4' : 'New%20text',\n'semcreative-visible' : 'Y',\n'semcreativegroup-id' : '1777564992'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semcreative/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semcreative&method=search"
            },
            "operationId" : "searchSEMCreative",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "internal id of the publisher for which you want the linked semcreatives",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "publisher-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "internal id of the semcreative you want",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semcreative-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "internal id of the semcreative you do not want, ie the complementary",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semcreative-id-notin",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the semcreative",
                  "example" : "my-test-semcreative",
                  "in" : "query",
                  "name" : "semcreative-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "semcreative-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "internal id of the semcreativegroup you want",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semcreativegroup-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semcreative_desc"
                                 },
                                 {
                                    "name" : "semcreative_id"
                                 },
                                 {
                                    "name" : "semcreative_name"
                                 },
                                 {
                                    "name" : "semcreative_visible"
                                 },
                                 {
                                    "name" : "semcreative_pltfrmtype"
                                 },
                                 {
                                    "name" : "semcreative_status"
                                 },
                                 {
                                    "name" : "semcreative_pltfrmtxt1"
                                 },
                                 {
                                    "name" : "semcreative_pltfrmtxt2"
                                 },
                                 {
                                    "name" : "semcreative_pltfrmtxt3"
                                 },
                                 {
                                    "name" : "semcreative_pltfrmtxt4"
                                 },
                                 {
                                    "name" : "semcreativegroup_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    null,
                                    1777564992,
                                    "Test SEMCreative",
                                    "Y",
                                    "IMAGE_AD",
                                    "ACTIVE",
                                    null,
                                    null,
                                    null,
                                    null,
                                    "17775649921777564992"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "SEM Creative"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreative/search.json?dir=DESC&limit=25&publisher-id=1777564992&semcreative-id=1777564992&semcreative-id-notin=1777564992&semcreative-name=my-test-semcreative&semcreative-name-exact=1&semcreativegroup-id=1777564992&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreative/search.json?dir=DESC&limit=25&publisher-id=1777564992&semcreative-id=1777564992&semcreative-id-notin=1777564992&semcreative-name=my-test-semcreative&semcreative-name-exact=1&semcreativegroup-id=1777564992&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreative/search.json?dir=DESC&limit=25&publisher-id=1777564992&semcreative-id=1777564992&semcreative-id-notin=1777564992&semcreative-name=my-test-semcreative&semcreative-name-exact=1&semcreativegroup-id=1777564992&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&publisher-id=1777564992&semcreative-id=1777564992&semcreative-id-notin=1777564992&semcreative-name=my-test-semcreative&semcreative-name-exact=1&semcreativegroup-id=1777564992&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreative/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semcreativegroup/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new semcreativegroup.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semcreativegroup&method=create"
            },
            "operationId" : "createSEMCreativeGroup",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the semcreativegroup",
                  "example" : "my-test-semcreativegroup-name",
                  "in" : "query",
                  "name" : "semcreativegroup-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semcreativegroup_id"
                                 },
                                 {
                                    "name" : "semcreativegroup_name"
                                 },
                                 {
                                    "name" : "semcreativegroup_visible"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992,
                                    "Test SEMCreativeGroup",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new semcreativegroup.",
            "tags" : [
               "SEM CreativeGroup"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"semcreativegroup-name=my-test-semcreativegroup-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'semcreativegroup-name' => 'my-test-semcreativegroup-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('semcreativegroup-name=my-test-semcreativegroup-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'semcreativegroup-name' : 'my-test-semcreativegroup-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semcreativegroup/exists.json" : {
         "get" : {
            "description" : "This query will check if a semcreativegroup name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semcreativegroup&method=exists"
            },
            "operationId" : "existsSEMCreativeGroup",
            "parameters" : [
               {
                  "description" : "name of the semcreativegroup to check",
                  "example" : "my-test-semcreativegroup",
                  "in" : "query",
                  "name" : "semcreativegroup-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semcreativegroup_id"
                                 },
                                 {
                                    "name" : "semcreativegroup_name"
                                 },
                                 {
                                    "name" : "semcreativegroup_visible"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992,
                                    "Test SEMCreativeGroup",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a semcreativegroup exists",
            "tags" : [
               "SEM CreativeGroup"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/exists.json?semcreativegroup-name=my-test-semcreativegroup\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/exists.json?semcreativegroup-name=my-test-semcreativegroup',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/exists.json?semcreativegroup-name=my-test-semcreativegroup');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'semcreativegroup-name=my-test-semcreativegroup'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semcreativegroup/link.json" : {
         "post" : {
            "description" : "This query will link provided semcreative to the the provided semcreativegroup.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semcreativegroup&method=link"
            },
            "operationId" : "linkSEMCreativeGroup",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the semcreativegroup for which you want to link the semcreative",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semcreativegroup-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the semcreative you want to link, you can provide 100 at a time separated by commas. You need to provide at least semcreative-id or semcreative-name. If you provide semcreative-id and semcreative-name we will cumulate the both entries.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semcreative-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the semcreative as provided by the platform in the tracking tags, usually the creative id, you can provide 100 at a time separated by commas.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semcreative-name",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semcreativegroup_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Link semcreative",
            "tags" : [
               "SEM CreativeGroup"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"semcreative-id=1777564992&semcreative-name=1777564992&semcreativegroup-id=1777564992\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/link.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'semcreative-id' => '1777564992',\n'semcreative-name' => '1777564992',\n'semcreativegroup-id' => '1777564992'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/link.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/link.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('semcreative-id=1777564992&semcreative-name=1777564992&semcreativegroup-id=1777564992');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'semcreative-id' : '1777564992',\n'semcreative-name' : '1777564992',\n'semcreativegroup-id' : '1777564992'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semcreativegroup/modify.json" : {
         "post" : {
            "description" : "This query allows for updating an existing semcreativegroup.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semcreativegroup&method=modify"
            },
            "operationId" : "modifySEMCreativeGroup",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the semcreativegroup for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semcreativegroup-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new semcreativegroup name",
                  "example" : "New-name",
                  "in" : "query",
                  "name" : "semcreativegroup-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on visible flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "semcreativegroup-visible",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semcreativegroup_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Update an existing semcreativegroup.",
            "tags" : [
               "SEM CreativeGroup"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"semcreativegroup-id=1777564992&semcreativegroup-name=New-name&semcreativegroup-visible=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/modify.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'semcreativegroup-id' => '1777564992',\n'semcreativegroup-name' => 'New-name',\n'semcreativegroup-visible' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/modify.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/modify.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('semcreativegroup-id=1777564992&semcreativegroup-name=New-name&semcreativegroup-visible=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'semcreativegroup-id' : '1777564992',\n'semcreativegroup-name' : 'New-name',\n'semcreativegroup-visible' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semcreativegroup/remove.json" : {
         "delete" : {
            "description" : "This query will remove the semcreativegroup & all the links for the previously linked semcreative.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semcreativegroup&method=remove"
            },
            "operationId" : "removeSEMCreativeGroup",
            "parameters" : [
               {
                  "description" : "id of the semcreativegroup for which you want to unlink the semcreative",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semcreativegroup-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semcreativegroup_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Remove semcreativegroup",
            "tags" : [
               "SEM CreativeGroup"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X DELETE \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/remove.json?semcreativegroup-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/remove.json?semcreativegroup-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/remove.json?semcreativegroup-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'semcreativegroup-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/remove.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semcreativegroup/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semcreativegroup&method=search"
            },
            "operationId" : "searchSEMCreativeGroup",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "internal id of the semcreativegroup you want",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semcreativegroup-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the semcreativegroup",
                  "example" : "my-test-semcreativegroup",
                  "in" : "query",
                  "name" : "semcreativegroup-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "semcreativegroup-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on visible flag",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semcreativegroup-visible",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semcreativegroup_id"
                                 },
                                 {
                                    "name" : "semcreativegroup_name"
                                 },
                                 {
                                    "name" : "semcreativegroup_visible"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992,
                                    "Test SEMCreativeGroup",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "SEM CreativeGroup"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/search.json?dir=DESC&limit=25&semcreativegroup-id=1777564992&semcreativegroup-name=my-test-semcreativegroup&semcreativegroup-name-exact=1&semcreativegroup-visible=1777564992&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/search.json?dir=DESC&limit=25&semcreativegroup-id=1777564992&semcreativegroup-name=my-test-semcreativegroup&semcreativegroup-name-exact=1&semcreativegroup-visible=1777564992&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/search.json?dir=DESC&limit=25&semcreativegroup-id=1777564992&semcreativegroup-name=my-test-semcreativegroup&semcreativegroup-name-exact=1&semcreativegroup-visible=1777564992&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&semcreativegroup-id=1777564992&semcreativegroup-name=my-test-semcreativegroup&semcreativegroup-name-exact=1&semcreativegroup-visible=1777564992&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/semcreativegroup/unlink.json" : {
         "post" : {
            "description" : "This query will unlink all semcreative linked to the provided semcreativegroup.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=semcreativegroup&method=unlink"
            },
            "operationId" : "unlinkSEMCreativeGroup",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the semcreativegroup for which you want to unlink the semcreative",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "semcreativegroup-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "semcreativegroup_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    0
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Unlink all semcreative",
            "tags" : [
               "SEM CreativeGroup"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"semcreativegroup-id=1777564992\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/unlink.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'semcreativegroup-id' => '1777564992'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/unlink.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/semcreativegroup/unlink.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('semcreativegroup-id=1777564992');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'semcreativegroup-id' : '1777564992'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/shop/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new shop.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=shop&method=create"
            },
            "operationId" : "createShop",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the shop template",
                  "example" : "my-test-shop-key",
                  "in" : "query",
                  "name" : "shop-key",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "shop_id"
                                 },
                                 {
                                    "name" : "shop_key"
                                 },
                                 {
                                    "name" : "shop_desc"
                                 },
                                 {
                                    "name" : "shop_latitude"
                                 },
                                 {
                                    "name" : "shop_longitude"
                                 },
                                 {
                                    "name" : "shop_visible"
                                 },
                                 {
                                    "name" : "omnichannelgroup1_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup2_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup3_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup4_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup5_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "012365",
                                    "Paris 75015",
                                    0.235,
                                    17.253,
                                    "Y",
                                    0,
                                    0,
                                    0,
                                    0,
                                    0
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new shop entry.",
            "tags" : [
               "Shop"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"shop-key=my-test-shop-key\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/shop/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'shop-key' => 'my-test-shop-key'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/shop/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/shop/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('shop-key=my-test-shop-key');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'shop-key' : 'my-test-shop-key'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/shop/exists.json" : {
         "get" : {
            "description" : "This query will check if a shop-key exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=shop&method=exists"
            },
            "operationId" : "existsShop",
            "parameters" : [
               {
                  "description" : "name of the shop to check",
                  "example" : "my-test-shop",
                  "in" : "query",
                  "name" : "shop-key",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "shop_id"
                                 },
                                 {
                                    "name" : "shop_key"
                                 },
                                 {
                                    "name" : "shop_desc"
                                 },
                                 {
                                    "name" : "shop_latitude"
                                 },
                                 {
                                    "name" : "shop_longitude"
                                 },
                                 {
                                    "name" : "shop_visible"
                                 },
                                 {
                                    "name" : "omnichannelgroup1_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup2_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup3_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup4_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup5_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "012365",
                                    "Paris 75015",
                                    0.235,
                                    17.253,
                                    "Y",
                                    0,
                                    0,
                                    0,
                                    0,
                                    0
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a shop-key exists",
            "tags" : [
               "Shop"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/shop/exists.json?shop-key=my-test-shop\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/shop/exists.json?shop-key=my-test-shop',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/shop/exists.json?shop-key=my-test-shop');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'shop-key=my-test-shop'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/shop/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/shop/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=shop&method=search"
            },
            "operationId" : "searchShop",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the shop",
                  "example" : "my-test-shop",
                  "in" : "query",
                  "name" : "shop-key",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "shop-key-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on visible flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "shop-visible",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "shop_id"
                                 },
                                 {
                                    "name" : "shop_key"
                                 },
                                 {
                                    "name" : "shop_desc"
                                 },
                                 {
                                    "name" : "shop_latitude"
                                 },
                                 {
                                    "name" : "shop_longitude"
                                 },
                                 {
                                    "name" : "shop_visible"
                                 },
                                 {
                                    "name" : "omnichannelgroup1_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup2_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup3_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup4_id"
                                 },
                                 {
                                    "name" : "omnichannelgroup5_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1,
                                    "012365",
                                    "Paris 75015",
                                    0.235,
                                    17.253,
                                    "Y",
                                    0,
                                    0,
                                    0,
                                    0,
                                    0
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Shop"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/shop/search.json?dir=DESC&limit=25&shop-key=my-test-shop&shop-key-exact=1&shop-visible=Y&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/shop/search.json?dir=DESC&limit=25&shop-key=my-test-shop&shop-key-exact=1&shop-visible=Y&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/shop/search.json?dir=DESC&limit=25&shop-key=my-test-shop&shop-key-exact=1&shop-visible=Y&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&shop-key=my-test-shop&shop-key-exact=1&shop-visible=Y&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/shop/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/shop/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing shop.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=shop&method=update"
            },
            "operationId" : "updateShop",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the shop for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "shop-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new shop name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "shop-key",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new shop description",
                  "example" : "My Shop Name",
                  "in" : "query",
                  "name" : "shop-desc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "latitude of the shop",
                  "example" : 2.32655,
                  "in" : "query",
                  "name" : "shop-latitude",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "longitude of the shop",
                  "example" : 25.32655,
                  "in" : "query",
                  "name" : "shop-longitude",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the visible attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "shop-visible",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "shop_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchShop" : {
                        "description" : "Use the value of shop_id entry to update a shop through shop-id parameter.",
                        "operationId" : "searchShop",
                        "parameters" : {
                           "shop-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing shop.",
            "tags" : [
               "Shop"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"shop-desc=My%20Shop%20Name&shop-id=1777564992&shop-key=New%20name&shop-latitude=2.32655&shop-longitude=25.32655&shop-visible=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/shop/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'shop-desc' => 'My Shop Name',\n'shop-id' => '1777564992',\n'shop-key' => 'New name',\n'shop-latitude' => '2.32655',\n'shop-longitude' => '25.32655',\n'shop-visible' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/shop/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/shop/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('shop-desc=My%20Shop%20Name&shop-id=1777564992&shop-key=New%20name&shop-latitude=2.32655&shop-longitude=25.32655&shop-visible=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'shop-desc' : 'My%20Shop%20Name',\n'shop-id' : '1777564992',\n'shop-key' : 'New%20name',\n'shop-latitude' : '2.32655',\n'shop-longitude' : '25.32655',\n'shop-visible' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/subkey2/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new subkey2.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=subkey2&method=create"
            },
            "operationId" : "createSubKey2",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the subkey2 as seen in the reporting interface.",
                  "example" : "my-test-subkey2-name",
                  "in" : "query",
                  "name" : "subkey2-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate the triggerk of the subkey2, the subkey2 are sorted by this value, a user cannot go back. This is the name of the param provided to the datalayer to categorize the user.",
                  "example" : "is-logged",
                  "in" : "query",
                  "name" : "subkey2-triggerk",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate the value of the param that triggers the fact the user is categorize in this subkey2.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "subkey2-triggerv",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "subkey2_id"
                                 },
                                 {
                                    "name" : "subkey2_name"
                                 },
                                 {
                                    "name" : "subkey2_triggerk"
                                 },
                                 {
                                    "name" : "subkey2_triggerv"
                                 },
                                 {
                                    "name" : "subkey2_active"
                                 },
                                 {
                                    "name" : "subkey2_sort"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "Logged",
                                    "my-param",
                                    "is-logged",
                                    "/homepage",
                                    "Y",
                                    0
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new subkey2 entry.",
            "tags" : [
               "SubKey2"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"subkey2-name=my-test-subkey2-name&subkey2-triggerk=is-logged&subkey2-triggerv=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'subkey2-name' => 'my-test-subkey2-name',\n'subkey2-triggerk' => 'is-logged',\n'subkey2-triggerv' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('subkey2-name=my-test-subkey2-name&subkey2-triggerk=is-logged&subkey2-triggerv=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'subkey2-name' : 'my-test-subkey2-name',\n'subkey2-triggerk' : 'is-logged',\n'subkey2-triggerv' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/subkey2/create_cancelkey.json" : {
         "post" : {
            "description" : "This query allows for creating a subkey2 cancel key, that is useful if you want to stop categorizeing a user for a specific case. You can have only one cancel key.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=subkey2&method=create_cancelkey"
            },
            "operationId" : "createCancelkeySubKey2",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the subkey2 as seen in the reporting interface.",
                  "example" : "my-test-subkey2-name",
                  "in" : "query",
                  "name" : "subkey2-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate the triggerk of the subkey2, the subkey2 are sorted by this value, a user cannot go back. This is the name of the param provided to the datalayer to categorize the user.",
                  "example" : "is-logged",
                  "in" : "query",
                  "name" : "subkey2-triggerk",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate the value of the param that triggers the fact the user is categorize in this subkey2.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "subkey2-triggerv",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "subkey2_id"
                                 },
                                 {
                                    "name" : "subkey2_name"
                                 },
                                 {
                                    "name" : "subkey2_triggerk"
                                 },
                                 {
                                    "name" : "subkey2_triggerv"
                                 },
                                 {
                                    "name" : "subkey2_active"
                                 },
                                 {
                                    "name" : "subkey2_sort"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "Logged",
                                    "my-param",
                                    "is-logged",
                                    "/homepage",
                                    "Y",
                                    0
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a subkey2 cancel key.",
            "tags" : [
               "SubKey2"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"subkey2-name=my-test-subkey2-name&subkey2-triggerk=is-logged&subkey2-triggerv=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/create_cancelkey.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'subkey2-name' => 'my-test-subkey2-name',\n'subkey2-triggerk' => 'is-logged',\n'subkey2-triggerv' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/create_cancelkey.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/create_cancelkey.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('subkey2-name=my-test-subkey2-name&subkey2-triggerk=is-logged&subkey2-triggerv=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'subkey2-name' : 'my-test-subkey2-name',\n'subkey2-triggerk' : 'is-logged',\n'subkey2-triggerv' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/subkey2/exists.json" : {
         "get" : {
            "description" : "This query will check if a subkey2-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=subkey2&method=exists"
            },
            "operationId" : "existsSubKey2",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the subkey2 to check",
                  "example" : "my-test-subkey2",
                  "in" : "query",
                  "name" : "subkey2-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "subkey2_id"
                                 },
                                 {
                                    "name" : "subkey2_name"
                                 },
                                 {
                                    "name" : "subkey2_triggerk"
                                 },
                                 {
                                    "name" : "subkey2_triggerv"
                                 },
                                 {
                                    "name" : "subkey2_active"
                                 },
                                 {
                                    "name" : "subkey2_sort"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "Logged",
                                    "my-param",
                                    "is-logged",
                                    "/homepage",
                                    "Y",
                                    0
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a subkey2-name exists",
            "tags" : [
               "SubKey2"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/exists.json?subkey2-name=my-test-subkey2\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/exists.json?subkey2-name=my-test-subkey2',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/exists.json?subkey2-name=my-test-subkey2');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'subkey2-name=my-test-subkey2'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/subkey2/remove_cancelkey.json" : {
         "delete" : {
            "description" : "This query allows for removing a subkey2 cancel key, thi means that user will stay in the last status he was set to.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=subkey2&method=remove_cancelkey"
            },
            "operationId" : "removeCancelkeySubKey2",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "subkey2_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "0"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Remove a subkey2 cancel key.",
            "tags" : [
               "SubKey2"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X DELETE \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/remove_cancelkey.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/remove_cancelkey.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/remove_cancelkey.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/remove_cancelkey.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/subkey2/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=subkey2&method=search"
            },
            "operationId" : "searchSubKey2",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "subkey2-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the subkey2",
                  "example" : "my-test-subkey2",
                  "in" : "query",
                  "name" : "subkey2-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "subkey2-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "triggerk of the subkey2",
                  "example" : 2,
                  "in" : "query",
                  "name" : "subkey2-triggerk",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "LIKE search on triggerv",
                  "example" : "Test",
                  "in" : "query",
                  "name" : "subkey2-triggerv",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "subkey2_id"
                                 },
                                 {
                                    "name" : "subkey2_name"
                                 },
                                 {
                                    "name" : "subkey2_triggerk"
                                 },
                                 {
                                    "name" : "subkey2_triggerv"
                                 },
                                 {
                                    "name" : "subkey2_active"
                                 },
                                 {
                                    "name" : "subkey2_sort"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "Logged",
                                    "my-param",
                                    "is-logged",
                                    "/homepage",
                                    "Y",
                                    0
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "SubKey2"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/search.json?dir=DESC&limit=25&start=0&subkey2-active=Y&subkey2-name=my-test-subkey2&subkey2-name-exact=1&subkey2-triggerk=2&subkey2-triggerv=Test\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/search.json?dir=DESC&limit=25&start=0&subkey2-active=Y&subkey2-name=my-test-subkey2&subkey2-name-exact=1&subkey2-triggerk=2&subkey2-triggerv=Test',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/search.json?dir=DESC&limit=25&start=0&subkey2-active=Y&subkey2-name=my-test-subkey2&subkey2-name-exact=1&subkey2-triggerk=2&subkey2-triggerv=Test');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&start=0&subkey2-active=Y&subkey2-name=my-test-subkey2&subkey2-name-exact=1&subkey2-triggerk=2&subkey2-triggerv=Test'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/subkey2/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing subkey2.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=subkey2&method=update"
            },
            "operationId" : "updateSubKey2",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the subkey2 for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "subkey2-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new name of the subkey2 as seen in the reporting interface.",
                  "example" : "new-my-test-subkey2-name",
                  "in" : "query",
                  "name" : "subkey2-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate the new triggerk of the subkey2, the subkey2 are sorted by this value, a user cannot go back. This is the name of the param provided to the datalayer to categorize the user.",
                  "example" : "is-logged",
                  "in" : "query",
                  "name" : "subkey2-triggerk",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate the new value of the param that triggers the fact the user is categorize in this subkey2.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "subkey2-triggerv",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "subkey2_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchSubKey2" : {
                        "description" : "Use the value of subkey2_id entry to update a subkey2 through subkey2-id parameter.",
                        "operationId" : "searchSubKey2",
                        "parameters" : {
                           "subkey2-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing subkey2.",
            "tags" : [
               "SubKey2"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"subkey2-id=1777564992&subkey2-name=new-my-test-subkey2-name&subkey2-triggerk=is-logged&subkey2-triggerv=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'subkey2-id' => '1777564992',\n'subkey2-name' => 'new-my-test-subkey2-name',\n'subkey2-triggerk' => 'is-logged',\n'subkey2-triggerv' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/subkey2/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('subkey2-id=1777564992&subkey2-name=new-my-test-subkey2-name&subkey2-triggerk=is-logged&subkey2-triggerv=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'subkey2-id' : '1777564992',\n'subkey2-name' : 'new-my-test-subkey2-name',\n'subkey2-triggerk' : 'is-logged',\n'subkey2-triggerv' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/submedia/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new virtual subchannel.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=submedia&method=create"
            },
            "operationId" : "createVirtualSubChannel",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the virtual subchannel",
                  "example" : "my-test-submedia-name",
                  "in" : "query",
                  "name" : "submedia-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the media to which the virtual subchannel will be linked.",
                  "example" : 2,
                  "in" : "query",
                  "name" : "media-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "submedia_id"
                                 },
                                 {
                                    "name" : "submedia_name"
                                 },
                                 {
                                    "name" : "media_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "Affliate",
                                    "4"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a virtual subchannel.",
            "tags" : [
               "Virtual SubChannel"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"media-id=2&submedia-name=my-test-submedia-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/submedia/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'media-id' => '2',\n'submedia-name' => 'my-test-submedia-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/submedia/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/submedia/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('media-id=2&submedia-name=my-test-submedia-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'media-id' : '2',\n'submedia-name' : 'my-test-submedia-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/submedia/exists.json" : {
         "get" : {
            "description" : "This query will check if a submedia-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=submedia&method=exists"
            },
            "operationId" : "existsVirtualSubChannel",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the virtual subchannel to check",
                  "example" : "my-test-submedia",
                  "in" : "query",
                  "name" : "submedia-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "submedia_id"
                                 },
                                 {
                                    "name" : "submedia_name"
                                 },
                                 {
                                    "name" : "media_id"
                                 },
                                 {
                                    "name" : "submediagroup_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "Affliate",
                                    "4",
                                    "0"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a submedia-name exists",
            "tags" : [
               "Virtual SubChannel"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/submedia/exists.json?submedia-name=my-test-submedia\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/submedia/exists.json?submedia-name=my-test-submedia',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/submedia/exists.json?submedia-name=my-test-submedia');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'submedia-name=my-test-submedia'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/submedia/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/submedia/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=submedia&method=search"
            },
            "operationId" : "searchVirtualSubChannel",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "id of the media for which you want the linked virtual subchannel",
                  "example" : "2",
                  "in" : "query",
                  "name" : "media-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the virtual subchannel",
                  "example" : "my-test-submedia",
                  "in" : "query",
                  "name" : "submedia-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "submedia-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "submedia_id"
                                 },
                                 {
                                    "name" : "submedia_name"
                                 },
                                 {
                                    "name" : "media_id"
                                 },
                                 {
                                    "name" : "submediagroup_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "Affliate",
                                    "4",
                                    "0"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Virtual SubChannel"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/submedia/search.json?dir=DESC&limit=25&media-id=2&start=0&submedia-name=my-test-submedia&submedia-name-exact=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/submedia/search.json?dir=DESC&limit=25&media-id=2&start=0&submedia-name=my-test-submedia&submedia-name-exact=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/submedia/search.json?dir=DESC&limit=25&media-id=2&start=0&submedia-name=my-test-submedia&submedia-name-exact=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&media-id=2&start=0&submedia-name=my-test-submedia&submedia-name-exact=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/submedia/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/submedia/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing submedia.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=submedia&method=update"
            },
            "operationId" : "updateVirtualSubChannel",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the submedia for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "submedia-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new submedia name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "submedia-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the media for which you want the linked virtual subchannel",
                  "example" : "2",
                  "in" : "query",
                  "name" : "media-id",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "submedia_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchVirtualSubChannel" : {
                        "description" : "Use the value of submedia_id entry to update a submedia through submedia-id parameter.",
                        "operationId" : "searchVirtualSubChannel",
                        "parameters" : {
                           "submedia-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing submedia.",
            "tags" : [
               "Virtual SubChannel"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"media-id=2&submedia-id=1777564992&submedia-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/submedia/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'media-id' => '2',\n'submedia-id' => '1777564992',\n'submedia-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/submedia/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/submedia/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('media-id=2&submedia-id=1777564992&submedia-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'media-id' : '2',\n'submedia-id' : '1777564992',\n'submedia-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/syncpartner/download.json" : {
         "get" : {
            "description" : "Once the status is COMPLETED, download the file for the given partner.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=syncpartner&method=download"
            },
            "operationId" : "downloadEPC",
            "parameters" : [
               {
                  "description" : "the id of the job as provided by raw and testing",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Download EPC partner file",
            "tags" : [
               "EPC"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/download.json?jobrun-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/download.json?jobrun-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/download.json?jobrun-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/download.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/syncpartner/exists.json" : {
         "get" : {
            "description" : "This query will check if an EPC name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=syncpartner&method=exists"
            },
            "operationId" : "existsEPC",
            "parameters" : [
               {
                  "description" : "name of the EPC to check",
                  "example" : "my-test-EPC",
                  "in" : "query",
                  "name" : "job-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_datecreate"
                                 },
                                 {
                                    "name" : "websitegrid_id"
                                 },
                                 {
                                    "name" : "job_type"
                                 },
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "account_id"
                                 },
                                 {
                                    "name" : "job_dateupdate"
                                 },
                                 {
                                    "name" : "job_active"
                                 },
                                 {
                                    "name" : "job_params"
                                 },
                                 {
                                    "name" : "job_dw"
                                 },
                                 {
                                    "name" : "job_oneshotrun"
                                 },
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_crontab"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "2",
                                       "EPC",
                                       "my EPC",
                                       "115",
                                       "0",
                                       "Y",
                                       "XML describing the EPC",
                                       "N",
                                       "N",
                                       "286",
                                       "0 9 * * *"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if an EPC exists",
            "tags" : [
               "EPC"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/exists.json?job-name=my-test-EPC\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/exists.json?job-name=my-test-EPC',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/exists.json?job-name=my-test-EPC');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'job-name=my-test-EPC'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/syncpartner/last_status.json" : {
         "get" : {
            "description" : "Given an EPC check the latest status.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=syncpartner&method=last_status"
            },
            "operationId" : "lastStatusEPC",
            "parameters" : [
               {
                  "description" : "the id of the EPC as provided by the search.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 },
                                 {
                                    "name" : "jobrun_status"
                                 },
                                 {
                                    "name" : "jobrun_tm_format"
                                 },
                                 {
                                    "name" : "jobrun_statustm_format"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649921777564992",
                                    "COMPLETED",
                                    "2019-03-04 12:32:56",
                                    "2019-03-04 14:34:01"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Latest status of an EPC",
            "tags" : [
               "EPC"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/last_status.json?job-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/last_status.json?job-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/last_status.json?job-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'job-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/last_status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/syncpartner/mapping.json" : {
         "get" : {
            "description" : "This query will return the detailed configuration of the EPC with some additional information in json format.\n> Only **Eulerian** staff can call this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=syncpartner&method=mapping"
            },
            "operationId" : "mappingEPC",
            "parameters" : [
               {
                  "description" : "id of the EPC to work on",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "config"
                                 },
                                 {
                                    "name" : "job_params"
                                 },
                                 {
                                    "name" : "job_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "{\"epoch\":{\"format\":\"%Y-%m-%d\",\"key\":\"date_start\"},\"publisher\":{\"remap\":[\"audience_network=an\",\"messenger=msg\",\"instagram=ig\",\"facebook=fb\"],\"key\":\"publisher_platform\"},\"ope\":{\"key\":\"campaign_id\",\"format\":\"$ope-$publisher\"},\"creativealias\":{\"key\":\"ad_name\"},\"locationalias\":{\"key\":\"adset_name\",\"format\":\"$locationalias-$publisher\"},\"external_click\":{\"key\":\"outbound_clicks/0/value\"},\"external_cost\":{\"key\":\"spend\"},\"external_view\":{\"key\":\"impressions\"},\"media\":{\"format\":\"sc\"},\"creative\":{\"key\":\"ad_id\"},\"opealias\":{\"key\":\"campaign_name\",\"format\":\"$opealias-$publisher\"},\"location\":{\"key\":\"adset_id\",\"format\":\"$location-$publisher\"}}",
                                       "<ea type=\"sync-partner\"><gridpool name=\"dem\" /><website id=\"75\" /><platform type=\"googleadwordsadgroup\" oauth=\"389\"><publisher id=\"10001\"/><client_id><![CDATA[259-424-9086]]></client_id></platform></ea>",
                                       "preprod - eulerianmmedia : 18/11/23"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get mapping configuration from target cost EPC in json format for debug purposes",
            "tags" : [
               "EPC"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/mapping.json?job-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/mapping.json?job-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/mapping.json?job-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'job-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/mapping.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/syncpartner/raw.json" : {
         "post" : {
            "description" : "This API is useful for debugging purposes when you need to examine the raw data sent by the partner. ",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=syncpartner&method=raw"
            },
            "operationId" : "rawEPC",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the id of the EPC to be relaunched in raw mode.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Date from which the time range starts: DD/MM/YYYY format",
                  "example" : "02/12/2020",
                  "in" : "query",
                  "name" : "date-from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Date to which the time range ends: DD/MM/YYYY format",
                  "example" : "05/12/2020",
                  "in" : "query",
                  "name" : "date-to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 },
                                 {
                                    "name" : "job_params"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649921777564992"
                                 ],
                                 [
                                    "<ea type=\"syncpartner\"><gridpool name=\"dem\" /><website id=\"1\" /></ea>"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Relaunch an EPC in raw mode.",
            "tags" : [
               "EPC"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"date-from=02%2F12%2F2020&date-to=05%2F12%2F2020&job-id=1777564992\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/raw.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'date-from' => '02/12/2020',\n'date-to' => '05/12/2020',\n'job-id' => '1777564992'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/raw.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/raw.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('date-from=02%2F12%2F2020&date-to=05%2F12%2F2020&job-id=1777564992');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'date-from' : '02%2F12%2F2020',\n'date-to' : '05%2F12%2F2020',\n'job-id' : '1777564992'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/syncpartner/relaunch.json" : {
         "post" : {
            "description" : "This API is useful when a EPC has failed and you want to re-launch it with the same configuration.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=syncpartner&method=relaunch"
            },
            "operationId" : "relaunchEPC",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the id of the EPC to be relaunched.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 },
                                 {
                                    "name" : "job_params"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649921777564992"
                                 ],
                                 [
                                    "<ea type=\"syncpartner\"><gridpool name=\"dem\" /><website id=\"1\" /></ea>"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Relaunch an EPC.",
            "tags" : [
               "EPC"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"job-id=1777564992\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/relaunch.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'job-id' => '1777564992'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/relaunch.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/relaunch.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('job-id=1777564992');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'job-id' : '1777564992'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/syncpartner/reset_data.json" : {
         "get" : {
            "description" : "This query will reset external data synchronized by an EPC, for the given time range.\n> Only **Eulerian** staff can call this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=syncpartner&method=reset_data"
            },
            "operationId" : "resetDataEPC",
            "parameters" : [
               {
                  "description" : "Date from which the time range starts: DD/MM/YYYY format",
                  "example" : "02/12/2020",
                  "in" : "query",
                  "name" : "date-from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Date to which the time range ends: DD/MM/YYYY",
                  "example" : "05/12/2020",
                  "in" : "query",
                  "name" : "date-to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the EPC to work on",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Force target publisher",
                  "example" : "Google",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : false,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "reset external data hour by hour",
                  "example" : "H",
                  "in" : "query",
                  "name" : "scale",
                  "required" : false,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "date_from_epoch"
                                 },
                                 {
                                    "name" : "date_to_epoch"
                                 },
                                 {
                                    "name" : "date_from_tm"
                                 },
                                 {
                                    "name" : "date_to_tm"
                                 },
                                 {
                                    "name" : "entries_updated"
                                 },
                                 {
                                    "name" : "job_params"
                                 },
                                 {
                                    "name" : "job_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       1604185200,
                                       1604271600,
                                       "Sun Nov  1 00:00:00 2020",
                                       "Mon Nov  2 00:00:00 2020",
                                       39622,
                                       "<ea type=\"sync-partner\"><gridpool name=\"dem\" /><website id=\"75\" /><platform type=\"googleadwordsadgroup\" oauth=\"389\"><publisher id=\"10001\"/><client_id><![CDATA[259-424-9086]]></client_id></platform></ea>",
                                       "preprod - googleadwordsadgroup : 18/11/20"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Reset data synchronized by an EPC",
            "tags" : [
               "EPC"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/reset_data.json?date-from=02%2F12%2F2020&date-to=05%2F12%2F2020&job-id=1777564992&publisher=Google&scale=H\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/reset_data.json?date-from=02/12/2020&date-to=05/12/2020&job-id=1777564992&publisher=Google&scale=H',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/reset_data.json?date-from=02/12/2020&date-to=05/12/2020&job-id=1777564992&publisher=Google&scale=H');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'date-from=02%2F12%2F2020&date-to=05%2F12%2F2020&job-id=1777564992&publisher=Google&scale=H'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/reset_data.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/syncpartner/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=syncpartner&method=search"
            },
            "operationId" : "searchEPC",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "family of EPC you want to filter on",
                  "example" : "segment",
                  "in" : "query",
                  "name" : "family",
                  "schema" : {
                     "enum" : [
                        "asyncoutput",
                        "collect",
                        "datafirst",
                        "datathird",
                        "segment"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "job-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the EPC",
                  "example" : "my-test-EPC",
                  "in" : "query",
                  "name" : "job-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_datecreate"
                                 },
                                 {
                                    "name" : "websitegrid_id"
                                 },
                                 {
                                    "name" : "job_type"
                                 },
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "account_id"
                                 },
                                 {
                                    "name" : "job_dateupdate"
                                 },
                                 {
                                    "name" : "job_active"
                                 },
                                 {
                                    "name" : "job_params"
                                 },
                                 {
                                    "name" : "job_dw"
                                 },
                                 {
                                    "name" : "job_oneshotrun"
                                 },
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_crontab"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "2",
                                       "EPC",
                                       "my EPC",
                                       "115",
                                       "0",
                                       "Y",
                                       "XML describing the EPC",
                                       "N",
                                       "N",
                                       "286",
                                       "0 9 * * *"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "EPC"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/search.json?dir=DESC&family=segment&job-active=Y&job-name=my-test-EPC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/search.json?dir=DESC&family=segment&job-active=Y&job-name=my-test-EPC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/search.json?dir=DESC&family=segment&job-active=Y&job-name=my-test-EPC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&family=segment&job-active=Y&job-name=my-test-EPC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/syncpartner/status.json" : {
         "get" : {
            "description" : "Given an EPC, return the history of generation.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=syncpartner&method=status"
            },
            "operationId" : "statusEPC",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the id of the EPC as provided by the search.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the execution process for a specific EPC. Useful to check the execution after a relaunch.",
                  "example" : "17775649921777564992",
                  "in" : "query",
                  "name" : "jobrun_id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 },
                                 {
                                    "name" : "jobrun_status"
                                 },
                                 {
                                    "name" : "jobrun_tm_format"
                                 },
                                 {
                                    "name" : "jobrun_statustm_format"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649921777564992",
                                    "COMPLETED",
                                    "2019-03-04 12:32:56",
                                    "2019-03-04 14:34:01"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "List status of an EPC",
            "tags" : [
               "EPC"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/status.json?dir=DESC&job-id=1777564992&jobrun_id=17775649921777564992&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/status.json?dir=DESC&job-id=1777564992&jobrun_id=17775649921777564992&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/status.json?dir=DESC&job-id=1777564992&jobrun_id=17775649921777564992&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&job-id=1777564992&jobrun_id=17775649921777564992&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/syncpartner/testing.json" : {
         "post" : {
            "description" : "This API is useful for debugging purposes when you need to examine the data sent by the partner after processing.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=syncpartner&method=testing"
            },
            "operationId" : "testingEPC",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the id of the EPC to be relaunched in testing mode.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Date from which the time range starts: DD/MM/YYYY format",
                  "example" : "02/12/2020",
                  "in" : "query",
                  "name" : "date-from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Date to which the time range ends: DD/MM/YYYY format",
                  "example" : "05/12/2020",
                  "in" : "query",
                  "name" : "date-to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Add a config object (see mapping handler) to test different mapping rules",
                  "example" : "{\"mapping\":{\"location\":{\"format\":\"$location-$ope-$publisher\",\"matching\":\"adset_id\"},\"creative\":{\"matching\":\"ad\",\"format\":\"test-$creative\"}},\"flags\":[\"locationsoftcheck\"]}",
                  "in" : "query",
                  "name" : "config",
                  "required" : false,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 },
                                 {
                                    "name" : "job_params"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649921777564992"
                                 ],
                                 [
                                    "<ea type=\"syncpartner\"><gridpool name=\"dem\" /><website id=\"1\" /></ea>"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Relaunch an EPC in testing mode",
            "tags" : [
               "EPC"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"config=%7B%22mapping%22%3A%7B%22location%22%3A%7B%22format%22%3A%22%24location-%24ope-%24publisher%22%2C%22matching%22%3A%22adset_id%22%7D%2C%22creative%22%3A%7B%22matching%22%3A%22ad%22%2C%22format%22%3A%22test-%24creative%22%7D%7D%2C%22flags%22%3A%5B%22locationsoftcheck%22%5D%7D&date-from=02%2F12%2F2020&date-to=05%2F12%2F2020&job-id=1777564992\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/testing.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'config' => '{\"mapping\":{\"location\":{\"format\":\"$location-$ope-$publisher\",\"matching\":\"adset_id\"},\"creative\":{\"matching\":\"ad\",\"format\":\"test-$creative\"}},\"flags\":[\"locationsoftcheck\"]}',\n'date-from' => '02/12/2020',\n'date-to' => '05/12/2020',\n'job-id' => '1777564992'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/testing.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/testing.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('config=%7B%22mapping%22%3A%7B%22location%22%3A%7B%22format%22%3A%22%24location-%24ope-%24publisher%22%2C%22matching%22%3A%22adset_id%22%7D%2C%22creative%22%3A%7B%22matching%22%3A%22ad%22%2C%22format%22%3A%22test-%24creative%22%7D%7D%2C%22flags%22%3A%5B%22locationsoftcheck%22%5D%7D&date-from=02%2F12%2F2020&date-to=05%2F12%2F2020&job-id=1777564992');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'config' : '%7B%22mapping%22%3A%7B%22location%22%3A%7B%22format%22%3A%22%24location-%24ope-%24publisher%22%2C%22matching%22%3A%22adset_id%22%7D%2C%22creative%22%3A%7B%22matching%22%3A%22ad%22%2C%22format%22%3A%22test-%24creative%22%7D%7D%2C%22flags%22%3A%5B%22locationsoftcheck%22%5D%7D',\n'date-from' : '02%2F12%2F2020',\n'date-to' : '05%2F12%2F2020',\n'job-id' : '1777564992'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/syncpartner/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing EPC.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=syncpartner&method=update"
            },
            "operationId" : "updateEPC",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the EPC for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new EPC name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "job-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the active attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "job-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "set new params for the job",
                  "example" : "<ea type=\"syncpartner\"><gridpool name=\"dem\" /><website id=\"1\" /></ea>",
                  "in" : "query",
                  "name" : "job-params",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_params"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ],
                                 [
                                    "<ea type=\"syncpartner\"><gridpool name=\"dem\" /><website id=\"1\" /></ea>"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchEPC" : {
                        "description" : "Use the value of syncpartner_id entry to update a syncpartner through syncpartner-id parameter.",
                        "operationId" : "searchEPC",
                        "parameters" : {
                           "syncpartner-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an EPC",
            "tags" : [
               "EPC"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"job-active=Y&job-id=1777564992&job-name=New%20name&job-params=%3Cea%20type\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'job-active' => 'Y',\n'job-id' => '1777564992',\n'job-name' => 'New name',\n'job-params' => '<ea type'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('job-active=Y&job-id=1777564992&job-name=New%20name&job-params=%3Cea%20type');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'job-active' : 'Y',\n'job-id' : '1777564992',\n'job-name' : 'New%20name',\n'job-params' : '%3Cea%20type'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/syncpartner/update_oauth_serviceaccount.json" : {
         "post" : {
            "description" : "By providing a new oAuth Service Account JSON decription, update it so that the connector can use new settings.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=syncpartner&method=update_oauth_serviceaccount"
            },
            "operationId" : "updateOauthServiceaccountEPC",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the EPC for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the provider for which we want to update the service account",
                  "example" : "google",
                  "in" : "query",
                  "name" : "provider",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "google "
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "JSON description of the new oAuth Service Account",
                  "example" : "{}",
                  "in" : "query",
                  "name" : "service-account",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_params"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ],
                                 [
                                    "<ea type=\"syncpartner\"><gridpool name=\"dem\" /><website id=\"1\" /></ea>"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Update the Partner Connector oAuth Service Account",
            "tags" : [
               "EPC"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"job-id=1777564992&provider=google&service-account=%7B%7D\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/update_oauth_serviceaccount.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'job-id' => '1777564992',\n'provider' => 'google',\n'service-account' => '{}'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/update_oauth_serviceaccount.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/syncpartner/update_oauth_serviceaccount.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('job-id=1777564992&provider=google&service-account=%7B%7D');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'job-id' : '1777564992',\n'provider' : 'google',\n'service-account' : '%7B%7D'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/tag/exists.json" : {
         "get" : {
            "description" : "This query will check if a tag-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=tag&method=exists"
            },
            "operationId" : "existsTag",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the tag to check",
                  "example" : "my-test-tag",
                  "in" : "query",
                  "name" : "tag-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "tag_id"
                                 },
                                 {
                                    "name" : "tag_data"
                                 },
                                 {
                                    "name" : "tag_active"
                                 },
                                 {
                                    "name" : "tag_archive"
                                 },
                                 {
                                    "name" : "tag_name"
                                 },
                                 {
                                    "name" : "tag_keycode"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "{}",
                                    "N",
                                    "Y",
                                    "test",
                                    "k3zc"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a tag-name exists",
            "tags" : [
               "Tag"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tag/exists.json?tag-name=my-test-tag\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tag/exists.json?tag-name=my-test-tag',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tag/exists.json?tag-name=my-test-tag');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'tag-name=my-test-tag'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tag/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/tag/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=tag&method=search"
            },
            "operationId" : "searchTag",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "tag-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "tag-archive",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "keycode of the tag",
                  "example" : "k3zc",
                  "in" : "query",
                  "name" : "tag-keycode",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the tag",
                  "example" : "my-test-tag",
                  "in" : "query",
                  "name" : "tag-name",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "tag_id"
                                 },
                                 {
                                    "name" : "tag_data"
                                 },
                                 {
                                    "name" : "tag_active"
                                 },
                                 {
                                    "name" : "tag_archive"
                                 },
                                 {
                                    "name" : "tag_name"
                                 },
                                 {
                                    "name" : "tag_keycode"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "{}",
                                    "N",
                                    "Y",
                                    "test",
                                    "k3zc"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Tag"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tag/search.json?dir=DESC&limit=25&start=0&tag-active=Y&tag-archive=Y&tag-keycode=k3zc&tag-name=my-test-tag\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tag/search.json?dir=DESC&limit=25&start=0&tag-active=Y&tag-archive=Y&tag-keycode=k3zc&tag-name=my-test-tag',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tag/search.json?dir=DESC&limit=25&start=0&tag-active=Y&tag-archive=Y&tag-keycode=k3zc&tag-name=my-test-tag');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&start=0&tag-active=Y&tag-archive=Y&tag-keycode=k3zc&tag-name=my-test-tag'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tag/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/tag/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing tag.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=tag&method=update"
            },
            "operationId" : "updateTag",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the tag for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "tag-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new tag name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "tag-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the active attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "tag-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the archive attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "tag-archive",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "tag_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchTag" : {
                        "description" : "Use the value of tag_id entry to update a tag through tag-id parameter.",
                        "operationId" : "searchTag",
                        "parameters" : {
                           "tag-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing tag.",
            "tags" : [
               "Tag"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"tag-active=Y&tag-archive=Y&tag-id=1777564992&tag-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tag/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'tag-active' => 'Y',\n'tag-archive' => 'Y',\n'tag-id' => '1777564992',\n'tag-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tag/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tag/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('tag-active=Y&tag-archive=Y&tag-id=1777564992&tag-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'tag-active' : 'Y',\n'tag-archive' : 'Y',\n'tag-id' : '1777564992',\n'tag-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/tcfv2vendorcustom/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new tcfv2vendorcustom.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=tcfv2vendorcustom&method=create"
            },
            "operationId" : "createTCFV2CustomVendor",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the tcfv2vendorcustom template",
                  "example" : "my-test-tcfv2vendorcustom-name",
                  "in" : "query",
                  "name" : "tcfv2vendorcustom-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "tcfv2vendorcustom_id"
                                 },
                                 {
                                    "name" : "tcfv2vendorcustom_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "facebook"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new tcfv2vendorcustom entry.",
            "tags" : [
               "TCFV2 Custom Vendor"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"tcfv2vendorcustom-name=my-test-tcfv2vendorcustom-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tcfv2vendorcustom/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'tcfv2vendorcustom-name' => 'my-test-tcfv2vendorcustom-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tcfv2vendorcustom/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tcfv2vendorcustom/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('tcfv2vendorcustom-name=my-test-tcfv2vendorcustom-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'tcfv2vendorcustom-name' : 'my-test-tcfv2vendorcustom-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/tcfv2vendorcustom/exists.json" : {
         "get" : {
            "description" : "This query will check if a tcfv2vendorcustom-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=tcfv2vendorcustom&method=exists"
            },
            "operationId" : "existsTCFV2CustomVendor",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the tcfv2vendorcustom to check",
                  "example" : "my-test-tcfv2vendorcustom",
                  "in" : "query",
                  "name" : "tcfv2vendorcustom-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "tcfv2vendorcustom_id"
                                 },
                                 {
                                    "name" : "tcfv2vendorcustom_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "facebook"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a tcfv2vendorcustom-name exists",
            "tags" : [
               "TCFV2 Custom Vendor"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tcfv2vendorcustom/exists.json?tcfv2vendorcustom-name=my-test-tcfv2vendorcustom\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tcfv2vendorcustom/exists.json?tcfv2vendorcustom-name=my-test-tcfv2vendorcustom',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tcfv2vendorcustom/exists.json?tcfv2vendorcustom-name=my-test-tcfv2vendorcustom');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'tcfv2vendorcustom-name=my-test-tcfv2vendorcustom'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tcfv2vendorcustom/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/tcfv2vendorcustom/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=tcfv2vendorcustom&method=search"
            },
            "operationId" : "searchTCFV2CustomVendor",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the tcfv2vendorcustom",
                  "example" : "my-test-tcfv2vendorcustom",
                  "in" : "query",
                  "name" : "tcfv2vendorcustom-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to start if you want to filter with start by",
                  "example" : "start",
                  "in" : "query",
                  "name" : "tcfv2vendorcustom-name-like",
                  "schema" : {
                     "enum" : [
                        "start",
                        "end",
                        "contain"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "tcfv2vendorcustom_id"
                                 },
                                 {
                                    "name" : "tcfv2vendorcustom_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "facebook"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "TCFV2 Custom Vendor"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tcfv2vendorcustom/search.json?dir=DESC&limit=25&start=0&tcfv2vendorcustom-name=my-test-tcfv2vendorcustom&tcfv2vendorcustom-name-like=start\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tcfv2vendorcustom/search.json?dir=DESC&limit=25&start=0&tcfv2vendorcustom-name=my-test-tcfv2vendorcustom&tcfv2vendorcustom-name-like=start',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tcfv2vendorcustom/search.json?dir=DESC&limit=25&start=0&tcfv2vendorcustom-name=my-test-tcfv2vendorcustom&tcfv2vendorcustom-name-like=start');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&start=0&tcfv2vendorcustom-name=my-test-tcfv2vendorcustom&tcfv2vendorcustom-name-like=start'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tcfv2vendorcustom/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/tcfv2vendorcustom/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing tcfv2vendorcustom.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=tcfv2vendorcustom&method=update"
            },
            "operationId" : "updateTCFV2CustomVendor",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the tcfv2vendorcustom for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "tcfv2vendorcustom-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new tcfv2vendorcustom name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "tcfv2vendorcustom-name",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "tcfv2vendorcustom_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchTCFV2CustomVendor" : {
                        "description" : "Use the value of tcfv2vendorcustom_id entry to update a tcfv2vendorcustom through tcfv2vendorcustom-id parameter.",
                        "operationId" : "searchTCFV2CustomVendor",
                        "parameters" : {
                           "tcfv2vendorcustom-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing tcfv2vendorcustom.",
            "tags" : [
               "TCFV2 Custom Vendor"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"tcfv2vendorcustom-id=1777564992&tcfv2vendorcustom-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tcfv2vendorcustom/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'tcfv2vendorcustom-id' => '1777564992',\n'tcfv2vendorcustom-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tcfv2vendorcustom/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tcfv2vendorcustom/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('tcfv2vendorcustom-id=1777564992&tcfv2vendorcustom-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'tcfv2vendorcustom-id' : '1777564992',\n'tcfv2vendorcustom-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/tpopeparam/get.json" : {
         "get" : {
            "description" : "Given an outbound campaign id, return the parameters linked to it.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=tpopeparam&method=get"
            },
            "operationId" : "getOutboundCampaignsParameters",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the outbound campaign.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "tpope-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "tpopeparam_vccookieage"
                                 },
                                 {
                                    "name" : "tpopeparam_vvcookieage"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "30d",
                                    "10d"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get information for a specific campaign.",
            "tags" : [
               "Outbound Campaigns Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpopeparam/get.json?tpope-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpopeparam/get.json?tpope-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpopeparam/get.json?tpope-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'tpope-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpopeparam/get.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/tpopeparam/get_global.json" : {
         "get" : {
            "description" : "When params are not applied at campaign level, the system will fallback to the values of the global parameters.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=tpopeparam&method=get_global"
            },
            "operationId" : "getGlobalOutboundCampaignsParameters",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "tpopeparam_vccookieage"
                                 },
                                 {
                                    "name" : "tpopeparam_vvcookieage"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "30d",
                                    "10d"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get global parameters information.",
            "tags" : [
               "Outbound Campaigns Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpopeparam/get_global.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpopeparam/get_global.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpopeparam/get_global.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpopeparam/get_global.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/tpopeparam/update.json" : {
         "post" : {
            "description" : "This API allows you to update the settings for a given campaign.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=tpopeparam&method=update"
            },
            "operationId" : "updateOutboundCampaignsParameters",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the outbound campaign.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "tpope-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the post-clic attribution window.",
                  "example" : "30d",
                  "in" : "query",
                  "name" : "tpopedataparam-vccookieage",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the post-impression attribution window.",
                  "example" : "5h",
                  "in" : "query",
                  "name" : "tpopedataparam-vvcookieage",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "tpopeparam_vccookieage"
                                 },
                                 {
                                    "name" : "tpopeparam_vvcookieage"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "30d",
                                    "10d"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Update the parameters for a given campaign.",
            "tags" : [
               "Outbound Campaigns Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"tpope-id=1777564992&tpopedataparam-vccookieage=30d&tpopedataparam-vvcookieage=5h\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpopeparam/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'tpope-id' => '1777564992',\n'tpopedataparam-vccookieage' => '30d',\n'tpopedataparam-vvcookieage' => '5h'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpopeparam/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpopeparam/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('tpope-id=1777564992&tpopedataparam-vccookieage=30d&tpopedataparam-vvcookieage=5h');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'tpope-id' : '1777564992',\n'tpopedataparam-vccookieage' : '30d',\n'tpopedataparam-vvcookieage' : '5h'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/tpopeparam/update_global.json" : {
         "post" : {
            "description" : "This API allows you to update the settings for global parameters.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=tpopeparam&method=update_global"
            },
            "operationId" : "updateGlobalOutboundCampaignsParameters",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the post-clic attribution window.",
                  "example" : "30d",
                  "in" : "query",
                  "name" : "tpopedataparam-vccookieage",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the post-impression attribution window.",
                  "example" : "5h",
                  "in" : "query",
                  "name" : "tpopedataparam-vvcookieage",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "tpopeparam_vccookieage"
                                 },
                                 {
                                    "name" : "tpopeparam_vvcookieage"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "30d",
                                    "10d"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Update the global parameters information.",
            "tags" : [
               "Outbound Campaigns Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"tpopedataparam-vccookieage=30d&tpopedataparam-vvcookieage=5h\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpopeparam/update_global.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'tpopedataparam-vccookieage' => '30d',\n'tpopedataparam-vvcookieage' => '5h'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpopeparam/update_global.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpopeparam/update_global.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('tpopedataparam-vccookieage=30d&tpopedataparam-vvcookieage=5h');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'tpopedataparam-vccookieage' : '30d',\n'tpopedataparam-vvcookieage' : '5h'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/tppublisherparam/get.json" : {
         "get" : {
            "description" : "Given an outbound publisher id, return the parameters linked to it.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=tppublisherparam&method=get"
            },
            "operationId" : "getOutboundPublishersParameters",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the outbound publisher.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "tppublisher-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "tppublisherparam_vccookieage"
                                 },
                                 {
                                    "name" : "tppublisherparam_vvcookieage"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "30d",
                                    "10d"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get information for a specific publisher.",
            "tags" : [
               "Outbound Publishers Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tppublisherparam/get.json?tppublisher-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tppublisherparam/get.json?tppublisher-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tppublisherparam/get.json?tppublisher-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'tppublisher-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tppublisherparam/get.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/tppublisherparam/update.json" : {
         "post" : {
            "description" : "This API allows you to update the settings for a given publisher.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=tppublisherparam&method=update"
            },
            "operationId" : "updateOutboundPublishersParameters",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the outbound publisher.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "tppublisher-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the post-clic attribution window.",
                  "example" : "30d",
                  "in" : "query",
                  "name" : "tppublisherdataparam-vccookieage",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the post-impression attribution window.",
                  "example" : "5h",
                  "in" : "query",
                  "name" : "tppublisherdataparam-vvcookieage",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "tppublisherparam_vccookieage"
                                 },
                                 {
                                    "name" : "tppublisherparam_vvcookieage"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "30d",
                                    "10d"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Update the parameters for a given publisher.",
            "tags" : [
               "Outbound Publishers Parameters"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"tppublisher-id=1777564992&tppublisherdataparam-vccookieage=30d&tppublisherdataparam-vvcookieage=5h\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tppublisherparam/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'tppublisher-id' => '1777564992',\n'tppublisherdataparam-vccookieage' => '30d',\n'tppublisherdataparam-vvcookieage' => '5h'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tppublisherparam/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tppublisherparam/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('tppublisher-id=1777564992&tppublisherdataparam-vccookieage=30d&tppublisherdataparam-vvcookieage=5h');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'tppublisher-id' : '1777564992',\n'tppublisherdataparam-vccookieage' : '30d',\n'tppublisherdataparam-vvcookieage' : '5h'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/tpredirectdomainallow/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new tpredirectdomainallow entry.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=tpredirectdomainallow&method=create"
            },
            "operationId" : "createThirdPartyRedirectDomainAllow",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the tpredirectdomainallow",
                  "example" : "my-test-tpredirectdomainallow-name",
                  "in" : "query",
                  "name" : "tpredirectdomainallow-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "pattern of the tpredirectdomainallow",
                  "example" : "%.my-partner-domain.com",
                  "in" : "query",
                  "name" : "tpredirectdomainallow-pattern",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "tpredirectdomainallow_id"
                                 },
                                 {
                                    "name" : "tpredirectdomainallow_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "46",
                                    "Test 1525126322"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new tpredirectdomainallow.",
            "tags" : [
               "ThirdParty RedirectDomainAllow"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"tpredirectdomainallow-name=my-test-tpredirectdomainallow-name&tpredirectdomainallow-pattern=%25.my-partner-domain.com\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpredirectdomainallow/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'tpredirectdomainallow-name' => 'my-test-tpredirectdomainallow-name',\n'tpredirectdomainallow-pattern' => '%.my-partner-domain.com'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpredirectdomainallow/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpredirectdomainallow/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('tpredirectdomainallow-name=my-test-tpredirectdomainallow-name&tpredirectdomainallow-pattern=%25.my-partner-domain.com');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'tpredirectdomainallow-name' : 'my-test-tpredirectdomainallow-name',\n'tpredirectdomainallow-pattern' : '%25.my-partner-domain.com'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/tpredirectdomainallow/exists.json" : {
         "get" : {
            "description" : "This query will check if a tpredirectdomainallow-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=tpredirectdomainallow&method=exists"
            },
            "operationId" : "existsThirdPartyRedirectDomainAllow",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the tpredirectdomainallow to check",
                  "example" : "my-test-tpredirectdomainallow-name",
                  "in" : "query",
                  "name" : "tpredirectdomainallow-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "tpredirectdomainallow_name"
                                 },
                                 {
                                    "name" : "tpredirectdomainallow_id"
                                 },
                                 {
                                    "name" : "tpredirectdomainallow_pattern"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "Test ÃÂ¨ÃÂ¨ÃÂ¨r(\"\" 1525126113",
                                    "1",
                                    "http://www.test-1525126113.com"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a tpredirectdomainallow-name exists",
            "tags" : [
               "ThirdParty RedirectDomainAllow"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpredirectdomainallow/exists.json?tpredirectdomainallow-name=my-test-tpredirectdomainallow-name\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpredirectdomainallow/exists.json?tpredirectdomainallow-name=my-test-tpredirectdomainallow-name',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpredirectdomainallow/exists.json?tpredirectdomainallow-name=my-test-tpredirectdomainallow-name');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'tpredirectdomainallow-name=my-test-tpredirectdomainallow-name'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpredirectdomainallow/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/tpredirectdomainallow/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=tpredirectdomainallow&method=search"
            },
            "operationId" : "searchThirdPartyRedirectDomainAllow",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the tpredirectdomainallow",
                  "example" : "my-test-tpredirectdomainallow-name",
                  "in" : "query",
                  "name" : "tpredirectdomainallow-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "pattern of the tpredirectdomainallow",
                  "example" : "%.my-partner-domain.com",
                  "in" : "query",
                  "name" : "tpredirectdomainallow-pattern",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "tpredirectdomainallow_name"
                                 },
                                 {
                                    "name" : "tpredirectdomainallow_id"
                                 },
                                 {
                                    "name" : "tpredirectdomainallow_pattern"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "Test ÃÂ¨ÃÂ¨ÃÂ¨r(\"\" 1525126113",
                                    "1",
                                    "http://www.test-1525126113.com"
                                 ],
                                 [
                                    "Test ÃÂ¨ÃÂ¨ÃÂ¨r(\"\" 1525126200",
                                    "10",
                                    "http://www.test-1525126200.com"
                                 ],
                                 [
                                    "Test ÃÂ¨ÃÂ¨ÃÂ¨r(\"\" 1525126240",
                                    "19",
                                    "http://www.test-1525126240.com"
                                 ],
                                 [
                                    "Test ÃÂ¨ÃÂ¨ÃÂ¨r(\"\" 1525126262",
                                    "28",
                                    "http://www.test-1525126262.com"
                                 ],
                                 [
                                    "Test ÃÂ¨ÃÂ¨ÃÂ¨r(\"\" 1525126286",
                                    "37",
                                    "www.test-1525126286.com"
                                 ],
                                 [
                                    "Test 1525126322",
                                    "46",
                                    "http://www.test-1525126322.com"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 6
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "ThirdParty RedirectDomainAllow"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpredirectdomainallow/search.json?dir=DESC&limit=25&start=0&tpredirectdomainallow-name=my-test-tpredirectdomainallow-name&tpredirectdomainallow-pattern=%25.my-partner-domain.com\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpredirectdomainallow/search.json?dir=DESC&limit=25&start=0&tpredirectdomainallow-name=my-test-tpredirectdomainallow-name&tpredirectdomainallow-pattern=%.my-partner-domain.com',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpredirectdomainallow/search.json?dir=DESC&limit=25&start=0&tpredirectdomainallow-name=my-test-tpredirectdomainallow-name&tpredirectdomainallow-pattern=%.my-partner-domain.com');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&start=0&tpredirectdomainallow-name=my-test-tpredirectdomainallow-name&tpredirectdomainallow-pattern=%25.my-partner-domain.com'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpredirectdomainallow/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/tpredirectdomainallow/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing tpredirectdomainallow.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=tpredirectdomainallow&method=update"
            },
            "operationId" : "updateThirdPartyRedirectDomainAllow",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the tpredirectdomainallow for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "tpredirectdomainallow-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new tpredirectdomainallow name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "tpredirectdomainallow-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new tpredirectdomainallow pattern",
                  "example" : "New pattern",
                  "in" : "query",
                  "name" : "tpredirectdomainallow-pattern",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "tpredirectdomainallow_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchThirdPartyRedirectDomainAllow" : {
                        "description" : "Use the value of tpredirectdomainallow_id entry to update a tpredirectdomainallow through tpredirectdomainallow-id parameter.",
                        "operationId" : "searchThirdPartyRedirectDomainAllow",
                        "parameters" : {
                           "tpredirectdomainallow-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing tpredirectdomainallow.",
            "tags" : [
               "ThirdParty RedirectDomainAllow"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"tpredirectdomainallow-id=1777564992&tpredirectdomainallow-name=New%20name&tpredirectdomainallow-pattern=New%20pattern\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpredirectdomainallow/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'tpredirectdomainallow-id' => '1777564992',\n'tpredirectdomainallow-name' => 'New name',\n'tpredirectdomainallow-pattern' => 'New pattern'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpredirectdomainallow/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/tpredirectdomainallow/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('tpredirectdomainallow-id=1777564992&tpredirectdomainallow-name=New%20name&tpredirectdomainallow-pattern=New%20pattern');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'tpredirectdomainallow-id' : '1777564992',\n'tpredirectdomainallow-name' : 'New%20name',\n'tpredirectdomainallow-pattern' : 'New%20pattern'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trackinghostname/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new trackinghostname.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trackinghostname&method=create"
            },
            "operationId" : "createTrackingHostname",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the trackinghostname template",
                  "example" : "my-test-trackinghostname-hostname",
                  "in" : "query",
                  "name" : "trackinghostname-hostname",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "trackinghostname_id"
                                 },
                                 {
                                    "name" : "trackinghostname_hostname"
                                 },
                                 {
                                    "name" : "trackinghostname_master"
                                 },
                                 {
                                    "name" : "trackinghostname_active"
                                 },
                                 {
                                    "name" : "trackinghostname_config"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "subdk.customer.com",
                                    "N",
                                    "N",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new trackinghostname entry.",
            "tags" : [
               "TrackingHostname"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"trackinghostname-hostname=my-test-trackinghostname-hostname\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostname/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'trackinghostname-hostname' => 'my-test-trackinghostname-hostname'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostname/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostname/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('trackinghostname-hostname=my-test-trackinghostname-hostname');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'trackinghostname-hostname' : 'my-test-trackinghostname-hostname'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trackinghostname/exists.json" : {
         "get" : {
            "description" : "This query will check if a trackinghostname-hostname exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trackinghostname&method=exists"
            },
            "operationId" : "existsTrackingHostname",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the trackinghostname to check",
                  "example" : "my-test-trackinghostname",
                  "in" : "query",
                  "name" : "trackinghostname-hostname",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "trackinghostname_id"
                                 },
                                 {
                                    "name" : "trackinghostname_hostname"
                                 },
                                 {
                                    "name" : "trackinghostname_master"
                                 },
                                 {
                                    "name" : "trackinghostname_active"
                                 },
                                 {
                                    "name" : "trackinghostname_config"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "subdk.customer.com",
                                    "Y",
                                    "Y",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a trackinghostname-hostname exists",
            "tags" : [
               "TrackingHostname"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostname/exists.json?trackinghostname-hostname=my-test-trackinghostname\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostname/exists.json?trackinghostname-hostname=my-test-trackinghostname',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostname/exists.json?trackinghostname-hostname=my-test-trackinghostname');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'trackinghostname-hostname=my-test-trackinghostname'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostname/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trackinghostname/last_status.json" : {
         "get" : {
            "description" : "This query will return the last status from the log table for the requested hostname.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trackinghostname&method=last_status"
            },
            "operationId" : "lastStatusTrackingHostname",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the trackinghostname to check",
                  "example" : "my-test-trackinghostname",
                  "in" : "query",
                  "name" : "trackinghostname-hostname",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "trackinghostname_id"
                                 },
                                 {
                                    "name" : "trackinghostname_hostname"
                                 },
                                 {
                                    "name" : "trackinghostname_master"
                                 },
                                 {
                                    "name" : "trackinghostname_active"
                                 },
                                 {
                                    "name" : "trackinghostname_config"
                                 },
                                 {
                                    "name" : "trackinghostnamelog_mtime"
                                 },
                                 {
                                    "name" : "trackinghostnamelog_status"
                                 },
                                 {
                                    "name" : "trackinghostnamelog_error"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "subdk.customer.com",
                                    "Y",
                                    "Y",
                                    "",
                                    1777564992,
                                    "OK",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check the last status for a given hostname.",
            "tags" : [
               "TrackingHostname"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostname/last_status.json?trackinghostname-hostname=my-test-trackinghostname\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostname/last_status.json?trackinghostname-hostname=my-test-trackinghostname',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostname/last_status.json?trackinghostname-hostname=my-test-trackinghostname');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'trackinghostname-hostname=my-test-trackinghostname'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostname/last_status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trackinghostname/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trackinghostname&method=search"
            },
            "operationId" : "searchTrackingHostname",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "trackinghostname-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the trackinghostname",
                  "example" : "my-test-trackinghostname",
                  "in" : "query",
                  "name" : "trackinghostname-hostname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on master flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "trackinghostname-master",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "trackinghostname_id"
                                 },
                                 {
                                    "name" : "trackinghostname_hostname"
                                 },
                                 {
                                    "name" : "trackinghostname_master"
                                 },
                                 {
                                    "name" : "trackinghostname_active"
                                 },
                                 {
                                    "name" : "trackinghostname_config"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "subdk.customer.com",
                                    "N",
                                    "N",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "TrackingHostname"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostname/search.json?dir=DESC&limit=25&start=0&trackinghostname-active=Y&trackinghostname-hostname=my-test-trackinghostname&trackinghostname-master=Y\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostname/search.json?dir=DESC&limit=25&start=0&trackinghostname-active=Y&trackinghostname-hostname=my-test-trackinghostname&trackinghostname-master=Y',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostname/search.json?dir=DESC&limit=25&start=0&trackinghostname-active=Y&trackinghostname-hostname=my-test-trackinghostname&trackinghostname-master=Y');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&start=0&trackinghostname-active=Y&trackinghostname-hostname=my-test-trackinghostname&trackinghostname-master=Y'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostname/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trackinghostname/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing trackinghostname.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trackinghostname&method=update"
            },
            "operationId" : "updateTrackingHostname",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the trackinghostname for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "trackinghostname-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the active attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "trackinghostname-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the master attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "trackinghostname-master",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "trackinghostname_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchTrackingHostname" : {
                        "description" : "Use the value of trackinghostname_id entry to update a trackinghostname through trackinghostname-id parameter.",
                        "operationId" : "searchTrackingHostname",
                        "parameters" : {
                           "trackinghostname-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing trackinghostname.",
            "tags" : [
               "TrackingHostname"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"trackinghostname-active=Y&trackinghostname-id=1777564992&trackinghostname-master=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostname/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'trackinghostname-active' => 'Y',\n'trackinghostname-id' => '1777564992',\n'trackinghostname-master' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostname/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostname/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('trackinghostname-active=Y&trackinghostname-id=1777564992&trackinghostname-master=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'trackinghostname-active' : 'Y',\n'trackinghostname-id' : '1777564992',\n'trackinghostname-master' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trackinghostnamelog/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trackinghostnamelog&method=search"
            },
            "operationId" : "searchTrackingHostnameLog",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the trackinghostname",
                  "example" : "my-test-trackinghostname",
                  "in" : "query",
                  "name" : "trackinghostname-hostname",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "trackinghostnamelog_id"
                                 },
                                 {
                                    "name" : "trackinghostname_hostname"
                                 },
                                 {
                                    "name" : "trackinghostnamelog_mtime"
                                 },
                                 {
                                    "name" : "trackinghostnamelog_status"
                                 },
                                 {
                                    "name" : "trackinghostnamelog_error"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "subdk.customer.com",
                                    1777564992,
                                    "OK",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "TrackingHostnameLog"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostnamelog/search.json?dir=DESC&limit=25&start=0&trackinghostname-hostname=my-test-trackinghostname\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostnamelog/search.json?dir=DESC&limit=25&start=0&trackinghostname-hostname=my-test-trackinghostname',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostnamelog/search.json?dir=DESC&limit=25&start=0&trackinghostname-hostname=my-test-trackinghostname');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&start=0&trackinghostname-hostname=my-test-trackinghostname'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trackinghostnamelog/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_adform.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for AdForm",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_adform"
            },
            "operationId" : "getAdformTrafficking",
            "parameters" : [
               {
                  "default" : "adform-__ADFCREID__",
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "__ADFDIM__",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "adform-__ADFPLAID__",
                  "description" : "location",
                  "in" : "query",
                  "name" : "location",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "adform-__ADFMEDID__-__ADFCAMID__",
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "adform-__ADFMEDID__",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "AdForm",
                                    "https://demo.fr/?ead-publisher=adform-__ADFMEDID__&ead-name=adform-__ADFMEDID__-__ADFCAMID__&ead-location=adform-__ADFPLAID__&ead-creative=adform-__ADFCREID__&ead-creativetype=__ADFDIM__&eseg-name=esegname&eseg-item=esegitem&adfrmid=__ADFUID__",
                                    "ead-publisher=adform-__ADFMEDID__&ead-name=adform-__ADFMEDID__-__ADFCAMID__&ead-location=adform-__ADFPLAID__&ead-creative=adform-__ADFCREID__&ead-creativetype=__ADFDIM__&eseg-name=esegname&eseg-item=esegitem&eurl=https://demo.fr/&adfrmid=__ADFUID__&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?ead-publisher=adform-__ADFMEDID__&ead-name=adform-__ADFMEDID__-__ADFCAMID__&ead-location=adform-__ADFPLAID__&ead-creative=adform-__ADFCREID__&ead-creativetype=__ADFDIM__&eseg-name=esegname&eseg-item=esegitem&ea-rnd=__ADFRND__&adfrmid=__ADFUID__&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for AdForm",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_adform.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_adform.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_adform.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_adform.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_amazon.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for Amazon",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_amazon"
            },
            "operationId" : "getAmazonTrafficking",
            "parameters" : [
               {
                  "default" : "amz-{%creative_cfid}-1x1",
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "1x1",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "amz-{%ad_cfid}-1x1",
                  "description" : "location",
                  "in" : "query",
                  "name" : "location",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "amz-{%campaign_cfid}",
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "amazon",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "Amazon",
                                    "https://demo.fr/?ead-publisher=amazon&ead-name=amz-{%campaign_cfid}&ead-location=amz-{%ad_cfid}-1x1&ead-creative=amz-{%creative_cfid}-1x1&ead-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem",
                                    "ead-publisher=amazon&ead-name=amz-{%campaign_cfid}&ead-location=amz-{%ad_cfid}-1x1&ead-creative=amz-{%creative_cfid}-1x1&ead-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&eurl=https://demo.fr/&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?ead-publisher=amazon&ead-name=amz-{%campaign_cfid}&ead-location=amz-{%ad_cfid}-1x1&ead-creative=amz-{%creative_cfid}-1x1&ead-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&ea-rnd={%random}&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Amazon",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_amazon.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_amazon.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_amazon.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_amazon.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_awin.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for AWin",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_awin"
            },
            "operationId" : "getAwinTrafficking",
            "parameters" : [
               {
                  "default" : "!!!linkid!!!",
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "1x1",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "!!!companyname!!!",
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "!!!promotype!!!",
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "PROGRAM_NAME",
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "awin",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "AWin",
                                    "https://demo.fr/?eaf-publisher=awin&eaf-name=PROGRAM_NAME&eaf-creative=!!!linkid!!!&eaf-creativetype=1x1&eseg-name=!!!promotype!!!&eseg-item=!!!companyname!!!&awnid=!!!awc!!!",
                                    "eaf-publisher=awin&eaf-name=PROGRAM_NAME&eaf-creative=!!!linkid!!!&eaf-creativetype=1x1&eseg-name=!!!promotype!!!&eseg-item=!!!companyname!!!&awnid=!!!awc!!!&eurl=https://demo.fr/&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?eaf-publisher=awin&eaf-name=PROGRAM_NAME&eaf-creative=!!!linkid!!!&eaf-creativetype=1x1&eseg-name=!!!promotype!!!&eseg-item=!!!companyname!!!&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}&ea-rnd=RANDOM\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for AWin",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_awin.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_awin.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_awin.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_awin.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_baidu.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for Baidu",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_baidu"
            },
            "operationId" : "getBaiduTrafficking",
            "parameters" : [
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "baidu",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "Baidu",
                                    "https://demo.fr/?esl-k=baidu|n|c[creative]|m[mediatype]|k[keywordid]|p[placement]|t&eseg-name=esegname&eseg-item=esegitem",
                                    "",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Baidu",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_baidu.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_baidu.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_baidu.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_baidu.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_bing_ads.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for Bing Ads",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_bing_ads"
            },
            "operationId" : "getBingAdsTrafficking",
            "parameters" : [
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "bing-ads",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "Bing Ads",
                                    "https://demo.fr/?esl-k=bing-ads|n|c{AdId}|m{MatchType}|k{OrderItemId}|p|t|a{AdGroupId}|g{CampaignId}&eseg-name=esegname&eseg-item=esegitem",
                                    "",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Bing Ads",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_bing_ads.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_bing_ads.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_bing_ads.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_bing_ads.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_bing_ads_display.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for Bing Ads Display",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_bing_ads_display"
            },
            "operationId" : "getBingAdsDisplayTrafficking",
            "parameters" : [
               {
                  "default" : "bing-display-{AdId}",
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "1x1",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "bing-display-{AdGroupId}",
                  "description" : "location",
                  "in" : "query",
                  "name" : "location",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "bing-display-{CampaignId}",
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "bing-display",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "Bing Ads Display",
                                    "https://demo.fr/?ead-publisher=bing-display&ead-name=bing-display-{CampaignId}&ead-location=bing-display-{AdGroupId}&ead-creative=bing-display-{AdId}&ead-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem",
                                    "",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?ead-publisher=bing-display&ead-name=bing-display-{CampaignId}&ead-location=bing-display-{AdGroupId}&ead-creative=bing-display-{AdId}&ead-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}&ea-rnd=RANDOM\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Bing Ads Display",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_bing_ads_display.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_bing_ads_display.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_bing_ads_display.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_bing_ads_display.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_bing_ads_shopping.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for Bing Ads Shopping",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_bing_ads_shopping"
            },
            "operationId" : "getBingAdsShoppingTrafficking",
            "parameters" : [
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "bing-ads",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "Bing Ads Shopping",
                                    "https://demo.fr/?esl-k=bing-ads|n|c{AdId}|m{MatchType}|kpla{ProductId}|p|t|a{AdGroupId}|g{CampaignId}&eseg-name=esegname&eseg-item=esegitem",
                                    "",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Bing Ads Shopping",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_bing_ads_shopping.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_bing_ads_shopping.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_bing_ads_shopping.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_bing_ads_shopping.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_criteo.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for Criteo",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_criteo"
            },
            "operationId" : "getCriteoTrafficking",
            "parameters" : [
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "criteo-{{adsetid}}",
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "{{product_external_id}}",
                  "description" : "Product reference",
                  "in" : "query",
                  "name" : "product",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "criteo",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "Criteo",
                                    "https://demo.fr/?etf-publisher=criteo&etf-name=criteo-{{adsetid}}&etf-prdref={{product_external_id}}&criteouid={{uid}}&eseg-name=esegname&eseg-item=esegitem&etf-media=ad",
                                    "etf-publisher=criteo&etf-name=criteo-{{adsetid}}&etf-prdref={{product_external_id}}&criteouid={{uid}}&eseg-name=esegname&eseg-item=esegitem&etf-media=ad&eurl=https://demo.fr/&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?etf-publisher=criteo&etf-name=criteo-{{adsetid}}&etf-prdref={{product_external_id}}&criteouid={{uid}}&eseg-name=esegname&eseg-item=esegitem&etf-media=ad&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}&ea-rnd=RANDOM\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Criteo",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_criteo.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_criteo.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_criteo.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_criteo.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_effinity.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for Effinity",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_effinity"
            },
            "operationId" : "getEffinityTrafficking",
            "parameters" : [
               {
                  "default" : "clearpix",
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "1x1",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "id-affilie",
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "$campaign-name",
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "effinity",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "Effinity",
                                    "https://demo.fr/?eaf-publisher=effinity&eaf-name=$campaign-name&eaf-creative=clearpix&eaf-creativetype=1x1&eseg-name=id-affilie&eseg-item=esegitem",
                                    "",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?eaf-publisher=effinity&eaf-name=effinity-$campaign-name&eaf-creative=clearpix&eaf-creativetype=1x1&eseg-name=id-affilie&eseg-item=esegitem&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}&ea-rnd=RANDOM\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Effinity",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_effinity.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_effinity.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_effinity.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_effinity.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_eulerian_affiliation.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for affiliation",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_eulerian_affiliation"
            },
            "operationId" : "getEulerianAffiliationTrafficking",
            "parameters" : [
               {
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "1x1",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "affiliation",
                                    "https://demo.fr/?eaf-publisher=publisher&eaf-name=publisher-ope&eaf-creative=creative&eaf-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem",
                                    "eaf-publisher=publisher&eaf-name=publisher-ope&eaf-creative=creative&eaf-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&eurl=https://demo.fr/&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?eaf-publisher=publisher&eaf-name=publisher-ope&eaf-creative=creative&eaf-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}&ea-rnd=RANDOM\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for affiliation",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_affiliation.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_affiliation.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_affiliation.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_affiliation.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_eulerian_display.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for display",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_eulerian_display"
            },
            "operationId" : "getEulerianDisplayTrafficking",
            "parameters" : [
               {
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "1x1",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "location",
                  "in" : "query",
                  "name" : "location",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "display",
                                    "https://demo.fr/?ead-publisher=publisher&ead-name=publisher-ope&ead-location=location&ead-creative=creative&ead-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem",
                                    "ead-publisher=publisher&ead-name=publisher-ope&ead-location=location&ead-creative=creative&ead-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&eurl=https://demo.fr/&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?ead-publisher=publisher&ead-name=publisher-ope&ead-location=location&ead-creative=creative&ead-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}&ea-rnd=RANDOM\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for display",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_display.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_display.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_display.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_display.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_eulerian_generic.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for generic",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_eulerian_generic"
            },
            "operationId" : "getEulerianGenericTrafficking",
            "parameters" : [
               {
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "1x1",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "location",
                  "in" : "query",
                  "name" : "location",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "générique",
                                    "https://demo.fr/?egn-publisher=publisher&egn-name=publisher-ope&egn-location=location&egn-creative=creative&egn-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem",
                                    "egn-publisher=publisher&egn-name=publisher-ope&egn-location=location&egn-creative=creative&egn-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&eurl=https://demo.fr/&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?egn-publisher=publisher&egn-name=publisher-ope&egn-location=location&egn-creative=creative&egn-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}&ea-rnd=RANDOM\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for generic",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_generic.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_generic.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_generic.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_generic.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_eulerian_mailing.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for mailing",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_eulerian_mailing"
            },
            "operationId" : "getEulerianMailingTrafficking",
            "parameters" : [
               {
                  "description" : "Email (eemail parameter)",
                  "in" : "query",
                  "name" : "eemail",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "User identifier (uid)",
                  "in" : "query",
                  "name" : "uid",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "mailing",
                                    "https://demo.fr/?eml-publisher=publisher&eml-name=publisher-ope&eemail=eemail&uid=uid&eseg-name=esegname&eseg-item=esegitem",
                                    "eml-publisher=publisher&eml-name=publisher-ope&eemail=eemail&uid=uid&eseg-name=esegname&eseg-item=esegitem&eurl=https://demo.fr/&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?eml-publisher=publisher&eml-name=publisher-ope&eemail=eemail&uid=uid&eseg-name=esegname&eseg-item=esegitem&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}&ea-rnd=RANDOM\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for mailing",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_mailing.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_mailing.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_mailing.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_mailing.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_eulerian_partner.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for partnership",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_eulerian_partner"
            },
            "operationId" : "getEulerianPartnerTrafficking",
            "parameters" : [
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "partenariat",
                                    "https://demo.fr/?ept-publisher=publisher&ept-name=publisher-ope&eseg-name=esegname&eseg-item=esegitem",
                                    "ept-publisher=publisher&ept-name=publisher-ope&eseg-name=esegname&eseg-item=esegitem&eurl=https://demo.fr/&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?ept-publisher=publisher&ept-name=publisher-ope&eseg-name=esegname&eseg-item=esegitem&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}&ea-rnd=RANDOM\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for partnership",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_partner.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_partner.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_partner.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_partner.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_eulerian_social.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for social",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_eulerian_social"
            },
            "operationId" : "getEulerianSocialTrafficking",
            "parameters" : [
               {
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "1x1",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "location",
                  "in" : "query",
                  "name" : "location",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "social",
                                    "https://demo.fr/?esc-publisher=publisher&esc-name=publisher-ope&esc-location=location&esc-creative=creative&esc-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem",
                                    "esc-publisher=publisher&esc-name=publisher-ope&esc-location=location&esc-creative=creative&esc-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&eurl=https://demo.fr/&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?esc-publisher=publisher&esc-name=publisher-ope&esc-location=location&esc-creative=creative&esc-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}&ea-rnd=RANDOM\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for social",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_social.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_social.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_social.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_social.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_eulerian_trustedfeed.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for shopbots",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_eulerian_trustedfeed"
            },
            "operationId" : "getEulerianTrustedfeedTrafficking",
            "parameters" : [
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Product reference",
                  "in" : "query",
                  "name" : "product",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "comparateurs de prix",
                                    "https://demo.fr/?etf-publisher=publisher&etf-name=publisher-ope&etf-prdref=product&eseg-name=esegname&eseg-item=esegitem",
                                    "etf-publisher=publisher&etf-name=publisher-ope&etf-prdref=product&eseg-name=esegname&eseg-item=esegitem&eurl=https://demo.fr/&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?etf-publisher=publisher&etf-name=publisher-ope&etf-prdref=product&eseg-name=esegname&eseg-item=esegitem&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}&ea-rnd=RANDOM\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for shopbots",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_trustedfeed.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_trustedfeed.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_trustedfeed.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_eulerian_trustedfeed.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_facebook_ads.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for META Ads",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_facebook_ads"
            },
            "operationId" : "getFacebookAdsTrafficking",
            "parameters" : [
               {
                  "default" : "{{ad.id}}",
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "1x1",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "{{site_source_name}}",
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "site-source",
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "{{adset.id}}-meta",
                  "description" : "location",
                  "in" : "query",
                  "name" : "location",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "{{campaign.id}}-meta",
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "meta",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "META Ads",
                                    "https://demo.fr/?esc-publisher=meta&esc-name={{campaign.id}}-meta&esc-location={{adset.id}}-meta&esc-creative={{ad.id}}&esc-creativetype=1x1&eseg-name=site-source&eseg-item={{site_source_name}}",
                                    "esc-publisher=meta&esc-name={{campaign.id}}-meta&esc-location={{adset.id}}-meta&esc-creative={{ad.id}}&esc-creativetype=1x1&eseg-name=site-source&eseg-item={{site_source_name}}&eurl=https://demo.fr/&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for META Ads",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_facebook_ads.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_facebook_ads.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_facebook_ads.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_facebook_ads.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_google_ads.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for Google Ads",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_google_ads"
            },
            "operationId" : "getGoogleAdsTrafficking",
            "parameters" : [
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "google-ads",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "Google Ads",
                                    "https://demo.fr/?esl-k=google-ads|n{network}|c{creative}|m{matchtype}|k{keyword}|p{placement}|t{target}|d{device}|a{adgroupid}|g{campaignid}&eseg-name=esegname&eseg-item=esegitem",
                                    "",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Google Ads",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_ads.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_ads.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_ads.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_ads.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_google_ads_display.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for Google Ads Display",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_google_ads_display"
            },
            "operationId" : "getGoogleAdsDisplayTrafficking",
            "parameters" : [
               {
                  "default" : "google-display-{creative}",
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "1x1",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "google-display-{adgroupid}",
                  "description" : "location",
                  "in" : "query",
                  "name" : "location",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "google-display-{campaignid}",
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "google-display",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "Google Ads Display",
                                    "https://demo.fr/?ead-publisher=google-display&ead-name=google-display-{campaignid}&ead-location=google-display-{adgroupid}&ead-creative=google-display-{creative}&ead-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem",
                                    "",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Google Ads Display",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_ads_display.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_ads_display.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_ads_display.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_ads_display.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_google_ads_performancemax.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for Google Ads Performance Max",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_google_ads_performancemax"
            },
            "operationId" : "getGoogleAdsPerformancemaxTrafficking",
            "parameters" : [
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "google-ads",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "Google Ads Performance Max",
                                    "https://demo.fr/?esl-k=google-ads|n{network}|c{creative}|m{matchtype}|k{keyword}|p{placement}|t{target}|d{device}|a{campaignid}|g{campaignid}&eseg-name=esegname&eseg-item=esegitem",
                                    "",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Google Ads Performance Max",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_ads_performancemax.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_ads_performancemax.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_ads_performancemax.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_ads_performancemax.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_google_ads_shopping.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for Google Ads Shopping",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_google_ads_shopping"
            },
            "operationId" : "getGoogleAdsShoppingTrafficking",
            "parameters" : [
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "google-ads",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "Google Ads Shopping",
                                    "https://demo.fr/?esl-k=google-ads|n{network}|c{creative}|m{matchtype}|k{adtype}{product_partition_id}|p{placement}|t{target}|d{device}|a{adgroupid}|g{campaignid}&eseg-name=esegname&eseg-item=esegitem",
                                    "",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Google Ads Shopping",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_ads_shopping.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_ads_shopping.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_ads_shopping.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_ads_shopping.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_google_campaignmanager.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for Google Campaign Manager",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_google_campaignmanager"
            },
            "operationId" : "getGoogleCampaignmanagerTrafficking",
            "parameters" : [
               {
                  "default" : "%ecid!",
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "1x1",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "%esid!-%epid!",
                  "description" : "location",
                  "in" : "query",
                  "name" : "location",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "%esid!-%ebuy!",
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "%esid!",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "Google Campaign Manager",
                                    "https://demo.fr/?ead-publisher=%esid!&ead-name=%esid!-%ebuy!&ead-location=%esid!-%epid!&ead-creative=%ecid!&ead-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&dclid=%edclid!",
                                    "ead-publisher=%esid!&ead-name=%esid!-%ebuy!&ead-location=%esid!-%epid!&ead-creative=%ecid!&ead-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&dclid=%edclid!&eurl=https://demo.fr/&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?ead-publisher=%esid!&ead-name=%esid!-%ebuy!&ead-location=%esid!-%epid!&ead-creative=%ecid!&ead-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}&ea-rnd=RANDOM\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Google Campaign Manager",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_campaignmanager.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_campaignmanager.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_campaignmanager.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_campaignmanager.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_google_dv360.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for Google DV360",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_google_dv360"
            },
            "operationId" : "getGoogleDv360Trafficking",
            "parameters" : [
               {
                  "default" : "dv360-${CREATIVE_ID}",
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "1x1",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "dv360-${CAMPAIGN_ID}",
                  "description" : "location",
                  "in" : "query",
                  "name" : "location",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "dv360-${INSERTION_ORDER_ID}",
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "dv360",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "Google DV360",
                                    "https://demo.fr/?ead-publisher=dv360&ead-name=dv360-${INSERTION_ORDER_ID}&ead-location=dv360-${CAMPAIGN_ID}&ead-creative=dv360-${CREATIVE_ID}&ead-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem",
                                    "ead-publisher=dv360&ead-name=dv360-${INSERTION_ORDER_ID}&ead-location=dv360-${CAMPAIGN_ID}&ead-creative=dv360-${CREATIVE_ID}&ead-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&eurl=https://demo.fr/&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?ead-publisher=dv360&ead-name=dv360-${INSERTION_ORDER_ID}&ead-location=dv360-${CAMPAIGN_ID}&ead-creative=dv360-${CREATIVE_ID}&ead-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&ea-rnd=${CACHEBUSTER}&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Google DV360",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_dv360.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_dv360.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_dv360.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_google_dv360.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_kwanko.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for Kwanko",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_kwanko"
            },
            "operationId" : "getKwankoTrafficking",
            "parameters" : [
               {
                  "default" : "{PROMOTIONAL_METHOD}",
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "{AD_SIZE_HEIGHT}x{AD_SIZE_WIDTH}",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "{IDSITE}",
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "kwanko-affilie",
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "{IDPROG}",
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "kwanko",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "Kwanko",
                                    "https://demo.fr/?eaf-publisher=kwanko&eaf-name=kwanko-{IDPROG}&eaf-creative={PROMOTIONAL_METHOD}&eaf-creativetype={AD_SIZE_HEIGHT}x{AD_SIZE_WIDTH}&eseg-name=kwanko-affilie&eseg-item={IDSITE}&kwk-cible={IDCIBLE}",
                                    "",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?eaf-publisher=kwanko&eaf-name=kwanko-{IDPROG}&eaf-creative={PROMOTIONAL_METHOD}&eaf-creativetype={AD_SIZE_HEIGHT}x{AD_SIZE_WIDTH}&eseg-name=kwanko-affilie&eseg-item={IDSITE}&kwk-cible={IDCIBLE}&ea-rnd={RANDNUM}&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Kwanko",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_kwanko.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_kwanko.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_kwanko.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_kwanko.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_outbrain.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for Outbrain",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_outbrain"
            },
            "operationId" : "getOutbrainTrafficking",
            "parameters" : [
               {
                  "default" : "outbrain-{{ad_title}}",
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "1x1",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "outbrain-{{promoted_link_id}}",
                  "description" : "location",
                  "in" : "query",
                  "name" : "location",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "outbrain-{{campaign_id}}",
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "outbrain",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "Outbrain",
                                    "https://demo.fr/?ead-publisher=outbrain&ead-name=outbrain-{{campaign_id}}&ead-location=outbrain-{{promoted_link_id}}&ead-creative=outbrain-{{ad_title}}&ead-creativetype=1x1&rf={{section_id}}&eseg-name=esegname&eseg-item=esegitem",
                                    "ead-publisher=outbrain&ead-name=outbrain-{{campaign_id}}&ead-location=outbrain-{{promoted_link_id}}&ead-creative=outbrain-{{ad_title}}&ead-creativetype=1x1&rf={{section_id}}&eseg-name=esegname&eseg-item=esegitem&eurl=https://demo.fr/&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?ead-publisher=outbrain&ead-name=outbrain-{{campaign_id}}&ead-location=outbrain-{{promoted_link_id}}&ead-creative=outbrain-{{ad_title}}&ead-creativetype=1x1&rf={{section_id}}&eseg-name=esegname&eseg-item=esegitem&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}&ea-rnd=RANDOM\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Outbrain",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_outbrain.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_outbrain.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_outbrain.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_outbrain.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_pinterest.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for Pinterest",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_pinterest"
            },
            "operationId" : "getPinterestTrafficking",
            "parameters" : [
               {
                  "default" : "pinterest-ads-{creative_id}",
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "1x1",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "pinterest-ads-{adgroupid}",
                  "description" : "location",
                  "in" : "query",
                  "name" : "location",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "pinterest-ads-{campaignid}",
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "pinterest-ads",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "Pinterest",
                                    "https://demo.fr/?esc-publisher=pinterest-ads&esc-name=pinterest-ads-{campaignid}&esc-location=pinterest-ads-{adgroupid}&esc-creative=pinterest-ads-{creative_id}&esc-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem",
                                    "esc-publisher=pinterest-ads&esc-name=pinterest-ads-{campaignid}&esc-location=pinterest-ads-{adgroupid}&esc-creative=pinterest-ads-{creative_id}&esc-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&eurl=https://demo.fr/&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?esc-publisher=pinterest-ads&esc-name=pinterest-ads-{campaignid}&esc-location=pinterest-ads-{adgroupid}&esc-creative=pinterest-ads-{creative_id}&esc-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}&ea-rnd=RANDOM\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Pinterest",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_pinterest.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_pinterest.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_pinterest.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_pinterest.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_snapchat.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for SnapChat",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_snapchat"
            },
            "operationId" : "getSnapchatTrafficking",
            "parameters" : [
               {
                  "default" : "snapchat-{{ad.id}}",
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "1x1",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "snapchat-{{adSet.id}}",
                  "description" : "location",
                  "in" : "query",
                  "name" : "location",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "snapchat-{{campaign.id}}",
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "snapchat",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "SnapChat",
                                    "https://demo.fr/?esc-publisher=snapchat&esc-name=snapchat-{{campaign.id}}&esc-location=snapchat-{{adSet.id}}&esc-creative=snapchat-{{ad.id}}&esc-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem",
                                    "esc-publisher=snapchat&esc-name=snapchat-{{campaign.id}}&esc-location=snapchat-{{adSet.id}}&esc-creative=snapchat-{{ad.id}}&esc-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&eurl=https://demo.fr/&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?esc-publisher=snapchat&esc-name=snapchat-{{campaign.id}}&esc-location=snapchat-{{adSet.id}}&esc-creative=snapchat-{{ad.id}}&esc-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}&ea-rnd=RANDOM\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for SnapChat",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_snapchat.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_snapchat.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_snapchat.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_snapchat.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_thetradedesk.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for TheTradeDesk",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_thetradedesk"
            },
            "operationId" : "getThetradedeskTrafficking",
            "parameters" : [
               {
                  "default" : "tdd-%%TTD_CREATIVEID%%",
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "%%TTD_ADFORMAT%%",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "tdd-%%TTD_ADGROUPID%%",
                  "description" : "location",
                  "in" : "query",
                  "name" : "location",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "tdd-%%TTD_CAMPAIGNID%%",
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "thetradedesk",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "TheTradeDesk",
                                    "https://demo.fr/?ead-publisher=thetradedesk&ead-name=tdd-%%TTD_CAMPAIGNID%%&ead-location=tdd-%%TTD_ADGROUPID%%&ead-creative=tdd-%%TTD_CREATIVEID%%&ead-creativetype=%%TTD_ADFORMAT%%&eseg-name=esegname&eseg-item=esegitem&ttdskid=%%TTD_TDID%%",
                                    "ead-publisher=thetradedesk&ead-name=tdd-%%TTD_CAMPAIGNID%%&ead-location=tdd-%%TTD_ADGROUPID%%&ead-creative=tdd-%%TTD_CREATIVEID%%&ead-creativetype=%%TTD_ADFORMAT%%&eseg-name=esegname&eseg-item=esegitem&eurl=https://demo.fr/&ttdskid=%%TTD_TDID%%&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?ead-publisher=thetradedesk&ead-name=tdd-%%TTD_CAMPAIGNID%%&ead-location=tdd-%%TTD_ADGROUPID%%&ead-creative=tdd-%%TTD_CREATIVEID%%&ead-creativetype=%%TTD_ADFORMAT%%&eseg-name=esegname&eseg-item=esegitem&ea-rnd=%%TTD_CACHEBUSTER%%&ttdskid=%%TTD_TDID%%&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for TheTradeDesk",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_thetradedesk.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_thetradedesk.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_thetradedesk.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_thetradedesk.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_tiktok.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for TikTok",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_tiktok"
            },
            "operationId" : "getTiktokTrafficking",
            "parameters" : [
               {
                  "default" : "tiktok-__CID__",
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "1x1",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "tiktok-__AID__",
                  "description" : "location",
                  "in" : "query",
                  "name" : "location",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "tiktok-__CAMPAIGN_ID__",
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "tiktok",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "TikTok",
                                    "https://demo.fr/?esc-publisher=tiktok&esc-name=tiktok-__CAMPAIGN_ID__&esc-location=tiktok-__AID__&esc-creative=tiktok-__CID__&esc-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem",
                                    "esc-publisher=tiktok&esc-name=tiktok-__CAMPAIGN_ID__&esc-location=tiktok-__AID__&esc-creative=tiktok-__CID__&esc-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&eurl=https://demo.fr/&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?esc-publisher=tiktok&esc-name=tiktok-__CAMPAIGN_ID__&esc-location=tiktok-__AID__&esc-creative=tiktok-__CID__&esc-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}&ea-rnd=RANDOM\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for TikTok",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_tiktok.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_tiktok.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_tiktok.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_tiktok.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_tradedoubler.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for Tradedoubler",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_tradedoubler"
            },
            "operationId" : "getTradedoublerTrafficking",
            "parameters" : [
               {
                  "default" : "clearpix",
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "1x1",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "[td_affiliate_id]",
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "id-affilie",
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "$campaign",
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "tradedoubler",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "Tradedoubler",
                                    "https://demo.fr/?eaf-publisher=tradedoubler&eaf-name=tradedoubler-$campaign&eaf-creative=clearpix&eaf-creativetype=1x1&eseg-name=id-affilie&eseg-item=[td_affiliate_id]&tduid=[td_guid]",
                                    "",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?eaf-publisher=tradedoubler&eaf-name=tradedoubler-$campaign&eaf-creative=clearpix&eaf-creativetype=1x1&eseg-name=id-affilie&eseg-item=[td_affiliate_id]&tduid=[td_guid]&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}&ea-rnd=RANDOM\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Tradedoubler",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_tradedoubler.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_tradedoubler.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_tradedoubler.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_tradedoubler.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_utiq_for_google_campaignmanager.json" : {
         "get" : {
            "description" : "Generate tags for Google CampaignManager with Utiq GraphId integration.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_utiq_for_google_campaignmanager"
            },
            "operationId" : "getUtiqForGoogleCampaignmanagerTrafficking",
            "parameters" : [
               {
                  "default" : "%ecid!",
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "1x1",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "%esid!-%epid!",
                  "description" : "location",
                  "in" : "query",
                  "name" : "location",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "%esid!-%ebuy!",
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "%esid!",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "click_url_redirect"
                                 },
                                 {
                                    "name" : "platform_name"
                                 },
                                 {
                                    "name" : "view_url"
                                 },
                                 {
                                    "name" : "click_url_withparams"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "https://www.eulerian.fr/?ead-publisher=%esid!&ead-name=%esid!-%ebuy!&ead-location=%esid!-%epid!&ead-creative=%ecid!&ead-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&dclid=%edclid!",
                                    "function fireEulerianPixel(atid) { ... }",
                                    "Google Campaign Manager with Utiq",
                                    "ead-publisher=%esid!&ead-name=%esid!-%ebuy!&ead-location=%esid!-%epid!&ead-creative=%ecid!&ead-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&dclid=%edclid!&eurl=https://www.eulerian.fr&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Google CampaignManager with Utiq GraphId.",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_utiq_for_google_campaignmanager.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_utiq_for_google_campaignmanager.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_utiq_for_google_campaignmanager.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_utiq_for_google_campaignmanager.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_yahoo_dsp.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for Yahoo! DSP",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_yahoo_dsp"
            },
            "operationId" : "getYahooDspTrafficking",
            "parameters" : [
               {
                  "default" : "yahoo-dsp-{campaign_item_id}",
                  "description" : "Creative",
                  "in" : "query",
                  "name" : "creative",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "1x1",
                  "description" : "Creative type",
                  "in" : "query",
                  "name" : "creativetype",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "yahoo-dsp-{y_line_id}",
                  "description" : "location",
                  "in" : "query",
                  "name" : "location",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "yahoo-dsp-{y_campaign_id}",
                  "description" : "Campaign",
                  "in" : "query",
                  "name" : "ope",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "yahoo-dsp",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "Yahoo! DSP",
                                    "https://demo.fr/?ead-publisher=yahoo-dsp&ead-name=yahoo-dsp-{y_campaign_id}&ead-location=yahoo-dsp-{y_line_id}&ead-creative=yahoo-dsp-{campaign_item_id}&ead-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem",
                                    "",
                                    "<img src=\"//dem.eulerian.net/dynview/demo-fr/1777564992?ead-publisher=yahoo-dsp&ead-name=yahoo-dsp-{y_campaign_id}&ead-location=yahoo-dsp-{y_line_id}&ead-creative=yahoo-dsp-{campaign_item_id}&ead-creativetype=1x1&eseg-name=esegname&eseg-item=esegitem&gdpr=${GDPR}&gdpr_pd=${GDPR_PD}&gdpr_consent=${GDPR_CONSENT_413}&ea-rnd=RANDOM\" width=\"1\" height=\"1\" border=\"0\" />"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Yahoo! DSP",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_yahoo_dsp.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_yahoo_dsp.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_yahoo_dsp.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_yahoo_dsp.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/get_yandex.json" : {
         "get" : {
            "description" : "This query allows you to fetch tracking links for Yandex",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=get_yandex"
            },
            "operationId" : "getYandexTrafficking",
            "parameters" : [
               {
                  "description" : "Inbound segment value",
                  "in" : "query",
                  "name" : "esegitem",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Inbound segment",
                  "in" : "query",
                  "name" : "esegname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Landing page",
                  "in" : "query",
                  "name" : "eurl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : "yandex",
                  "description" : "Publisher",
                  "in" : "query",
                  "name" : "publisher",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : {
                                 "click_url_redirect" : 2,
                                 "click_url_withparams" : 1,
                                 "platform_name" : 0,
                                 "view_url" : 3
                              },
                              "rows" : [
                                 [
                                    "Yandex",
                                    "https://demo.fr/?esl-k=yandex|n[source_type]|c[ad_id]|m|k[phrase_id]|p[source]|t|d[device_type]|a[gbid]|g[campaign_id]&eseg-name=esegname&eseg-item=esegitem",
                                    "",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Tracking links for Yandex",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_yandex.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_yandex.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_yandex.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/get_yandex.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/trafficking/show_available.json" : {
         "get" : {
            "description" : "This query will return all the templates for the click tracking and view tracking for all supported platforms.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=trafficking&method=show_available"
            },
            "operationId" : "showAvailableTrafficking",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "platform_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "Adform"
                                 ],
                                 [
                                    "Amazon"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Show all available trafficking links for all supported platforms.",
            "tags" : [
               "Trafficking"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/show_available.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/show_available.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/show_available.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/trafficking/show_available.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/uidsticky/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new uidsticky.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=uidsticky&method=create"
            },
            "operationId" : "createUIDSticky",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the uidsticky template",
                  "example" : "my-test-uidsticky-name",
                  "in" : "query",
                  "name" : "uidsticky-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "regexp pattern that the uidsticky must validate before being taken in account",
                  "example" : "^[0-9]+$",
                  "in" : "query",
                  "name" : "uidsticky-pattern",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "uidsticky_id"
                                 },
                                 {
                                    "name" : "uidsticky_name"
                                 },
                                 {
                                    "name" : "uidsticky_ttl"
                                 },
                                 {
                                    "name" : "uidsticky_merge"
                                 },
                                 {
                                    "name" : "uidsticky_pattern"
                                 },
                                 {
                                    "name" : "uidsticky_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "new-phone-id",
                                    3600,
                                    "N",
                                    "[0-9]+",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new uidsticky entry.",
            "tags" : [
               "UIDSticky"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"uidsticky-name=my-test-uidsticky-name&uidsticky-pattern=%5E%5B0-9%5D%2B%24\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uidsticky/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'uidsticky-name' => 'my-test-uidsticky-name',\n'uidsticky-pattern' => '^[0-9]+$'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uidsticky/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uidsticky/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('uidsticky-name=my-test-uidsticky-name&uidsticky-pattern=%5E%5B0-9%5D%2B%24');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'uidsticky-name' : 'my-test-uidsticky-name',\n'uidsticky-pattern' : '%5E%5B0-9%5D%2B%24'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/uidsticky/exists.json" : {
         "get" : {
            "description" : "This query will check if a uidsticky-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=uidsticky&method=exists"
            },
            "operationId" : "existsUIDSticky",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the uidsticky to check",
                  "example" : "my-test-uidsticky",
                  "in" : "query",
                  "name" : "uidsticky-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "uidsticky_id"
                                 },
                                 {
                                    "name" : "uidsticky_name"
                                 },
                                 {
                                    "name" : "uidsticky_ttl"
                                 },
                                 {
                                    "name" : "uidsticky_merge"
                                 },
                                 {
                                    "name" : "uidsticky_pattern"
                                 },
                                 {
                                    "name" : "uidsticky_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "new-phone-id",
                                    3600,
                                    "N",
                                    "[0-9]+",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a uidsticky-name exists",
            "tags" : [
               "UIDSticky"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uidsticky/exists.json?uidsticky-name=my-test-uidsticky\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uidsticky/exists.json?uidsticky-name=my-test-uidsticky',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uidsticky/exists.json?uidsticky-name=my-test-uidsticky');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'uidsticky-name=my-test-uidsticky'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uidsticky/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/uidsticky/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=uidsticky&method=search"
            },
            "operationId" : "searchUIDSticky",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "uidsticky-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on merge flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "uidsticky-merge",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the uidsticky",
                  "example" : "my-test-uidsticky",
                  "in" : "query",
                  "name" : "uidsticky-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "uidsticky-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "uidsticky_id"
                                 },
                                 {
                                    "name" : "uidsticky_name"
                                 },
                                 {
                                    "name" : "uidsticky_ttl"
                                 },
                                 {
                                    "name" : "uidsticky_merge"
                                 },
                                 {
                                    "name" : "uidsticky_pattern"
                                 },
                                 {
                                    "name" : "uidsticky_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "new-phone-id",
                                    3600,
                                    "N",
                                    "[0-9]+",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "UIDSticky"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uidsticky/search.json?dir=DESC&limit=25&start=0&uidsticky-active=Y&uidsticky-merge=Y&uidsticky-name=my-test-uidsticky&uidsticky-name-exact=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uidsticky/search.json?dir=DESC&limit=25&start=0&uidsticky-active=Y&uidsticky-merge=Y&uidsticky-name=my-test-uidsticky&uidsticky-name-exact=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uidsticky/search.json?dir=DESC&limit=25&start=0&uidsticky-active=Y&uidsticky-merge=Y&uidsticky-name=my-test-uidsticky&uidsticky-name-exact=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&start=0&uidsticky-active=Y&uidsticky-merge=Y&uidsticky-name=my-test-uidsticky&uidsticky-name-exact=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uidsticky/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/uidsticky/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing uidsticky.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=uidsticky&method=update"
            },
            "operationId" : "updateUIDSticky",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the uidsticky for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "uidsticky-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new uidsticky name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "uidsticky-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new regexp pattern that the uidsticky must validate before being taken in account",
                  "example" : "^[0-9]+$",
                  "in" : "query",
                  "name" : "uidsticky-pattern",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new Time To Live for the current uidsticky, in seconds.",
                  "example" : 259200,
                  "in" : "query",
                  "name" : "uidsticky-ttl",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the merge attribute, **warning: check the documentation for data impact.",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "uidsticky-merge",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the active attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "uidsticky-active",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "uidsticky_id"
                                 },
                                 {
                                    "name" : "uidsticky_name"
                                 },
                                 {
                                    "name" : "uidsticky_ttl"
                                 },
                                 {
                                    "name" : "uidsticky_merge"
                                 },
                                 {
                                    "name" : "uidsticky_pattern"
                                 },
                                 {
                                    "name" : "uidsticky_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "new-phone-id",
                                    3600,
                                    "N",
                                    "[0-9]+",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchUIDSticky" : {
                        "description" : "Use the value of uidsticky_id entry to update a uidsticky through uidsticky-id parameter.",
                        "operationId" : "searchUIDSticky",
                        "parameters" : {
                           "uidsticky-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing uidsticky.",
            "tags" : [
               "UIDSticky"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"uidsticky-active=Y&uidsticky-id=1777564992&uidsticky-merge=Y&uidsticky-name=New%20name&uidsticky-pattern=%5E%5B0-9%5D%2B%24&uidsticky-ttl=259200\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uidsticky/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'uidsticky-active' => 'Y',\n'uidsticky-id' => '1777564992',\n'uidsticky-merge' => 'Y',\n'uidsticky-name' => 'New name',\n'uidsticky-pattern' => '^[0-9]+$',\n'uidsticky-ttl' => '259200'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uidsticky/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uidsticky/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('uidsticky-active=Y&uidsticky-id=1777564992&uidsticky-merge=Y&uidsticky-name=New%20name&uidsticky-pattern=%5E%5B0-9%5D%2B%24&uidsticky-ttl=259200');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'uidsticky-active' : 'Y',\n'uidsticky-id' : '1777564992',\n'uidsticky-merge' : 'Y',\n'uidsticky-name' : 'New%20name',\n'uidsticky-pattern' : '%5E%5B0-9%5D%2B%24',\n'uidsticky-ttl' : '259200'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/uparaminject/get_token.json" : {
         "post" : {
            "description" : "Returns the authorized token to query other methods, only the webmaste can generate it.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=uparaminject&method=get_token"
            },
            "operationId" : "getTokenUParamInject",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the uparaminject for which you want the token",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "job_token"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "job name",
                                    "AKJSHKDJHKJHSDKJHJK5465464-"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Token for the targeted job",
            "tags" : [
               "UParamInject"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"job-id=1777564992\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/get_token.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'job-id' => '1777564992'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/get_token.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/get_token.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('job-id=1777564992');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'job-id' : '1777564992'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/uparaminject/last_status.json" : {
         "get" : {
            "description" : "Given a uparaminject check the latest status.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=uparaminject&method=last_status"
            },
            "operationId" : "lastStatusUParamInject",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the encrypted token to identify the uparaminject to use as a base configuration.",
                  "example" : "DNfSCGZaXkRgrcNJY00KJHJ877634--",
                  "in" : "query",
                  "name" : "token",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 },
                                 {
                                    "name" : "jobrun_status"
                                 },
                                 {
                                    "name" : "jobrun_tm_format"
                                 },
                                 {
                                    "name" : "jobrun_statustm_format"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649921777564992",
                                    "COMPLETED",
                                    "2019-03-04 12:32:56",
                                    "2019-03-04 14:34:01"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Latest status of a uparaminject",
            "tags" : [
               "UParamInject"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/last_status.json?token=DNfSCGZaXkRgrcNJY00KJHJ877634--\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/last_status.json?token=DNfSCGZaXkRgrcNJY00KJHJ877634--',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/last_status.json?token=DNfSCGZaXkRgrcNJY00KJHJ877634--');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'token=DNfSCGZaXkRgrcNJY00KJHJ877634--'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/last_status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/uparaminject/relaunch.json" : {
         "post" : {
            "description" : "This API is useful when a uparaminject has failed and you want to re-launch it with the same configuration.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=uparaminject&method=relaunch"
            },
            "operationId" : "relaunchUParamInject",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the encrypted token to identify the uparaminject to use as a base configuration.",
                  "example" : "DNfSCGZaXkRgrcNJY00KJHJ877634--",
                  "in" : "query",
                  "name" : "token",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649921777564992"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Launch a uparaminject.",
            "tags" : [
               "UParamInject"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"token=DNfSCGZaXkRgrcNJY00KJHJ877634--\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/relaunch.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'token' => 'DNfSCGZaXkRgrcNJY00KJHJ877634--'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/relaunch.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/relaunch.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('token=DNfSCGZaXkRgrcNJY00KJHJ877634--');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'token' : 'DNfSCGZaXkRgrcNJY00KJHJ877634--'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/uparaminject/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=uparaminject&method=search"
            },
            "operationId" : "searchUParamInject",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "job-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the uparaminject",
                  "example" : "my-test-uparaminject",
                  "in" : "query",
                  "name" : "job-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_datecreate"
                                 },
                                 {
                                    "name" : "websitegrid_id"
                                 },
                                 {
                                    "name" : "job_type"
                                 },
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "account_id"
                                 },
                                 {
                                    "name" : "job_dateupdate"
                                 },
                                 {
                                    "name" : "job_active"
                                 },
                                 {
                                    "name" : "job_params"
                                 },
                                 {
                                    "name" : "job_dw"
                                 },
                                 {
                                    "name" : "job_oneshotrun"
                                 },
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_crontab"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "2",
                                       "uparaminject",
                                       "my uparaminject",
                                       "115",
                                       "0",
                                       "Y",
                                       "XML describing the uparaminject",
                                       "N",
                                       "N",
                                       "286",
                                       "0 9 * * *"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "UParamInject"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/search.json?dir=DESC&job-active=Y&job-name=my-test-uparaminject&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/search.json?dir=DESC&job-active=Y&job-name=my-test-uparaminject&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/search.json?dir=DESC&job-active=Y&job-name=my-test-uparaminject&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&job-active=Y&job-name=my-test-uparaminject&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/uparaminject/status.json" : {
         "get" : {
            "description" : "Given a uparaminject, return the history of generation.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=uparaminject&method=status"
            },
            "operationId" : "statusUParamInject",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "the encrypted token to identify the uparaminject to use as a base configuration.",
                  "example" : "DNfSCGZaXkRgrcNJY00KJHJ877634--",
                  "in" : "query",
                  "name" : "token",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 },
                                 {
                                    "name" : "jobrun_status"
                                 },
                                 {
                                    "name" : "jobrun_tm_format"
                                 },
                                 {
                                    "name" : "jobrun_statustm_format"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649921777564992",
                                    "COMPLETED",
                                    "2019-03-04 12:32:56",
                                    "2019-03-04 14:34:01"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "List status of a uparaminject",
            "tags" : [
               "UParamInject"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/status.json?dir=DESC&limit=25&start=0&token=DNfSCGZaXkRgrcNJY00KJHJ877634--\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/status.json?dir=DESC&limit=25&start=0&token=DNfSCGZaXkRgrcNJY00KJHJ877634--',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/status.json?dir=DESC&limit=25&start=0&token=DNfSCGZaXkRgrcNJY00KJHJ877634--');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&start=0&token=DNfSCGZaXkRgrcNJY00KJHJ877634--'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/uparaminject/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing uparaminject.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=uparaminject&method=update"
            },
            "operationId" : "updateUParamInject",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the uparaminject for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new uparaminject name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "job-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the active attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "job-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchUParamInject" : {
                        "description" : "Use the value of uparaminject_id entry to update a uparaminject through uparaminject-id parameter.",
                        "operationId" : "searchUParamInject",
                        "parameters" : {
                           "uparaminject-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update a uparaminject",
            "tags" : [
               "UParamInject"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"job-active=Y&job-id=1777564992&job-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'job-active' => 'Y',\n'job-id' => '1777564992',\n'job-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/uparaminject/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('job-active=Y&job-id=1777564992&job-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'job-active' : 'Y',\n'job-id' : '1777564992',\n'job-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/upload/add.json" : {
         "post" : {
            "description" : "This query will add a new file to the upload service, so that other APIs can use the raw file for specific treatments.\n\n`curl -F 'file-name=@my_file.json' https://$API_URL/add.json`'",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=upload&method=add"
            },
            "operationId" : "addUpload",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "path to the file uploaded to the service",
                  "example" : "my_file.json",
                  "in" : "query",
                  "name" : "file-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "file_id"
                                 },
                                 {
                                    "name" : "file_size"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "321321sdf2s1dfsdfsd4f5sdf84sdflonovununz",
                                    403
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Add a new file to the upload service.",
            "tags" : [
               "Upload"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST  -F file-name=@my_file.json https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/upload/add.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'file-name' => 'my_file.json'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/upload/add.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/upload/add.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('file-name=my_file.json');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'file-name' : 'my_file.json'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/upload/exists.json" : {
         "get" : {
            "description" : "This query will check if a file exists in the upload service.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=upload&method=exists"
            },
            "operationId" : "existsUpload",
            "parameters" : [
               {
                  "description" : "id of the file to check, as provided by the add service.",
                  "example" : "2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59",
                  "in" : "query",
                  "name" : "file-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "file_id"
                                 },
                                 {
                                    "name" : "file_size"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59",
                                    403
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a file-id exists",
            "tags" : [
               "Upload"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/upload/exists.json?file-id=2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/upload/exists.json?file-id=2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/upload/exists.json?file-id=2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'file-id=2d78f8f10da098ee1b936f029511565ffdb6e30c35e7c2ea953eab687d92ec59'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/upload/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/userdatass/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new userdatass template.\n\nThe process to integrate with that specific API is the following :\n\n- first you create an userdatass with a template, for example for returning the list of audiences a user belongs to (cf example)\n\n- once the userdatass is created you request a session or access token through the [get_session_token](#tag/UserData-ServerSide/paths/~1ea~1{site}~1db~1userdatass~1get_session_token.json/get) or [get_access_token](#tag/UserData-ServerSide/paths/~1ea~1{site}~1db~1userdatass~1get_access_token.json/get) API call.\n\n- with this token you can request the real-time data API through the call:\n\n`https://$CUSTOMER_REALTIME_TRACKING_DOMAIN/ss/$CUSTOMER_SITE_NAME/$CUSTOMER_TOKEN/?act=getud&etuix=$ETUIX`\n\nYou can use etuix for encrypted cookie from the browser or uid from your CRM.\n\nAn example template can be of this kind, this allows us to fetch the list of audiences / segments to which a user belongs :\n\n```\n\n{\n  \"uieadh\" : \"<TMPL_VAR uideah />\"\n ,\"audiences\" : [\n  <TMPL_LOOP clusternameloop>\n   <TMPL_IF idx>,</TMPL_IF>{ \"audience\" : \"<TMPL_VAR key />\", \"segment\" : \"<TMPL_VAR val />\" }\n  </TMPL_LOOP>\n ]\n}\n\n```\n\nThe content type returned by the real-time **ssurl** ([uid](#tag/UserData-ServerSide/paths/~1ea~1{site}~1db~1userdatass~1get_ssurl_uid.json/get) or [etuix](#tag/UserData-ServerSide/paths/~1ea~1{site}~1db~1userdatass~1get_ssurl_etuix.json/get)) will always be of type **application/json**.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=userdatass&method=create"
            },
            "operationId" : "createUserDataServerSide",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the userdatass template",
                  "example" : "my-test-audience-name",
                  "in" : "query",
                  "name" : "userdatass-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "template of the userdatass",
                  "example" : "see above",
                  "in" : "query",
                  "name" : "userdatass-tmpl",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "userdatass_id"
                                 },
                                 {
                                    "name" : "userdatass_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "28",
                                    "Test 1520948578"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new userdatass entry.",
            "tags" : [
               "UserData ServerSide"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"userdatass-name=my-test-audience-name&userdatass-tmpl=see%20above\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'userdatass-name' => 'my-test-audience-name',\n'userdatass-tmpl' => 'see above'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('userdatass-name=my-test-audience-name&userdatass-tmpl=see%20above');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'userdatass-name' : 'my-test-audience-name',\n'userdatass-tmpl' : 'see%20above'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/userdatass/exists.json" : {
         "get" : {
            "description" : "This query will check if a userdatass-name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=userdatass&method=exists"
            },
            "operationId" : "existsUserDataServerSide",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the userdatass to check",
                  "example" : "my-test-audience-template",
                  "in" : "query",
                  "name" : "userdatass-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "userdatass_name"
                                 },
                                 {
                                    "name" : "userdatass_tmpl"
                                 },
                                 {
                                    "name" : "userdatass_active"
                                 },
                                 {
                                    "name" : "userdatass_archive"
                                 },
                                 {
                                    "name" : "userdatass_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "Test 1520945390 - 1520947924 - 1520947946 - 1520948012 - 1520948046",
                                    "{\"toto\":\"TEST\"}",
                                    "Y",
                                    "N",
                                    "1"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a userdatass-name exists",
            "tags" : [
               "UserData ServerSide"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/exists.json?userdatass-name=my-test-audience-template\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/exists.json?userdatass-name=my-test-audience-template',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/exists.json?userdatass-name=my-test-audience-template');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'userdatass-name=my-test-audience-template'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/userdatass/get_access_token.json" : {
         "get" : {
            "description" : "This query returns an access_token to create calls to the Real-Time Server2Server API. No expiration but you must provide a list of whitelisted IPs.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=userdatass&method=get_access_token"
            },
            "operationId" : "getAccessTokenUserDataServerSide",
            "parameters" : [
               {
                  "description" : "list of IPs separated by commas authorized to access the real-time URL",
                  "example" : "192.168.1.1,127.0.0.1",
                  "in" : "query",
                  "name" : "ip",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "parameter to get the access_token for the request id",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "userdatass-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "access_token"
                                 },
                                 {
                                    "name" : "userdatass_id"
                                 },
                                 {
                                    "name" : "userdatass_name"
                                 },
                                 {
                                    "name" : "ip"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "DEQw3215468EDJm_8YpRfjMNTih22j30BzNouDn0aEB4Sh9u8.AvI3s5KN8o1nElA1j.z6T.V7vJHRmnQ--",
                                    1,
                                    "Test 1520945390",
                                    "^(127.0.0.1|192.168.1.1)$"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get an access token linked to a list of IP addresses.",
            "tags" : [
               "UserData ServerSide"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/get_access_token.json?ip=192.168.1.1%2C127.0.0.1&userdatass-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/get_access_token.json?ip=192.168.1.1,127.0.0.1&userdatass-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/get_access_token.json?ip=192.168.1.1,127.0.0.1&userdatass-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ip=192.168.1.1%2C127.0.0.1&userdatass-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/get_access_token.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/userdatass/get_session_token.json" : {
         "get" : {
            "description" : "This query returns a temporary session_token to create calls to the Real-Time Server2Server API. The expiration value is provided in the response, the token is linked to a target website, you cannot use another token for a given website + userdatass. This token is to be used if the IP from which you are requesting the data are not know before-hand.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=userdatass&method=get_session_token"
            },
            "operationId" : "getSessionTokenUserDataServerSide",
            "parameters" : [
               {
                  "description" : "optionnal list of IPs separated by commas.",
                  "example" : "192.168.1.1,127.0.0.1",
                  "in" : "query",
                  "name" : "ip",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "parameter to get the access_token for the request id",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "userdatass-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "session_token"
                                 },
                                 {
                                    "name" : "expires_in"
                                 },
                                 {
                                    "name" : "userdatass_id"
                                 },
                                 {
                                    "name" : "userdatass_name"
                                 },
                                 {
                                    "name" : "ip"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "DEQwyRw987654dfsdfm_8YpRfjMNTih22j30BzNouDn0aEB4Sh9u8.AvI3s5KN8o1nElA1j.z6T.V7vJHRmnQ--",
                                    3600,
                                    1,
                                    "Test 1520945390",
                                    "^(127.0.0.1|192.168.1.1)$"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get a session token with expire date.",
            "tags" : [
               "UserData ServerSide"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/get_session_token.json?ip=192.168.1.1%2C127.0.0.1&userdatass-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/get_session_token.json?ip=192.168.1.1,127.0.0.1&userdatass-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/get_session_token.json?ip=192.168.1.1,127.0.0.1&userdatass-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ip=192.168.1.1%2C127.0.0.1&userdatass-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/get_session_token.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/userdatass/get_ssurl_etuix.json" : {
         "get" : {
            "description" : "This query returns the real-time server2server url to be called with a etuix & token.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=userdatass&method=get_ssurl_etuix"
            },
            "operationId" : "getSsurlEtuixUserDataServerSide",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "token provided either by get_access_token or get_session_token",
                  "example" : "LKJDLKJDLFKJDLFLIHDF987987DF--",
                  "in" : "query",
                  "name" : "token",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ssurl"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "https://rt.domain.org/ss/site/DEQw3215468EDJm_8YpRfjMNTih22j30BzNouDn0aEB4Sh9u8.AvI3s5KN8o1nElA1j.z6T.V7vJHRmnQ--/?act=getud&etuix=$ETUIX"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get the real-time url to be called with etuix",
            "tags" : [
               "UserData ServerSide"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/get_ssurl_etuix.json?token=LKJDLKJDLFKJDLFLIHDF987987DF--\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/get_ssurl_etuix.json?token=LKJDLKJDLFKJDLFLIHDF987987DF--',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/get_ssurl_etuix.json?token=LKJDLKJDLFKJDLFLIHDF987987DF--');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'token=LKJDLKJDLFKJDLFLIHDF987987DF--'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/get_ssurl_etuix.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/userdatass/get_ssurl_uid.json" : {
         "get" : {
            "description" : "This query returns the real-time server2server url to be called with a uid & token.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=userdatass&method=get_ssurl_uid"
            },
            "operationId" : "getSsurlUidUserDataServerSide",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "token provided either by get_access_token or get_session_token",
                  "example" : "LKJDLKJDLFKJDLFLIHDF987987DF--",
                  "in" : "query",
                  "name" : "token",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ssurl"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "https://rt.domain.org/ss/site/DEQw3215468EDJm_8YpRfjMNTih22j30BzNouDn0aEB4Sh9u8.AvI3s5KN8o1nElA1j.z6T.V7vJHRmnQ--/?act=getud&uid=$UID"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get the real-time url to be called with uid",
            "tags" : [
               "UserData ServerSide"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/get_ssurl_uid.json?token=LKJDLKJDLFKJDLFLIHDF987987DF--\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/get_ssurl_uid.json?token=LKJDLKJDLFKJDLFLIHDF987987DF--',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/get_ssurl_uid.json?token=LKJDLKJDLFKJDLFLIHDF987987DF--');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'token=LKJDLKJDLFKJDLFLIHDF987987DF--'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/get_ssurl_uid.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/userdatass/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=userdatass&method=search"
            },
            "operationId" : "searchUserDataServerSide",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "userdatass-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on archive flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "userdatass-archive",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the userdatass template",
                  "example" : "my-test-audience-name",
                  "in" : "query",
                  "name" : "userdatass-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "userdatass-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "userdatass_name"
                                 },
                                 {
                                    "name" : "userdatass_active"
                                 },
                                 {
                                    "name" : "userdatass_tmpl"
                                 },
                                 {
                                    "name" : "userdatass_archive"
                                 },
                                 {
                                    "name" : "userdatass_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "Test 1520945390 - 1520947924 - 1520947946 - 1520948012 - 1520948046",
                                    "Y",
                                    "{\"toto\":\"TEST\"}",
                                    "N",
                                    "1"
                                 ],
                                 [
                                    "Test 1520945565",
                                    "Y",
                                    "{ \"uideah\":\"<TMPL_VAR uideah />\" }",
                                    "N",
                                    "10"
                                 ],
                                 [
                                    "Test 1520945654",
                                    "Y",
                                    "{ \"uideah\":\"<TMPL_VAR uideah />\" }",
                                    "N",
                                    "19"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 3
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "UserData ServerSide"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/search.json?dir=DESC&limit=25&start=0&userdatass-active=Y&userdatass-archive=Y&userdatass-name=my-test-audience-name&userdatass-name-exact=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/search.json?dir=DESC&limit=25&start=0&userdatass-active=Y&userdatass-archive=Y&userdatass-name=my-test-audience-name&userdatass-name-exact=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/search.json?dir=DESC&limit=25&start=0&userdatass-active=Y&userdatass-archive=Y&userdatass-name=my-test-audience-name&userdatass-name-exact=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&start=0&userdatass-active=Y&userdatass-archive=Y&userdatass-name=my-test-audience-name&userdatass-name-exact=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/userdatass/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing userdatass.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=userdatass&method=update"
            },
            "operationId" : "updateUserDataServerSide",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the userdatass for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "userdatass-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new userdatass name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "userdatass-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new userdatass template to be executed.",
                  "example" : "<TMPL_VAR test />",
                  "in" : "query",
                  "name" : "userdatass-tmpl",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the active attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "userdatass-active",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the archive attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "userdatass-archive",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "userdatass_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchUserDataServerSide" : {
                        "description" : "Use the value of userdatass_id entry to update a userdatass through userdatass-id parameter.",
                        "operationId" : "searchUserDataServerSide",
                        "parameters" : {
                           "userdatass-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing userdatass.",
            "tags" : [
               "UserData ServerSide"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"userdatass-active=Y&userdatass-archive=Y&userdatass-id=1777564992&userdatass-name=New%20name&userdatass-tmpl=%3CTMPL_VAR%20test%20%2F%3E\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'userdatass-active' => 'Y',\n'userdatass-archive' => 'Y',\n'userdatass-id' => '1777564992',\n'userdatass-name' => 'New name',\n'userdatass-tmpl' => '<TMPL_VAR test />'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/userdatass/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('userdatass-active=Y&userdatass-archive=Y&userdatass-id=1777564992&userdatass-name=New%20name&userdatass-tmpl=%3CTMPL_VAR%20test%20%2F%3E');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'userdatass-active' : 'Y',\n'userdatass-archive' : 'Y',\n'userdatass-id' : '1777564992',\n'userdatass-name' : 'New%20name',\n'userdatass-tmpl' : '%3CTMPL_VAR%20test%20%2F%3E'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/view/get_all_name.json" : {
         "get" : {
            "description" : "This query will list all real-time attribution models, `view_type` indicates if it is single touch or datadriven or augmented.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=view&method=get_all_name"
            },
            "operationId" : "getAllNameRealTimeAttributionModels",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "view_id"
                                 },
                                 {
                                    "name" : "view_name"
                                 },
                                 {
                                    "name" : "view_dflt"
                                 },
                                 {
                                    "name" : "view_type"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "Attribution rule SSA",
                                    "N",
                                    "datadriven"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "List available real-time attribution models.",
            "tags" : [
               "Real-Time Attribution Models"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/view/get_all_name.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/view/get_all_name.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/view/get_all_name.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/view/get_all_name.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/viewaugmented/default_weights.json" : {
         "get" : {
            "description" : "This query will allow you to show the default weights configured for a given model, you can override them by using the update_weights API endpoint.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=viewaugmented&method=default_weights"
            },
            "operationId" : "defaultWeightsViewAugmented",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "weight_type"
                                 },
                                 {
                                    "name" : "weight_value"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "view",
                                    "0.05"
                                 ],
                                 [
                                    "click",
                                    "0.65"
                                 ],
                                 [
                                    "da",
                                    "0.40"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 3
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Show the default configured weights.",
            "tags" : [
               "ViewAugmented"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/default_weights.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/default_weights.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/default_weights.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/default_weights.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/viewaugmented/linked_job.json" : {
         "get" : {
            "description" : "This query will allow you to show all the EPC connectors that are used for all augmented models.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=viewaugmented&method=linked_job"
            },
            "operationId" : "linkedJobViewAugmented",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "status"
                                 },
                                 {
                                    "name" : "epcsync_active"
                                 },
                                 {
                                    "name" : "viewaugmented_clickdt"
                                 },
                                 {
                                    "name" : "viewaugmented_viewdt"
                                 },
                                 {
                                    "name" : "epcsync_lastvalidsync"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "GoogleAdsAdwords",
                                    "LINKED",
                                    "Y",
                                    "external_click",
                                    "external_view",
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Show the EPC used for ALL augmented models",
            "tags" : [
               "ViewAugmented"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/linked_job.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/linked_job.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/linked_job.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/linked_job.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/viewaugmented/reset_weights.json" : {
         "get" : {
            "description" : "This query will allow you reset the custom weights linked to a model and use the default ones defined in the platform.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=viewaugmented&method=reset_weights"
            },
            "operationId" : "resetWeightsViewAugmented",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the attribution model for which you want to update the custom weights.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "view-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "viewaugmented_id"
                                 },
                                 {
                                    "name" : "viewaugmented_weights"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "{}"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Disable custom weights linked to a model for default ones.",
            "tags" : [
               "ViewAugmented"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/reset_weights.json?view-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/reset_weights.json?view-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/reset_weights.json?view-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'view-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/reset_weights.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/viewaugmented/show_weights.json" : {
         "get" : {
            "description" : "This query will allow you to show the custom weights configured for a given model.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=viewaugmented&method=show_weights"
            },
            "operationId" : "showWeightsViewAugmented",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the attribution model for which you want to show the custom weights.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "view-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "weight_type"
                                 },
                                 {
                                    "name" : "weight_value"
                                 },
                                 {
                                    "name" : "weight_scope"
                                 },
                                 {
                                    "name" : "epc_name"
                                 },
                                 {
                                    "name" : "weight_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "view",
                                    "0.05",
                                    "global",
                                    "global",
                                    "Y"
                                 ],
                                 [
                                    "click",
                                    "0.65",
                                    "global",
                                    "global",
                                    "Y"
                                 ],
                                 [
                                    "da",
                                    "0.40",
                                    "global",
                                    "global",
                                    "Y"
                                 ],
                                 [
                                    "view",
                                    "0.05",
                                    "epc",
                                    "Google Ads Adwords - PMAX",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 4
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Show the configured weights.",
            "tags" : [
               "ViewAugmented"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/show_weights.json?view-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/show_weights.json?view-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/show_weights.json?view-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'view-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/show_weights.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/viewaugmented/update_weights.json" : {
         "get" : {
            "description" : "This query will allow you to update and customize the weights for a given model. The query will return global updated settings.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=viewaugmented&method=update_weights"
            },
            "operationId" : "updateWeightsViewAugmented",
            "parameters" : [
               {
                  "description" : "the datatype to be impacted by the provided weight :\n* da : direct access\n* click : clicks\n* view : impressions",
                  "example" : "click",
                  "in" : "query",
                  "name" : "datatype",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "da",
                        "click",
                        "view"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the connector / EPC for which you want to set custom weights, this is is provided by linked_job",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "job-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the attribution model for which you want to show the custom weights.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "view-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "provide the value of the weight, if you provide -1 we remove the pre-existing value.",
                  "example" : 12,
                  "in" : "query",
                  "name" : "weight",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "weight_type"
                                 },
                                 {
                                    "name" : "weight_value"
                                 },
                                 {
                                    "name" : "weight_scope"
                                 },
                                 {
                                    "name" : "epc_name"
                                 },
                                 {
                                    "name" : "weight_active"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "view",
                                    "0.05",
                                    "global",
                                    "global",
                                    "Y"
                                 ],
                                 [
                                    "click",
                                    "0.65",
                                    "global",
                                    "global",
                                    "Y"
                                 ],
                                 [
                                    "da",
                                    "0.40",
                                    "global",
                                    "global",
                                    "Y"
                                 ],
                                 [
                                    "view",
                                    "0.05",
                                    "epc",
                                    "Google Ads Adwords - PMAX",
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 4
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Update & customize weights.",
            "tags" : [
               "ViewAugmented"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/update_weights.json?datatype=click&job-id=1777564992&view-id=1777564992&weight=12\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/update_weights.json?datatype=click&job-id=1777564992&view-id=1777564992&weight=12',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/update_weights.json?datatype=click&job-id=1777564992&view-id=1777564992&weight=12');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'datatype=click&job-id=1777564992&view-id=1777564992&weight=12'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/viewaugmented/update_weights.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/website/get_access_token.json" : {
         "get" : {
            "description" : "This query returns an access_token to create calls to the Real-Time Server2Server API. The token is linked to a target website, you cannot use another token for a given website. It is mandatory to provide a list of IP. The token is not limited in time. Authorization: webmaster only.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=website&method=get_access_token"
            },
            "operationId" : "getAccessTokenWebsite",
            "parameters" : [
               {
                  "description" : "optionnal list of IPs separated by commas",
                  "example" : "192.168.1.1,127.0.0.1",
                  "in" : "query",
                  "name" : "ip",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "access_token"
                                 },
                                 {
                                    "name" : "ip"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "SmMvxkqD88sdfsdfL6S1a502afB.ogcOaBQUz7SCyYma0n1mw_Pf3VAt4XlINg--",
                                    "192.168.1.2,127.0.0.1"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get an access token linked to a list of IP addresses.",
            "tags" : [
               "Website"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_access_token.json?ip=192.168.1.1%2C127.0.0.1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_access_token.json?ip=192.168.1.1,127.0.0.1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_access_token.json?ip=192.168.1.1,127.0.0.1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ip=192.168.1.1%2C127.0.0.1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_access_token.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/website/get_identifiers.json" : {
         "get" : {
            "description" : "This query will retrieve all the available identifiers by type of id that can be used to reference a user.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=website&method=get_identifiers"
            },
            "operationId" : "getIdentifiersWebsite",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "return list of alternate uid",
                  "example" : "1",
                  "in" : "query",
                  "name" : "with-altuid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "return list of reversable partner publisher id",
                  "example" : "1",
                  "in" : "query",
                  "name" : "with-rootpublisher",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "return list of sticky uid",
                  "example" : "1",
                  "in" : "query",
                  "name" : "with-stickyuid",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "type"
                                 },
                                 {
                                    "name" : "id"
                                 },
                                 {
                                    "name" : "name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "internal",
                                    "wsuid",
                                    "Test"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get all available identifiers by type",
            "tags" : [
               "Website"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_identifiers.json?with-altuid=1&with-rootpublisher=1&with-stickyuid=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_identifiers.json?with-altuid=1&with-rootpublisher=1&with-stickyuid=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_identifiers.json?with-altuid=1&with-rootpublisher=1&with-stickyuid=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'with-altuid=1&with-rootpublisher=1&with-stickyuid=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_identifiers.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/website/get_info_headings_by_identifier.json" : {
         "get" : {
            "description" : "This query will retrieve last seen site-centric headings for a given identifier.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=website&method=get_info_headings_by_identifier"
            },
            "operationId" : "getInfoHeadingsByIdentifierWebsite",
            "parameters" : [
               {
                  "description" : "key for the requested identifier.",
                  "example" : "wsuid",
                  "in" : "query",
                  "name" : "id-key",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "value for the requested identifier.",
                  "example" : "crm-123456",
                  "in" : "query",
                  "name" : "id-value",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "heading_id"
                                 },
                                 {
                                    "name" : "heading_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    193510019,
                                    "web"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get list of last seen headings.",
            "tags" : [
               "Website"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_info_headings_by_identifier.json?id-key=wsuid&id-value=crm-123456\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_info_headings_by_identifier.json?id-key=wsuid&id-value=crm-123456',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_info_headings_by_identifier.json?id-key=wsuid&id-value=crm-123456');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'id-key=wsuid&id-value=crm-123456'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_info_headings_by_identifier.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/website/get_info_visit_by_identifier.json" : {
         "get" : {
            "description" : "This query will retrieve last & previous visit information for a given identifier.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=website&method=get_info_visit_by_identifier"
            },
            "operationId" : "getInfoVisitByIdentifierWebsite",
            "parameters" : [
               {
                  "description" : "key for the requested identifier.",
                  "example" : "wsuid",
                  "in" : "query",
                  "name" : "id-key",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "value for the requested identifier.",
                  "example" : "crm-123456",
                  "in" : "query",
                  "name" : "id-value",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "last_visit_epoch"
                                 },
                                 {
                                    "name" : "last_visit_ddmmyyyhhmmss"
                                 },
                                 {
                                    "name" : "previous_visit_epoch"
                                 },
                                 {
                                    "name" : "previous_visit_ddmmyyyhhmmss"
                                 },
                                 {
                                    "name" : "hit_counter"
                                 },
                                 {
                                    "name" : "previous_page_id"
                                 },
                                 {
                                    "name" : "previous_page_name"
                                 },
                                 {
                                    "name" : "previous_page_url"
                                 },
                                 {
                                    "name" : "current_page_id"
                                 },
                                 {
                                    "name" : "current_page_name"
                                 },
                                 {
                                    "name" : "current_page_url"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990,
                                    "30/04/2026 18:03:10",
                                    1777564990,
                                    "30/04/2026 18:03:10",
                                    null,
                                    123456,
                                    "/order",
                                    "https://www.mysite.com/order",
                                    987654,
                                    "/home",
                                    "https://www.mysite.com"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get visit information.",
            "tags" : [
               "Website"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_info_visit_by_identifier.json?id-key=wsuid&id-value=crm-123456\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_info_visit_by_identifier.json?id-key=wsuid&id-value=crm-123456',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_info_visit_by_identifier.json?id-key=wsuid&id-value=crm-123456');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'id-key=wsuid&id-value=crm-123456'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_info_visit_by_identifier.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/website/get_me.json" : {
         "get" : {
            "description" : "This query will retrieve all the information related to the current site. You will also find the websitegrid_id value, which can be useful for other type of calls where the websitegrid_id is requested, usually through the websitegrid-id parameter.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=website&method=get_me"
            },
            "operationId" : "getMeWebsite",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "website_active"
                                 },
                                 {
                                    "name" : "website_name"
                                 },
                                 {
                                    "name" : "website_domain"
                                 },
                                 {
                                    "name" : "website_tzone"
                                 },
                                 {
                                    "name" : "websitecategory_id"
                                 },
                                 {
                                    "name" : "website_id"
                                 },
                                 {
                                    "name" : "websitegrid_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "Y",
                                    "test",
                                    "http://test.eulerian.com",
                                    "Europe/Paris",
                                    "1",
                                    "29",
                                    "31"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get information about current website.",
            "tags" : [
               "Website"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_me.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_me.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_me.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_me.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/website/get_rootpublisher.json" : {
         "get" : {
            "description" : "This query will retrieve all the available partner publisher for which a cookie-matching, pivot identifier or device identifier can be stored in the platform.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=website&method=get_rootpublisher"
            },
            "operationId" : "getRootpublisherWebsite",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "rootpublisher_id"
                                 },
                                 {
                                    "name" : "rootpublisher_cgiparam"
                                 },
                                 {
                                    "name" : "rootpublisher_name"
                                 },
                                 {
                                    "name" : "rootpublisher_e3rd"
                                 },
                                 {
                                    "name" : "rootpublisher_reverse"
                                 },
                                 {
                                    "name" : "rootpublisher_rpsetuserdata"
                                 },
                                 {
                                    "name" : "rootpublisher_shareable"
                                 }
                              ],
                              "rows" : [
                                 [
                                    8,
                                    "apnxsid",
                                    "AppNexus",
                                    "Y",
                                    "Y",
                                    "N",
                                    "N",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get all available partner publisher",
            "tags" : [
               "Website"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_rootpublisher.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_rootpublisher.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_rootpublisher.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_rootpublisher.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/website/get_session_token.json" : {
         "get" : {
            "description" : "This query returns a temporary access_token to create calls to the Real-Time Server2Server API. The expiration value is provided in the response, the token is linked to a target website, you cannot use another token for a given website. You can provide an optionnal list of whitelisted IP for increased security. Authorization: webmaster only.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=website&method=get_session_token"
            },
            "operationId" : "getSessionTokenWebsite",
            "parameters" : [
               {
                  "description" : "optionnal list of IPs separated by commas.",
                  "example" : "192.168.1.1,127.0.0.1",
                  "in" : "query",
                  "name" : "ip",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "session_token"
                                 },
                                 {
                                    "name" : "expires_in"
                                 },
                                 {
                                    "name" : "ip"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "DE54QwyRwgEDJm_8YpRfjMNTih22j30BzNouDn0aEB4Sh9u8.AvI3s5KN8o1nElA1j.z6T.V7vJHRmnQ--",
                                    3600,
                                    "^(127.0.0.1|192.168.1.1)$"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get a session token with expire date.",
            "tags" : [
               "Website"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_session_token.json?ip=192.168.1.1%2C127.0.0.1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_session_token.json?ip=192.168.1.1,127.0.0.1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_session_token.json?ip=192.168.1.1,127.0.0.1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ip=192.168.1.1%2C127.0.0.1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_session_token.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/website/get_viewability_settings.json" : {
         "get" : {
            "description" : "This query will retrieve all the viewability settings for the visibility setup for the current site. This means that for each event : surface, duration, progress the value set-up with the flag trigger=Y will be returned in the response, otherwise the fields will be set to 0 or \"\".",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=website&method=get_viewability_settings"
            },
            "operationId" : "getViewabilitySettingsWebsite",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 [
                                    "duration",
                                    12,
                                    "duration 30 sec",
                                    30
                                 ],
                                 [
                                    "surface",
                                    0,
                                    "",
                                    ""
                                 ],
                                 [
                                    "progress",
                                    0,
                                    "",
                                    ""
                                 ]
                              ],
                              "rows" : [
                                 {
                                    "name" : "type"
                                 },
                                 {
                                    "name" : "id"
                                 },
                                 {
                                    "name" : "name"
                                 },
                                 {
                                    "name" : "value"
                                 },
                                 {
                                    "name" : "websitecategory_id"
                                 },
                                 {
                                    "name" : "website_id"
                                 }
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 6
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get a current settings for viewability setup.",
            "tags" : [
               "Website"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_viewability_settings.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_viewability_settings.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_viewability_settings.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/get_viewability_settings.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/website/has_edw.json" : {
         "get" : {
            "description" : "Indicates if the Eulerian DataWareHouse is enabled or not for current website.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=website&method=has_edw"
            },
            "operationId" : "hasEdwWebsite",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "has_edw"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "Y"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "EDW status",
            "tags" : [
               "Website"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/has_edw.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/has_edw.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/has_edw.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/has_edw.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/website/hash_apply.json" : {
         "post" : {
            "description" : "This method is useful for trying hashing methods and check their outgoing results.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=website&method=hash_apply"
            },
            "operationId" : "hashApplyWebsite",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the allowed hash",
                  "example" : "sha256",
                  "in" : "query",
                  "name" : "hash",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "value of the hashing group",
                  "example" : "TEST",
                  "in" : "query",
                  "name" : "group",
                  "required" : false,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "value to hash, you can provide multiple values separated by commas, limit is 500",
                  "example" : "my-id",
                  "in" : "query",
                  "name" : "value",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "epoch time at which you want the hash to work on",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "this will replace spaces by pluses, eg: value 1 B434 346 will be used as 1+B434+346",
                  "example" : 1,
                  "in" : "query",
                  "name" : "space-as-plus",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "hash"
                                 },
                                 {
                                    "name" : "group"
                                 },
                                 {
                                    "name" : "value"
                                 },
                                 {
                                    "name" : "hashed_key"
                                 },
                                 {
                                    "name" : "hashed_value"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "sha256_currentweek_sha256",
                                    "TEST",
                                    "1R72U",
                                    "y2022w1-TEST2525ecf8b292bef3184b3975d9c5b58a64c3c32dbd39f70e1b56",
                                    "3017ab224f053ed5e830d9c753e696a5b27037a842612c679"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Apply a hash calculation",
            "tags" : [
               "Website"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"epoch=1777564990&group=TEST&hash=sha256&space-as-plus=1&value=my-id\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/hash_apply.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'epoch' => '1777564990',\n'group' => 'TEST',\n'hash' => 'sha256',\n'space-as-plus' => '1',\n'value' => 'my-id'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/hash_apply.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/hash_apply.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('epoch=1777564990&group=TEST&hash=sha256&space-as-plus=1&value=my-id');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'epoch' : '1777564990',\n'group' : 'TEST',\n'hash' : 'sha256',\n'space-as-plus' : '1',\n'value' : 'my-id'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/website/lookup_ergmacro_clause.json" : {
         "get" : {
            "description" : "This query allow you to find where a clause is used system-wide, so that you know in which class a given clause is used. If you have an ergmacrotemplate column set to 1 in the results, this means that the clause is used through an ergmacrotemplate for the current class.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=website&method=lookup_ergmacro_clause"
            },
            "operationId" : "lookupErgmacroClauseWebsite",
            "parameters" : [
               {
                  "description" : "class in which the clause is used, so that you only check for example dataconnector triggering rules. Multiple classes can be provided if you separate them with a comma, eg: dataconnector,clickdispatcher.",
                  "example" : "dataconnector",
                  "in" : "query",
                  "name" : "class",
                  "schema" : {
                     "enum" : [
                        "ergmacrotemplate",
                        "opedataparam",
                        "tpcreativeengine",
                        "collectorconfigmthandler",
                        "dataconnector",
                        "clustervalue",
                        "denysitecentric",
                        "clickdispatcher",
                        "view",
                        "tpcampaignelttargeting",
                        "campaignelttargeting",
                        "ebmdb",
                        "coldebmdb"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the clause as used in the triggering rule. You can provide a regexp here : lcnt_(pub|ope), lcnt_*, etc ... The clause is exactly matched /^$n$/",
                  "example" : "w_order",
                  "in" : "query",
                  "name" : "n",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "id"
                                 },
                                 {
                                    "name" : "name"
                                 },
                                 {
                                    "name" : "class"
                                 },
                                 {
                                    "name" : "ergmacrotemplate"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "11",
                                       "Criteo-Conversion-Offline-old",
                                       "dataconnector",
                                       "0"
                                    ],
                                    [
                                       "12",
                                       "testreglecriteo",
                                       "dataconnector",
                                       "1"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Lookup where a clause is used in triggering rules.",
            "tags" : [
               "Website"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/lookup_ergmacro_clause.json?class=dataconnector&n=w_order\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/lookup_ergmacro_clause.json?class=dataconnector&n=w_order',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/lookup_ergmacro_clause.json?class=dataconnector&n=w_order');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'class=dataconnector&n=w_order'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/lookup_ergmacro_clause.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/website/set_viewability_settings.json" : {
         "post" : {
            "description" : "This query allows for defining which entry are triggering the viewability threshold and hence the viewability settings.\n\nYou need to make one call per parameter :\n\n- viewduration-id\n\n- viewsurface-id\n\n- viewprogress-id",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=website&method=set_viewability_settings"
            },
            "operationId" : "setViewabilitySettingsWebsite",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the viewduration entry as managed by the website/viewduration API, if you want to modify the duration trigger",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "viewduration-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the viewsurface entry as managed by the website/viewsurface API, if you want to modify the surface trigger",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "viewsurface-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the viewprogress entry as managed by the website/viewprogress API, if you want to modify the progress trigger",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "viewprogress-id",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Modify the viewability settings.",
            "tags" : [
               "Website"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"viewduration-id=1777564990&viewprogress-id=1777564990&viewsurface-id=1777564990\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/set_viewability_settings.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'viewduration-id' => '1777564990',\n'viewprogress-id' => '1777564990',\n'viewsurface-id' => '1777564990'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/set_viewability_settings.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/set_viewability_settings.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('viewduration-id=1777564990&viewprogress-id=1777564990&viewsurface-id=1777564990');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'viewduration-id' : '1777564990',\n'viewprogress-id' : '1777564990',\n'viewsurface-id' : '1777564990'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/website/set_websitecategory.json" : {
         "post" : {
            "description" : "This query allows for defining the website category to which the\n\n current website will be linked.\n> Only **Eulerian** staff can call this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=website&method=set_websitecategory"
            },
            "operationId" : "setWebsitecategoryWebsite",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the website category.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "websitecategory-id",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       1777564990
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Modify the category linked to the website.",
            "tags" : [
               "Website"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"websitecategory-id=1777564990\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/set_websitecategory.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'websitecategory-id' => '1777564990'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/set_websitecategory.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/set_websitecategory.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('websitecategory-id=1777564990');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'websitecategory-id' : '1777564990'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/website/websites_linked_to_dmpgroup.json" : {
         "get" : {
            "description" : "This query will allow you to return the list of websites linked to the current website, if the website is a DMPGroup website.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=website&method=websites_linked_to_dmpgroup"
            },
            "operationId" : "websitesLinkedToDmpgroupWebsite",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "website_id"
                                 },
                                 {
                                    "name" : "website_name"
                                 },
                                 {
                                    "name" : "website_active"
                                 },
                                 {
                                    "name" : "dmpgrouwebsite_active"
                                 },
                                 {
                                    "name" : "dmpgrouwebsite_archive"
                                 }
                              ],
                              "rows" : [
                                 [
                                    193510019,
                                    "website1",
                                    "Y",
                                    "Y",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "List websites linked to DMPGroup site",
            "tags" : [
               "Website"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/websites_linked_to_dmpgroup.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/websites_linked_to_dmpgroup.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/websites_linked_to_dmpgroup.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/website/websites_linked_to_dmpgroup.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/websitecategory/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new websitecategory.\n> Only **Eulerian** staff can call this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=websitecategory&method=create"
            },
            "operationId" : "createWebsiteCategory",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the websitecategory template",
                  "example" : "my-test-websitecategory-key",
                  "in" : "query",
                  "name" : "websitecategory-key",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "websitecategory_id"
                                 },
                                 {
                                    "name" : "websitecategory_key"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "visitor"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564993108471777564993",
                              "start" : 0,
                              "tm" : 1777564993,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new websitecategory entry.",
            "tags" : [
               "Website Category"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"websitecategory-key=my-test-websitecategory-key\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/websitecategory/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'websitecategory-key' => 'my-test-websitecategory-key'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/websitecategory/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/websitecategory/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('websitecategory-key=my-test-websitecategory-key');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'websitecategory-key' : 'my-test-websitecategory-key'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/websitecategory/exists.json" : {
         "get" : {
            "description" : "This query will check if a websitecategory-key exists in the current website category list. We first check the exact match, if not found we check in lowercase.\n> Only **Eulerian** staff can call this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=websitecategory&method=exists"
            },
            "operationId" : "existsWebsiteCategory",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the websitecategory to check",
                  "example" : "my-test-websitecategory",
                  "in" : "query",
                  "name" : "websitecategory-key",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "websitecategory_id"
                                 },
                                 {
                                    "name" : "websitecategory_key"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "visitor"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564993108471777564993",
                              "start" : 0,
                              "tm" : 1777564993,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a websitecategory-key exists",
            "tags" : [
               "Website Category"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/websitecategory/exists.json?websitecategory-key=my-test-websitecategory\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/websitecategory/exists.json?websitecategory-key=my-test-websitecategory',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/websitecategory/exists.json?websitecategory-key=my-test-websitecategory');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'websitecategory-key=my-test-websitecategory'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/websitecategory/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/websitecategory/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.\n> Only **Eulerian** staff can call this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=websitecategory&method=search"
            },
            "operationId" : "searchWebsiteCategory",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "name of the websitecategory",
                  "example" : "my-test-websitecategory",
                  "in" : "query",
                  "name" : "websitecategory-key",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "websitecategory-key-exact",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "websitecategory_id"
                                 },
                                 {
                                    "name" : "websitecategory_key"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "visitor"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564993108471777564993",
                              "start" : 0,
                              "tm" : 1777564993,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Website Category"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/websitecategory/search.json?dir=DESC&limit=25&start=0&websitecategory-key=my-test-websitecategory&websitecategory-key-exact=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/websitecategory/search.json?dir=DESC&limit=25&start=0&websitecategory-key=my-test-websitecategory&websitecategory-key-exact=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/websitecategory/search.json?dir=DESC&limit=25&start=0&websitecategory-key=my-test-websitecategory&websitecategory-key-exact=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&start=0&websitecategory-key=my-test-websitecategory&websitecategory-key-exact=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/websitecategory/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/websitecategory/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing websitecategory.\n> Only **Eulerian** staff can call this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=websitecategory&method=update"
            },
            "operationId" : "updateWebsiteCategory",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the websitecategory for which you want to modify attributes",
                  "example" : 1777564993,
                  "in" : "query",
                  "name" : "websitecategory-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new websitecategory name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "websitecategory-key",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "websitecategory_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564993
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564993108471777564993",
                              "start" : 0,
                              "tm" : 1777564993,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchWebsiteCategory" : {
                        "description" : "Use the value of websitecategory_id entry to update a websitecategory through websitecategory-id parameter.",
                        "operationId" : "searchWebsiteCategory",
                        "parameters" : {
                           "websitecategory-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing websitecategory.",
            "tags" : [
               "Website Category"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"websitecategory-id=1777564993&websitecategory-key=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/websitecategory/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'websitecategory-id' => '1777564993',\n'websitecategory-key' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/websitecategory/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/websitecategory/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('websitecategory-id=1777564993&websitecategory-key=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'websitecategory-id' : '1777564993',\n'websitecategory-key' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/workflow/exists.json" : {
         "get" : {
            "description" : "This query will check if a workflow name exists in the current website. We first check the exact match, if not found we check in lowercase.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=workflow&method=exists"
            },
            "operationId" : "existsWorkflow",
            "parameters" : [
               {
                  "description" : "name of the workflow to check",
                  "example" : "my-test-workflow",
                  "in" : "query",
                  "name" : "job-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_datecreate"
                                 },
                                 {
                                    "name" : "websitegrid_id"
                                 },
                                 {
                                    "name" : "job_type"
                                 },
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "account_id"
                                 },
                                 {
                                    "name" : "job_dateupdate"
                                 },
                                 {
                                    "name" : "job_active"
                                 },
                                 {
                                    "name" : "job_params"
                                 },
                                 {
                                    "name" : "job_dw"
                                 },
                                 {
                                    "name" : "job_oneshotrun"
                                 },
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_crontab"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "2",
                                       "workflow",
                                       "my workflow",
                                       "115",
                                       "0",
                                       "Y",
                                       "XML describing the workflow",
                                       "N",
                                       "N",
                                       "286",
                                       "0 9 * * *"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a workflow exists",
            "tags" : [
               "Workflow"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/exists.json?job-name=my-test-workflow\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/exists.json?job-name=my-test-workflow',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/exists.json?job-name=my-test-workflow');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'job-name=my-test-workflow'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/workflow/get_token.json" : {
         "get" : {
            "description" : "Given a workflow id, returns the authentification token associated.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=workflow&method=get_token"
            },
            "operationId" : "getTokenWorkflow",
            "parameters" : [
               {
                  "description" : "the id of the workflow as provided by the search.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "token"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992,
                                    "My Workflow",
                                    "DLKFJLKSJDF8765-"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Token for a given workflow",
            "tags" : [
               "Workflow"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/get_token.json?job-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/get_token.json?job-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/get_token.json?job-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'job-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/get_token.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/workflow/last_status.json" : {
         "get" : {
            "description" : "Given a workflow check the latest status.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=workflow&method=last_status"
            },
            "operationId" : "lastStatusWorkflow",
            "parameters" : [
               {
                  "description" : "the id of the workflow as provided by the search.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 },
                                 {
                                    "name" : "jobrun_status"
                                 },
                                 {
                                    "name" : "jobrun_tm_format"
                                 },
                                 {
                                    "name" : "jobrun_statustm_format"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649921777564992",
                                    "COMPLETED",
                                    "2019-03-04 12:32:56",
                                    "2019-03-04 14:34:01"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Latest status of a workflow",
            "tags" : [
               "Workflow"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/last_status.json?job-id=1777564992\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/last_status.json?job-id=1777564992',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/last_status.json?job-id=1777564992');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'job-id=1777564992'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/last_status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/workflow/launch_with_configuration.json" : {
         "post" : {
            "description" : "This API is useful when an identical workflow needs to be launched but with a specific configuration, like for example if you want to specify a new file to fetch on a FTP service.\n\nThe updated configuration is linked to the type of steps which are used in the workflow.\n\nIf you have this configuration : ```<ea type=\"workflow\"><gridpool name=\"dem\"/><website id=\"29\"/><steps><step action=\"tvty::ftpdataproviderimport\" job=\"1777564992\" wsuid=\"uid\" /></steps></ea>```\n\nThe file defined in the linked job will be fetch by default.\n\nIf you want to fetch the file `test-new-config.csv` you will need to POST the following payload.\n\n```\n{\n \"configuration\" : {\n   \"tvty::ftpdataproviderimport\" : {\n     \"params\" : {\n       \"filetmpl\":\"test-new-config.csv\"\n     }\n   }\n }\n}\n```\n\nThat will fetch the new `test-new-config.csv` file rather than the default file.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=workflow&method=launch_with_configuration"
            },
            "operationId" : "launchWithConfigurationWorkflow",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the encrypted token to identify the workflow to use as a base configuration.",
                  "example" : "DNfSCGZaXkRgrcNJY00KJHJ877634--",
                  "in" : "query",
                  "name" : "token",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "content to be POSTed as the new configuration payload (do not use the body name parameter, there is no parameter, POST the configuration directly).",
                  "example" : "{\"configuration\":{\"tvty::ftpdataproviderimport\":{\"params\":{\"filetmpl\":\"test-new-config.csv\"}}}}",
                  "in" : "query",
                  "name" : "body",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649921777564992"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Launch a workflow with a specific configuration.",
            "tags" : [
               "Workflow"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"body=%7B%22configuration%22%3A%7B%22tvty%3A%3Aftpdataproviderimport%22%3A%7B%22params%22%3A%7B%22filetmpl%22%3A%22test-new-config.csv%22%7D%7D%7D%7D&token=DNfSCGZaXkRgrcNJY00KJHJ877634--\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/launch_with_configuration.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'body' => '{\"configuration\":{\"tvty::ftpdataproviderimport\":{\"params\":{\"filetmpl\":\"test-new-config.csv\"}}}}',\n'token' => 'DNfSCGZaXkRgrcNJY00KJHJ877634--'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/launch_with_configuration.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/launch_with_configuration.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('body=%7B%22configuration%22%3A%7B%22tvty%3A%3Aftpdataproviderimport%22%3A%7B%22params%22%3A%7B%22filetmpl%22%3A%22test-new-config.csv%22%7D%7D%7D%7D&token=DNfSCGZaXkRgrcNJY00KJHJ877634--');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'body' : '%7B%22configuration%22%3A%7B%22tvty%3A%3Aftpdataproviderimport%22%3A%7B%22params%22%3A%7B%22filetmpl%22%3A%22test-new-config.csv%22%7D%7D%7D%7D',\n'token' : 'DNfSCGZaXkRgrcNJY00KJHJ877634--'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/workflow/relaunch.json" : {
         "post" : {
            "description" : "This API is useful when a workflow has failed and you want to re-launch it with the same configuration.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=workflow&method=relaunch"
            },
            "operationId" : "relaunchWorkflow",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the id of the workflow to be relaunched.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649921777564992"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Launch a workflow.",
            "tags" : [
               "Workflow"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"job-id=1777564992\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/relaunch.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'job-id' => '1777564992'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/relaunch.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/relaunch.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('job-id=1777564992');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'job-id' : '1777564992'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/workflow/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=workflow&method=search"
            },
            "operationId" : "searchWorkflow",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on active flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "job-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the workflow",
                  "example" : "my-test-workflow",
                  "in" : "query",
                  "name" : "job-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_datecreate"
                                 },
                                 {
                                    "name" : "websitegrid_id"
                                 },
                                 {
                                    "name" : "job_type"
                                 },
                                 {
                                    "name" : "job_name"
                                 },
                                 {
                                    "name" : "account_id"
                                 },
                                 {
                                    "name" : "job_dateupdate"
                                 },
                                 {
                                    "name" : "job_active"
                                 },
                                 {
                                    "name" : "job_params"
                                 },
                                 {
                                    "name" : "job_dw"
                                 },
                                 {
                                    "name" : "job_oneshotrun"
                                 },
                                 {
                                    "name" : "job_id"
                                 },
                                 {
                                    "name" : "job_crontab"
                                 }
                              ],
                              "rows" : [
                                 [
                                    [
                                       "0",
                                       "2",
                                       "workflow",
                                       "my workflow",
                                       "115",
                                       "0",
                                       "Y",
                                       "XML describing the workflow",
                                       "N",
                                       "N",
                                       "286",
                                       "0 9 * * *"
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Workflow"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/search.json?dir=DESC&job-active=Y&job-name=my-test-workflow&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/search.json?dir=DESC&job-active=Y&job-name=my-test-workflow&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/search.json?dir=DESC&job-active=Y&job-name=my-test-workflow&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&job-active=Y&job-name=my-test-workflow&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/workflow/status.json" : {
         "get" : {
            "description" : "Given a workflow, return the history of generation.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=workflow&method=status"
            },
            "operationId" : "statusWorkflow",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the id of the workflow as provided by the search.",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 },
                                 {
                                    "name" : "jobrun_status"
                                 },
                                 {
                                    "name" : "jobrun_tm_format"
                                 },
                                 {
                                    "name" : "jobrun_statustm_format"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "17775649921777564992",
                                    "COMPLETED",
                                    "2019-03-04 12:32:56",
                                    "2019-03-04 14:34:01"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "List status of a workflow",
            "tags" : [
               "Workflow"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/status.json?dir=DESC&job-id=1777564992&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/status.json?dir=DESC&job-id=1777564992&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/status.json?dir=DESC&job-id=1777564992&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&job-id=1777564992&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/workflow/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing workflow.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=workflow&method=update"
            },
            "operationId" : "updateWorkflow",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the workflow for which you want to modify attributes",
                  "example" : 1777564992,
                  "in" : "query",
                  "name" : "job-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new workflow name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "job-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the active attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "job-active",
                  "schema" : {
                     "enum" : [
                        "Y",
                        "N"
                     ],
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "job_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564992
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564992108471777564992",
                              "start" : 0,
                              "tm" : 1777564992,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchWorkflow" : {
                        "description" : "Use the value of workflow_id entry to update a workflow through workflow-id parameter.",
                        "operationId" : "searchWorkflow",
                        "parameters" : {
                           "workflow-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update a workflow",
            "tags" : [
               "Workflow"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"job-active=Y&job-id=1777564992&job-name=New%20name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'job-active' => 'Y',\n'job-id' => '1777564992',\n'job-name' => 'New name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/workflow/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('job-active=Y&job-id=1777564992&job-name=New%20name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'job-active' : 'Y',\n'job-id' : '1777564992',\n'job-name' : 'New%20name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/wsipwhitelist/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new wsipwhitelist.\n> Only **webmaster** type of account can access this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=wsipwhitelist&method=create"
            },
            "operationId" : "createIPWhitelist",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "ipblock of IPs to whitelist following the CIDR representation",
                  "example" : "192.168.1.0/24",
                  "in" : "query",
                  "name" : "wsipwhitelist-ipblock",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "wsipwhitelist_id"
                                 },
                                 {
                                    "name" : "wsipwhitelist_ipblock"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "192.168.1.0/24"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564993108471777564993",
                              "start" : 0,
                              "tm" : 1777564993,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new wsipwhitelist entry.",
            "tags" : [
               "IP Whitelist"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"wsipwhitelist-ipblock=192.168.1.0%2F24\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/wsipwhitelist/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'wsipwhitelist-ipblock' => '192.168.1.0/24'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/wsipwhitelist/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/wsipwhitelist/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('wsipwhitelist-ipblock=192.168.1.0%2F24');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'wsipwhitelist-ipblock' : '192.168.1.0%2F24'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/wsipwhitelist/is_ip_whitelisted.json" : {
         "get" : {
            "description" : "This query allows for matching the provided IP against all the existing ipblocks to see if it is whitelisted or not.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=wsipwhitelist&method=is_ip_whitelisted"
            },
            "operationId" : "isIpWhitelistedIPWhitelist",
            "parameters" : [
               {
                  "description" : "IP to check",
                  "example" : "192.168.1.24",
                  "in" : "query",
                  "name" : "ip",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "wsipwhitelist_id"
                                 },
                                 {
                                    "name" : "wsipwhitelist_ipblock"
                                 },
                                 {
                                    "name" : "ip"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "192.168.1.0/24",
                                    "192.168.1.24"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564993108471777564993",
                              "start" : 0,
                              "tm" : 1777564993,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if an IP is whitelisted",
            "tags" : [
               "IP Whitelist"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/wsipwhitelist/is_ip_whitelisted.json?ip=192.168.1.24\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/wsipwhitelist/is_ip_whitelisted.json?ip=192.168.1.24',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/wsipwhitelist/is_ip_whitelisted.json?ip=192.168.1.24');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ip=192.168.1.24'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/wsipwhitelist/is_ip_whitelisted.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/wsipwhitelist/remove.json" : {
         "delete" : {
            "description" : "This query will remove the wsipwhitelist ipblock.\n> Only **webmaster** type of account can access this method.\n> You **must** know what you do here, this can have an impact on data collection, analytics reporting, data activation, etc ... Be fully aware of the impact before calling this method.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=wsipwhitelist&method=remove"
            },
            "operationId" : "removeIPWhitelist",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the wsipwhitelist you want to remove.",
                  "example" : 1777564993,
                  "in" : "query",
                  "name" : "wsipwhitelist-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "wsipwhitelist_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564993
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564993108471777564993",
                              "start" : 0,
                              "tm" : 1777564993,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Remove wsipwhitelist ipblock",
            "tags" : [
               "IP Whitelist"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X DELETE \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/wsipwhitelist/remove.json?wsipwhitelist-id=1777564993\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/wsipwhitelist/remove.json?wsipwhitelist-id=1777564993',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/wsipwhitelist/remove.json?wsipwhitelist-id=1777564993');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'wsipwhitelist-id=1777564993'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/wsipwhitelist/remove.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/db/wsipwhitelist/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "externalDocs" : {
               "description" : "Click here to try this method in our API Explorer!",
               "url" : "https://eu.global-cdn.net/ea-ui/api/eulerian-db.html?class=wsipwhitelist&method=search"
            },
            "operationId" : "searchIPWhitelist",
            "parameters" : [
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "wsipwhitelist_id"
                                 },
                                 {
                                    "name" : "wsipwhitelist_ipblock"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "192.168.1.0/24"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564993108471777564993",
                              "start" : 0,
                              "tm" : 1777564993,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "IP Whitelist"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/wsipwhitelist/search.json?dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/wsipwhitelist/search.json?dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/wsipwhitelist/search.json?dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/db/wsipwhitelist/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/actionlog/download.json" : {
         "get" : {
            "description" : "Once the report is available (COMPLETED) you can download the data by querying this method.\n\nThe following fields are returned depending on the request parameters :\n<table>\n <tr><td>Field</td><td>Header</td><td>Format</td><td>Availability</td></tr>\n <tr><td>actionlog_id</td><td>EA internal ID</td><td>Unsigned int</td><td>Always</td></tr>\n <tr><td>actionlog_datein</td><td>Date at which the goal was initiated</td><td>DMYHMS date</td><td>Always</td></tr>\n <tr><td>actionlog_datein_dmy</td><td>Date at which the goal was initiated</td><td>DMY date</td><td>with-date-dmy=1</td></tr>\n <tr><td>actionlog_datein_hms</td><td>Date at which the goal was initiated</td><td>HMS date</td><td>with-date-hms=1</td></tr>\n <tr><td>actionlog_datein_epoch</td><td>Date at which the goal was initiated</td><td>Epoch UNIX</td><td>with-date-epoch=1</td></tr>\n <tr><td>actionlog_dateout</td><td>Date at which the goal was finalized</td><td>DMYHMS date</td><td>Always</td></tr>\n <tr><td>actionlog_dateout_dmy</td><td>Date at which the goal was finalized</td><td>DMY date</td><td>with-date-dmy=1</td></tr>\n <tr><td>actionlog_dateout_hms</td><td>Date at which the goal was finalized</td><td>HMS date</td><td>with-date-hms=1</td></tr>\n <tr><td>actionlog_dateout_epoch</td><td>Date at which the goal was finalized</td><td>Epoch UNIX</td><td>with-date-epoch=1</td></tr>\n <tr><td>actionlog_ref</td><td>Goal reference</td><td>Text</td><td>Always</td></tr>\n <tr><td>action_name</td><td>Goal name</td><td>Text</td><td>with-actionname=1</td></tr>\n <tr><td>email_id</td><td>Email address</td><td>Text</td><td>with-email=1</td></tr>\n <tr><td>actiolog_extparam</td><td>External parameter</td><td>Text</td><td>with-extparam=1</td></tr>\n <tr><td>actionlog_buyerid</td><td>BuyerId</td><td>Signed int</td><td>with-buyerid=1</td></tr>\n <tr><td>iduser_fullid</td><td>CRM ID</td><td>Text</td><td>with-userid=1</td></tr>\n <tr><td>cgiparam_$ID : $ID being the custom parameter internal ID</td><td>Custom parameter</td><td>Text</td><td>with-cgiparam=1</td></tr>\n <tr><td>a_channel_sz</td><td>Total number of channels in the marketing history</td><td>Total</td><td>with-channel-count=1&with-channel-level=1</td></tr>\n <tr><td>channel_lvl0_pX</td><td>Field PX of the channel on level 0</td><td>Text</td><td>with-channel-level=1&max-channel-level=1</td></tr>\n <tr><td>channel_lvl0_pX</td><td>Field PX of the channel on level 1</td><td>Text</td><td>with-channel-level=1&max-channel-level=2</td></tr>\n <tr><td>channel_lvl0_pX</td><td>Field PX of the channel on level 2</td><td>Text</td><td>with-channel-level=1&max-channel-level=3</td></tr>\n <tr><td>channel_lvlX_P0</td><td>Field P0 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=1</td></tr>\n <tr><td>channel_lvlX_P1</td><td>Field P1 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=2</td></tr>\n <tr><td>channel_lvlX_P2</td><td>Field P2 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=3</td></tr>\n <tr><td>channel_lvlX_P3</td><td>Field P3 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=4</td></tr>\n <tr><td>channel_lvlX_via</td><td>Type of interaction at X level for the channel: C: post-click/V: post-impression/R: out of session/Empty: none</td><td>Text</td><td>with-channel-level=1&with-channel-via=1</td></tr>\n <tr><td>channel_lvlX_date</td><td>Date from the interaction with the channel on X level</td><td>Epoch UNIX</td><td>with-channel-level=1&with-channel-date=1</td></tr>\n <tr><td>viewchannel_P0</td><td>Field P0 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P1</td><td>Field P1 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=2&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P2</td><td>Field P2 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=3&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P3</td><td>Field P3 to P4 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=5&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P4 to P6 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=7&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P7 to P8 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=9&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P8 to P13 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=14&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P13 to P17 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=18&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P17 to P20 of the channel on for provided view-id</td><td>Text</td><td>max-channel-info=21&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_via</td><td>Type of interaction for the channel for provided view-id: C: post-click/V: post-impression/R: out of session/Empty: none</td><td>Text</td><td>with-channel-via=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_date</td><td>Date from the interaction with the channel on X level</td><td>Epoch UNIX</td><td>&with-channel-date=1&view-id=ID_VIEW</td></tr>\n <tr><td>a_actionlogpage_sz</td><td>Number of pages associated with the goal</td><td>Total</td><td>with-actionlogpage=1</td></tr>\n <tr><td>actionlogpage_name_X: X being the page index</td><td>Name of the page</td><td>Text</td><td>with-actionlogpage=1</td></tr>\n <tr><td>a_actionparam_sz</td><td>Number of params associated to the goal</td><td>Total</td><td>with-actionparam=1</td></tr>\n <tr><td>actionparam_name_$NAME</td><td>Name of the param linked to the goal</td><td>Text</td><td>with-actionparam=1</td></tr>\n <tr><td>rp_last_31</td><td>Last cross-device Apple IDFA</td><td>Text</td><td>with-last-rp-ea-ios-idfa=1</td></tr>\n <tr><td>rp_last_32</td><td>Last cross-device Google ADID</td><td>Text</td><td>with-last-rp-ea-android-adid=1</td></tr>\n</table>\n",
            "operationId" : "downloadDatamining:goals",
            "parameters" : [
               {
                  "description" : "id of the jobrun generating the report as provided by the `search` query",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If set to 1, the output will be formatted as a CSV file.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "output-as-csv",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If set to 1, the output will be formatted as an array of key/value fields.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "output-as-kv",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "actionlog_ref"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "REF-ACTIONLOG-1777564990"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Download the report",
            "tags" : [
               "Datamining: goals"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/actionlog/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/actionlog/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/actionlog/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564990&output-as-csv=1&output-as-kv=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/actionlog/download.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/actionlog/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.\n\nPlease check the following [section](#section/Introduction/Asynchronous-calls) for more information about the download process.",
            "operationId" : "searchDatamining:goals",
            "parameters" : [
               {
                  "description" : "date from which the data is requested, format: MM/DD/YYYY",
                  "example" : "01/15/2018",
                  "in" : "query",
                  "name" : "date-from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date from which the data is requested, format: MM/DD/YYYY",
                  "example" : "01/29/2018",
                  "in" : "query",
                  "name" : "date-to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set this flag to 1 if you want the dates to be formatted according to a preset format, otherwise you will always have epoch format times.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "ea-enable-datefmt",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Column: Label 1",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-actionlabel1",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Label 2",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-actionlabel2",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Label 3",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-actionlabel3",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Label 4",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-actionlabel4",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Label 5",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-actionlabel5",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: number of pages",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-actionlogpage",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: goal parameters",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-actionparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Eulerian identifier (EUID)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-buyerid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: CGI params",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-cgiparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: total number of interactions",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-count",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: interaction date per channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-date",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: level of detail of the marketing channels",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-level",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Interaction type (post-clic/post-impression/revisit)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-via",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: entry date (MM/DD/YYYY)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-dmy",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: entry date (epoch)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: entry date (HH :MM :SS)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-hms",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: email",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-email",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: external parameter",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-extparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: last Android ID",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-last-rp-ea-android-adid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: last iOS IDFA",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-last-rp-ea-ios-idfa",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: CRM identifier (UID)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-userid",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Datamining: goals"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/actionlog/search.json?date-from=01%2F15%2F2018&date-to=01%2F29%2F2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&with-actionlabel1=1&with-actionlabel2=1&with-actionlabel3=1&with-actionlabel4=1&with-actionlabel5=1&with-actionlogpage=1&with-actionparam=1&with-buyerid=1&with-cgiparam=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-extparam=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-userid=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/actionlog/search.json?date-from=01/15/2018&date-to=01/29/2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&with-actionlabel1=1&with-actionlabel2=1&with-actionlabel3=1&with-actionlabel4=1&with-actionlabel5=1&with-actionlogpage=1&with-actionparam=1&with-buyerid=1&with-cgiparam=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-extparam=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-userid=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/actionlog/search.json?date-from=01/15/2018&date-to=01/29/2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&with-actionlabel1=1&with-actionlabel2=1&with-actionlabel3=1&with-actionlabel4=1&with-actionlabel5=1&with-actionlogpage=1&with-actionparam=1&with-buyerid=1&with-cgiparam=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-extparam=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-userid=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'date-from=01%2F15%2F2018&date-to=01%2F29%2F2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&with-actionlabel1=1&with-actionlabel2=1&with-actionlabel3=1&with-actionlabel4=1&with-actionlabel5=1&with-actionlogpage=1&with-actionparam=1&with-buyerid=1&with-cgiparam=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-extparam=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-userid=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/actionlog/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/actionlog/status.json" : {
         "get" : {
            "description" : "When sending a `search` request, you can check the generation status of the report by querying this method.",
            "operationId" : "statusDatamining:goals",
            "parameters" : [
               {
                  "description" : "id of the jobrun generating the report as provided by the `search` query",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_status"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "INPROGRESS"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get the generation status.",
            "tags" : [
               "Datamining: goals"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/actionlog/status.json?jobrun-id=1777564990\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/actionlog/status.json?jobrun-id=1777564990',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/actionlog/status.json?jobrun-id=1777564990');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564990'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/actionlog/status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/batch/dimensions.json" : {
         "get" : {
            "description" : "Given a ``path`` get all the available dimensions.",
            "operationId" : "dimensionsBatchReporting",
            "parameters" : [
               {
                  "description" : "the path for which you want the available dimensions.",
                  "example" : "mcMEDIAINCOMING[35].mcMEDIAAD",
                  "in" : "query",
                  "name" : "path",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "field"
                                 },
                                 {
                                    "name" : "name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "media_key",
                                    "Media Key"
                                 ],
                                 [
                                    "media_id",
                                    "Media Id"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Available dimensions",
            "tags" : [
               "Batch Reporting"
            ],
            "x-MCP-resource" : {
               "uri" : "eulerian://reporting/batch/dimensions?site={site}&path={path}"
            },
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/dimensions.json?path=mcMEDIAINCOMING%5B35%5D.mcMEDIAAD\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/dimensions.json?path=mcMEDIAINCOMING[35].mcMEDIAAD',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/dimensions.json?path=mcMEDIAINCOMING[35].mcMEDIAAD');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'path=mcMEDIAINCOMING%5B35%5D.mcMEDIAAD'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/dimensions.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/batch/download.json" : {
         "get" : {
            "description" : "Once the report is available (status is `COMPLETED`) you can download the data by querying this method.\n\n\nDepending on the **kind** of the report, check specific documentation on data available in the report, supported kinds are :\n* `cj#report-name` to request [Customer Journey](#tag/Customer-Journey) type of reports.\n* `rt#report-name` to request Real-time Analytics type of reports.",
            "operationId" : "downloadBatchReporting",
            "parameters" : [
               {
                  "description" : "id of the jobrun generating the report as provided by the `query`",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Download",
            "tags" : [
               "Batch Reporting"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/download.json?jobrun-id=1777564990\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/download.json?jobrun-id=1777564990',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/download.json?jobrun-id=1777564990');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564990'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/download.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/batch/kinds.json" : {
         "get" : {
            "description" : "Return the available ``kinds`` to be used with the Report API.",
            "operationId" : "kindsBatchReporting",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "kind"
                                 },
                                 {
                                    "name" : "name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "rt#insummary",
                                    "Synthese globale"
                                 ],
                                 [
                                    "rt#pagetree",
                                    "Rapport des pages"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Available kinds",
            "tags" : [
               "Batch Reporting"
            ],
            "x-MCP-resource" : {
               "uri" : "eulerian://reporting/batch/kinds?site={site}"
            },
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/kinds.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/kinds.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/kinds.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/kinds.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/batch/metrics.json" : {
         "get" : {
            "description" : "Given a ``kind`` return the available metrics.",
            "operationId" : "metricsBatchReporting",
            "parameters" : [
               {
                  "description" : "the kind of datasource for which you want the available metrics.",
                  "example" : "rt#insummary",
                  "in" : "query",
                  "name" : "kind",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "rt#action",
                        "rt#actionparam",
                        "rt#actionparamvalue",
                        "rt#blockpromo",
                        "rt#browser",
                        "rt#cgiparam",
                        "rt#cluster",
                        "rt#clustervalue",
                        "rt#creative",
                        "rt#dataconnector",
                        "rt#dataconnectorcm",
                        "rt#devicebrowser",
                        "rt#devicehardware",
                        "rt#deviceplatform",
                        "rt#devicescreeninches",
                        "rt#devicetype",
                        "rt#dewebsite",
                        "rt#ebmdbreq",
                        "rt#event",
                        "rt#flash",
                        "rt#geoloc",
                        "rt#geoloccity",
                        "rt#geolocregion",
                        "rt#headingtree",
                        "rt#headingtreeentry",
                        "rt#headingtreeexit",
                        "rt#iduserparam",
                        "rt#iduserparamvalue",
                        "rt#inadvertising",
                        "rt#inaffiliation",
                        "rt#inaudience",
                        "rt#inbranding",
                        "rt#ingeneric",
                        "rt#inmailing",
                        "rt#inpaidinclusion",
                        "rt#inpartner",
                        "rt#inproduct",
                        "rt#inreferer",
                        "rt#insearchengine",
                        "rt#insegment",
                        "rt#insocial",
                        "rt#insponsoredlink",
                        "rt#insummary",
                        "rt#intrustedfeed",
                        "rt#isengine",
                        "rt#isp",
                        "rt#landing",
                        "rt#lang",
                        "rt#location",
                        "rt#mediaplan",
                        "rt#ope",
                        "rt#opesubmedia",
                        "rt#os",
                        "rt#pagegroup",
                        "rt#pagetree",
                        "rt#pagetreeentry",
                        "rt#pagetreeerror",
                        "rt#pagetreeexit",
                        "rt#productevent",
                        "rt#profilechange",
                        "rt#publisher",
                        "rt#redirectdomainaccess",
                        "rt#rootpublishercluster",
                        "rt#sdepth",
                        "rt#ssize",
                        "rt#sslcipher",
                        "rt#sslversion",
                        "rt#tagmaster",
                        "rt#website"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "field"
                                 },
                                 {
                                    "name" : "name"
                                 },
                                 {
                                    "name" : "affinity"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "click",
                                    "inbound clicks",
                                    "int"
                                 ],
                                 [
                                    "clicksession_viewsession",
                                    "clicks/impressions (session)",
                                    "pct"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Available metrics",
            "tags" : [
               "Batch Reporting"
            ],
            "x-MCP-resource" : {
               "uri" : "eulerian://reporting/batch/metrics?site={site}&kind={kind}"
            },
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/metrics.json?kind=rt%23insummary\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/metrics.json?kind=rt#insummary',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/metrics.json?kind=rt#insummary');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'kind=rt%23insummary'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/metrics.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/batch/metrics_info.json" : {
         "get" : {
            "description" : "Given a ``kind`` and a ``metric``, return detailed information about it.",
            "operationId" : "metricsInfoBatchReporting",
            "parameters" : [
               {
                  "description" : "Language in which you want the descriptions.",
                  "example" : "fr",
                  "in" : "query",
                  "name" : "ea-lg",
                  "schema" : {
                     "enum" : [
                        "fr",
                        "en",
                        "es",
                        "de",
                        "it"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "the kind of datasource for which you want the available metrics.",
                  "example" : "rt#insummary",
                  "in" : "query",
                  "name" : "kind",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "rt#action",
                        "rt#actionparam",
                        "rt#actionparamvalue",
                        "rt#blockpromo",
                        "rt#browser",
                        "rt#cgiparam",
                        "rt#cluster",
                        "rt#clustervalue",
                        "rt#creative",
                        "rt#dataconnector",
                        "rt#dataconnectorcm",
                        "rt#devicebrowser",
                        "rt#devicehardware",
                        "rt#deviceplatform",
                        "rt#devicescreeninches",
                        "rt#devicetype",
                        "rt#dewebsite",
                        "rt#ebmdbreq",
                        "rt#event",
                        "rt#flash",
                        "rt#geoloc",
                        "rt#geoloccity",
                        "rt#geolocregion",
                        "rt#headingtree",
                        "rt#headingtreeentry",
                        "rt#headingtreeexit",
                        "rt#iduserparam",
                        "rt#iduserparamvalue",
                        "rt#inadvertising",
                        "rt#inaffiliation",
                        "rt#inaudience",
                        "rt#inbranding",
                        "rt#ingeneric",
                        "rt#inmailing",
                        "rt#inpaidinclusion",
                        "rt#inpartner",
                        "rt#inproduct",
                        "rt#inreferer",
                        "rt#insearchengine",
                        "rt#insegment",
                        "rt#insocial",
                        "rt#insponsoredlink",
                        "rt#insummary",
                        "rt#intrustedfeed",
                        "rt#isengine",
                        "rt#isp",
                        "rt#landing",
                        "rt#lang",
                        "rt#location",
                        "rt#mediaplan",
                        "rt#ope",
                        "rt#opesubmedia",
                        "rt#os",
                        "rt#pagegroup",
                        "rt#pagetree",
                        "rt#pagetreeentry",
                        "rt#pagetreeerror",
                        "rt#pagetreeexit",
                        "rt#productevent",
                        "rt#profilechange",
                        "rt#publisher",
                        "rt#redirectdomainaccess",
                        "rt#rootpublishercluster",
                        "rt#sdepth",
                        "rt#ssize",
                        "rt#sslcipher",
                        "rt#sslversion",
                        "rt#tagmaster",
                        "rt#website"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Metric for which you want the detailed information.",
                  "example" : "visit",
                  "in" : "query",
                  "name" : "metric",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Information about a given metric",
            "tags" : [
               "Batch Reporting"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/metrics_info.json?ea-lg=fr&kind=rt%23insummary&metric=visit\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/metrics_info.json?ea-lg=fr&kind=rt#insummary&metric=visit',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/metrics_info.json?ea-lg=fr&kind=rt#insummary&metric=visit');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ea-lg=fr&kind=rt%23insummary&metric=visit'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/metrics_info.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/batch/metrics_segments.json" : {
         "get" : {
            "description" : "Given a ``kind`` and dates, return the list of segments available for segmenting metrics.",
            "operationId" : "metricsSegmentsBatchReporting",
            "parameters" : [
               {
                  "description" : "From date",
                  "example" : "DD/MM/YYYY",
                  "in" : "query",
                  "name" : "date-from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "To date",
                  "example" : "DD/MM/YYYY",
                  "in" : "query",
                  "name" : "date-to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the kind of datasource for which you want the available metrics.",
                  "example" : "rt#insummary",
                  "in" : "query",
                  "name" : "kind",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "rt#action",
                        "rt#actionparam",
                        "rt#actionparamvalue",
                        "rt#blockpromo",
                        "rt#browser",
                        "rt#cgiparam",
                        "rt#cluster",
                        "rt#clustervalue",
                        "rt#creative",
                        "rt#dataconnector",
                        "rt#dataconnectorcm",
                        "rt#devicebrowser",
                        "rt#devicehardware",
                        "rt#deviceplatform",
                        "rt#devicescreeninches",
                        "rt#devicetype",
                        "rt#dewebsite",
                        "rt#ebmdbreq",
                        "rt#event",
                        "rt#flash",
                        "rt#geoloc",
                        "rt#geoloccity",
                        "rt#geolocregion",
                        "rt#headingtree",
                        "rt#headingtreeentry",
                        "rt#headingtreeexit",
                        "rt#iduserparam",
                        "rt#iduserparamvalue",
                        "rt#inadvertising",
                        "rt#inaffiliation",
                        "rt#inaudience",
                        "rt#inbranding",
                        "rt#ingeneric",
                        "rt#inmailing",
                        "rt#inpaidinclusion",
                        "rt#inpartner",
                        "rt#inproduct",
                        "rt#inreferer",
                        "rt#insearchengine",
                        "rt#insegment",
                        "rt#insocial",
                        "rt#insponsoredlink",
                        "rt#insummary",
                        "rt#intrustedfeed",
                        "rt#isengine",
                        "rt#isp",
                        "rt#landing",
                        "rt#lang",
                        "rt#location",
                        "rt#mediaplan",
                        "rt#ope",
                        "rt#opesubmedia",
                        "rt#os",
                        "rt#pagegroup",
                        "rt#pagetree",
                        "rt#pagetreeentry",
                        "rt#pagetreeerror",
                        "rt#pagetreeexit",
                        "rt#productevent",
                        "rt#profilechange",
                        "rt#publisher",
                        "rt#redirectdomainaccess",
                        "rt#rootpublishercluster",
                        "rt#sdepth",
                        "rt#ssize",
                        "rt#sslcipher",
                        "rt#sslversion",
                        "rt#tagmaster",
                        "rt#website"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Available metrics segments",
            "tags" : [
               "Batch Reporting"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/metrics_segments.json?date-from=DD%2FMM%2FYYYY&date-to=DD%2FMM%2FYYYY&kind=rt%23insummary\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/metrics_segments.json?date-from=DD/MM/YYYY&date-to=DD/MM/YYYY&kind=rt#insummary',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/metrics_segments.json?date-from=DD/MM/YYYY&date-to=DD/MM/YYYY&kind=rt#insummary');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'date-from=DD%2FMM%2FYYYY&date-to=DD%2FMM%2FYYYY&kind=rt%23insummary'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/metrics_segments.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/batch/query.json" : {
         "post" : {
            "description" : "This query will retrieve data for the provided datasource.\nThe following kind of queries are supported by this endpoint :\n - **RTBatchReportingRequest** for `kind=\"rt#KIND_RT_REPORT\"` : allows you to query all the real-time aggregated data.\n - **EBMDBBatchReportingRequest** for `kind=\"ebmdb#query\"` : allows you to query the Audience Engine and count users linked to a set of queries / clauses.\n - **HQBatchReportingRequest** for `kind=\"hq#query\"` : allows you to query the Human Query Engine and use NLP to access aggregated data.\n - **EDWBatchReportingRequest** for `kind=\"edw#query\"` : allows you to query the Eulerian DataWareHouse Engine\n - **CJAssistAdvancedReportingRequest** for `kind=\"cj#assist-advanced\"` for Customer Journey reports.\n - **CJAssistSimpleReportingRequest** for `kind=\"cj#assist-simple\"` for Customer Journey reports.\n - **CJBiasAdvancedReportingRequest** for `kind=\"cj#bias-advanced\"` for Customer Journey reports.\n - **CJBiasSimpleReportingRequest** for `kind=\"cj#bias-simple\"` for Customer Journey reports.\n - **CJDeviceexclusivityAdvancedReportingRequest** for `kind=\"cj#deviceexclusivity-advanced\"` for Customer Journey reports.\n - **CJDeviceexclusivitySimpleReportingRequest** for `kind=\"cj#deviceexclusivity-simple\"` for Customer Journey reports.\n - **CJDevicepathAdvancedReportingRequest** for `kind=\"cj#devicepath-advanced\"` for Customer Journey reports.\n - **CJDevicepathSimpleReportingRequest** for `kind=\"cj#devicepath-simple\"` for Customer Journey reports.\n - **CJDurationSimpleReportingRequest** for `kind=\"cj#duration-simple\"` for Customer Journey reports.\n - **CJMediaexclusivityAdvancedReportingRequest** for `kind=\"cj#mediaexclusivity-advanced\"` for Customer Journey reports.\n - **CJMediaexclusivitySimpleReportingRequest** for `kind=\"cj#mediaexclusivity-simple\"` for Customer Journey reports.\n - **CJMediapathAdvancedReportingRequest** for `kind=\"cj#mediapath-advanced\"` for Customer Journey reports.\n - **CJMediapathSimpleReportingRequest** for `kind=\"cj#mediapath-simple\"` for Customer Journey reports.\n - **CJQualifyengageSimpleReportingRequest** for `kind=\"cj#qualifyengage-simple\"` for Customer Journey reports.\n - **CJTouchSimpleReportingRequest** for `kind=\"cj#touch-simple\"` for Customer Journey reports.\n - **CJVelocityAdvancedReportingRequest** for `kind=\"cj#velocity-advanced\"` for Customer Journey reports.\n - **CJVelocitySimpleReportingRequest** for `kind=\"cj#velocity-simple\"` for Customer Journey reports.\n\nYou will find **examples** on the right hand side panel that show different ways of requesting data and the expected output you will have.",
            "operationId" : "queryBatchReporting",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "requestBody" : {
               "content" : {
                  "application/json" : {
                     "examples" : {
                        "01-edw-list-of-pageview-matching-url-with-params" : {
                           "description" : "Return the list of EulerianId and URL of pages seen on a given period of time that matches a URL that has parameters in it.",
                           "value" : {
                              "reports" : [
                                 {
                                    "kind" : "edw#query",
                                    "query" : "GET { TIMERANGE { 1608300022 1608300322 } READERS { ea:pageview@demo-fr AS pageview IF { match( pageview.url, \"http.?://.*?.*\" ) } } OUTPUTS_ROW( pageview ) { pageview.uid,pageview.url } };"
                                 }
                              ]
                           }
                        },
                        "02-ebmdb-raw-query" : {
                           "description" : "Given the XML query that you can get from the Audience Engine, return the count of users that mathches the query.",
                           "value" : {
                              "reports" : [
                                 {
                                    "kind" : "ebmdb#query",
                                    "query" : "<a><e n=\"exists\"><eq>1</eq></e></a>"
                                 }
                              ]
                           }
                        },
                        "03-ebmdb-ebmdbreq" : {
                           "description" : "Given the id of a Saved Query, query directly the count for the targeted id",
                           "value" : {
                              "reports" : [
                                 {
                                    "ebmdbreq" : 1777564990,
                                    "kind" : "ebmdb#query"
                                 }
                              ]
                           }
                        },
                        "04-ebmdb-ebmdbreq-with-nodes" : {
                           "description" : "Given the id of a Saved Query or a raw query, query directly the count for the targeted id, the added parameter will allow you to get the count for all sub nodes of a given query.",
                           "value" : {
                              "reports" : [
                                 {
                                    "ebmdbreq" : 1777564990,
                                    "kind" : "ebmdb#query",
                                    "withNodes" : true
                                 }
                              ]
                           }
                        },
                        "05-rt-simple-website-global-data" : {
                           "description" : "Return the hits (page views), visits (sessions), daily visitors, sales (transactions) and revenue at the website level for yesterday.",
                           "value" : {
                              "reports" : [
                                 {
                                    "dateRanges" : [
                                       {
                                          "range" : "YESTERDAY"
                                       }
                                    ],
                                    "dimensions" : [
                                       {
                                          "field" : "website_name",
                                          "name" : "website_name"
                                       }
                                    ],
                                    "kind" : "rt#website",
                                    "metrics" : [
                                       {
                                          "field" : "hit",
                                          "name" : "Page Views (hits)"
                                       },
                                       {
                                          "field" : "visit",
                                          "name" : "Sessions (visits)"
                                       },
                                       {
                                          "field" : "dvisitor",
                                          "name" : "Daily Visitors"
                                       },
                                       {
                                          "field" : "realscartvalid",
                                          "name" : "Sales (transactions)"
                                       },
                                       {
                                          "field" : "realscartvalidamount",
                                          "name" : "Revenue"
                                       }
                                    ]
                                 }
                              ]
                           }
                        },
                        "06-rt-simple-website-global-data-comparing-yesterday-today" : {
                           "description" : "Return the hits (page views), visits (sessions), daily visitors, sales (transactions) and revenue at the website level comparing data between yesterday and today.",
                           "value" : {
                              "reports" : [
                                 {
                                    "dateRanges" : [
                                       {
                                          "range" : "YESTERDAY"
                                       },
                                       {
                                          "range" : "TODAY"
                                       }
                                    ],
                                    "dimensions" : [
                                       {
                                          "field" : "website_name",
                                          "name" : "website_name"
                                       }
                                    ],
                                    "kind" : "rt#website",
                                    "metrics" : [
                                       {
                                          "field" : "hit",
                                          "name" : "Page Views (hits)"
                                       },
                                       {
                                          "field" : "visit",
                                          "name" : "Sessions (visits)"
                                       },
                                       {
                                          "field" : "dvisitor",
                                          "name" : "Daily Visitors"
                                       },
                                       {
                                          "field" : "realscartvalid",
                                          "name" : "Sales (transactions)"
                                       },
                                       {
                                          "field" : "realscartvalidamount",
                                          "name" : "Revenue"
                                       }
                                    ]
                                 }
                              ]
                           }
                        },
                        "07-rt-simple-all-display-campaigns" : {
                           "description" : "Return the click metric for all campaigns for yesterday",
                           "value" : {
                              "reports" : [
                                 {
                                    "dateRanges" : [
                                       {
                                          "range" : "YESTERDAY"
                                       }
                                    ],
                                    "dimensions" : [
                                       {
                                          "field" : "ope_name",
                                          "name" : "ope"
                                       }
                                    ],
                                    "kind" : "rt#insummary",
                                    "metrics" : [
                                       {
                                          "field" : "click",
                                          "name" : "click"
                                       }
                                    ],
                                    "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE"
                                 }
                              ]
                           }
                        },
                        "08-rt-simple-profilechange-per-media" : {
                           "description" : "Return the profilechange metric segmented per profilesession and per media.",
                           "value" : {
                              "reports" : [
                                 {
                                    "dateRanges" : [
                                       {
                                          "range" : "YESTERDAY"
                                       }
                                    ],
                                    "dimensions" : [
                                       {
                                          "field" : "media_key",
                                          "name" : "channel"
                                       }
                                    ],
                                    "kind" : "rt#insummary",
                                    "metrics" : [
                                       {
                                          "field" : "profilechange",
                                          "name" : "profile changes",
                                          "segment" : {
                                             "by" : "profilesession"
                                          }
                                       }
                                    ]
                                 }
                              ]
                           }
                        },
                        "09-rt-simple-all-display-multidimension" : {
                           "description" : "Return the click metric for all campaigns for yesterday with channel and publisher",
                           "value" : {
                              "reports" : [
                                 {
                                    "dateRanges" : [
                                       {
                                          "range" : "YESTERDAY"
                                       }
                                    ],
                                    "dimensions" : [
                                       {
                                          "field" : "media_key",
                                          "name" : "channel"
                                       },
                                       {
                                          "field" : "publisher_name",
                                          "name" : "publisher"
                                       },
                                       {
                                          "field" : "ope_name",
                                          "name" : "campaign"
                                       }
                                    ],
                                    "kind" : "rt#insummary",
                                    "metrics" : [
                                       {
                                          "field" : "click",
                                          "name" : "inbound clicks"
                                       }
                                    ],
                                    "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE"
                                 }
                              ]
                           }
                        },
                        "10-rt-display-segment-filtering-for-ordertype-key" : {
                           "description" : "Return all display campaigns that have sales for ordertype_key that contains OFFLINE. Here the data is **filtered** for the targeted segment, but is **not segmented**.",
                           "value" : {
                              "reports" : [
                                 {
                                    "dateRanges" : [
                                       {
                                          "range" : "YESTERDAY"
                                       }
                                    ],
                                    "dimensions" : [
                                       {
                                          "field" : "ope_name",
                                          "name" : "campaign"
                                       }
                                    ],
                                    "kind" : "rt#insummary",
                                    "metrics" : [
                                       {
                                          "field" : "scartvalid",
                                          "name" : "sales"
                                       }
                                    ],
                                    "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE",
                                    "segmentFilterClauses" : [
                                       {
                                          "field" : "ordertype_key",
                                          "operator" : "CONTAINS",
                                          "value" : "OFFLINE"
                                       }
                                    ]
                                 }
                              ]
                           }
                        },
                        "11-rt-display-segment-filtering-for-ordertype" : {
                           "description" : "Return all display campaigns that have sales for ordertype id 1 or 2. Here the data is **filtered** for the targeted segment, but is **not segmented**.",
                           "value" : {
                              "reports" : [
                                 {
                                    "dateRanges" : [
                                       {
                                          "range" : "YESTERDAY"
                                       }
                                    ],
                                    "dimensions" : [
                                       {
                                          "field" : "ope_name",
                                          "name" : "campaign"
                                       }
                                    ],
                                    "kind" : "rt#insummary",
                                    "metrics" : [
                                       {
                                          "field" : "scartvalid",
                                          "name" : "sales"
                                       }
                                    ],
                                    "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE",
                                    "segmentFilterClauses" : [
                                       {
                                          "field" : "ordertype_id",
                                          "operator" : "IN",
                                          "value" : [
                                             1,
                                             2
                                          ]
                                       }
                                    ]
                                 }
                              ]
                           }
                        },
                        "12-rt-display-segment-filtering-for-device" : {
                           "description" : "Return all display campaigns that have clicks for device id 1 or 2. Here the data is **filtered** for the targeted segment, but is **not segmented**.",
                           "value" : {
                              "reports" : [
                                 {
                                    "dateRanges" : [
                                       {
                                          "range" : "YESTERDAY"
                                       }
                                    ],
                                    "dimensions" : [
                                       {
                                          "field" : "ope_name",
                                          "name" : "campaign"
                                       }
                                    ],
                                    "kind" : "rt#insummary",
                                    "metrics" : [
                                       {
                                          "field" : "click",
                                          "name" : "inbound clicks"
                                       }
                                    ],
                                    "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE",
                                    "segmentFilterClauses" : [
                                       {
                                          "field" : "device",
                                          "operator" : "IN",
                                          "value" : [
                                             1,
                                             2
                                          ]
                                       }
                                    ]
                                 }
                              ]
                           }
                        },
                        "13-rt-display-metrics-filtering" : {
                           "description" : "Return all display campaigns that have more than 15 clicks yesterday.",
                           "value" : {
                              "reports" : [
                                 {
                                    "dateRanges" : [
                                       {
                                          "range" : "YESTERDAY"
                                       }
                                    ],
                                    "dimensions" : [
                                       {
                                          "field" : "ope_name",
                                          "name" : "campaign"
                                       }
                                    ],
                                    "kind" : "rt#insummary",
                                    "metricFilterClauses" : [
                                       {
                                          "field" : "click",
                                          "operator" : "GREATER_THAN_EQUALS",
                                          "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE",
                                          "value" : 15
                                       }
                                    ],
                                    "metrics" : [
                                       {
                                          "field" : "click",
                                          "name" : "inbound clicks"
                                       }
                                    ],
                                    "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE"
                                 }
                              ]
                           }
                        },
                        "14-rt-multi-date-comparison" : {
                           "description" : "Return the clicks for the 5 first entries per campaign for today & yesterday, this way you can retrive the data to do comparison. The new data is available in the `values` array for each `metrics`.",
                           "value" : {
                              "reports" : [
                                 {
                                    "dateRanges" : [
                                       {
                                          "range" : "TODAY"
                                       },
                                       {
                                          "range" : "YESTERDAY"
                                       }
                                    ],
                                    "dimensions" : [
                                       {
                                          "field" : "ope_name",
                                          "name" : "campaign"
                                       }
                                    ],
                                    "kind" : "rt#insummary",
                                    "limit" : {
                                       "maxEntries" : 3,
                                       "start" : 0
                                    },
                                    "metrics" : [
                                       {
                                          "field" : "click",
                                          "name" : "inbound clicks"
                                       }
                                    ],
                                    "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE"
                                 }
                              ]
                           }
                        },
                        "15-rt-display-campaign-per-device" : {
                           "description" : "By setting the `segments` at the `device` level, you will be able to segment all the `metrics` requested per the segment requested.",
                           "value" : {
                              "reports" : [
                                 {
                                    "dateRanges" : [
                                       {
                                          "range" : "YESTERDAY"
                                       }
                                    ],
                                    "dimensions" : [
                                       {
                                          "field" : "ope_name",
                                          "name" : "campaign"
                                       }
                                    ],
                                    "kind" : "rt#insummary",
                                    "metrics" : [
                                       {
                                          "field" : "scartvalid",
                                          "name" : "sales"
                                       }
                                    ],
                                    "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE",
                                    "segments" : [
                                       {
                                          "name" : "Device",
                                          "type" : "device"
                                       }
                                    ]
                                 }
                              ]
                           }
                        },
                        "16-rt-display-campaign-per-multi-attribution-rule" : {
                           "description" : "By setting the `segments` at the `attribution` level, you will be able to segment all the `metrics` requested per the segment requested. You can provide a set of ids to filter the segmentation only on the requested values.",
                           "value" : {
                              "reports" : [
                                 {
                                    "dateRanges" : [
                                       {
                                          "range" : "YESTERDAY"
                                       }
                                    ],
                                    "dimensions" : [
                                       {
                                          "field" : "ope_name",
                                          "name" : "campaign"
                                       }
                                    ],
                                    "kind" : "rt#insummary",
                                    "metrics" : [
                                       {
                                          "field" : "scartvalid",
                                          "name" : "sales"
                                       }
                                    ],
                                    "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE",
                                    "segments" : [
                                       {
                                          "name" : "Single Touch Attribution rule",
                                          "operator" : "IN",
                                          "type" : "attributionrule",
                                          "value" : [
                                             1,
                                             3
                                          ]
                                       }
                                    ]
                                 }
                              ]
                           }
                        },
                        "17-rt-display-campaign-per-hour-yesterday" : {
                           "description" : "Return the `click` of the 5 first display campaigns per hour for the period of yesterday. This way you will have access to each Hour of data on Yesterday. By modifiying the `dateScale` and given the `dateRanges` you will have the corresponding number of entries. You need to provide `dateRangeSplitPerScale` to `true`, otherwise you will have aggregated data.",
                           "value" : {
                              "reports" : [
                                 {
                                    "dateRangeSplitPerScale" : true,
                                    "dateRanges" : [
                                       {
                                          "range" : "YESTERDAY"
                                       }
                                    ],
                                    "dateScale" : "H",
                                    "dimensions" : [
                                       {
                                          "field" : "ope_name",
                                          "name" : "campaign"
                                       }
                                    ],
                                    "kind" : "rt#insummary",
                                    "limit" : {
                                       "maxEntries" : 5,
                                       "start" : 0
                                    },
                                    "metrics" : [
                                       {
                                          "field" : "click",
                                          "name" : "inbound clicks"
                                       }
                                    ],
                                    "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE"
                                 }
                              ]
                           }
                        },
                        "18-rt-display-campaign-sales-per-ordertype" : {
                           "description" : "Return the list of display campaigns with the number of sales segmented per type of order `ordertype`.",
                           "value" : {
                              "reports" : [
                                 {
                                    "dateRanges" : [
                                       {
                                          "range" : "YESTERDAY"
                                       }
                                    ],
                                    "dimensions" : [
                                       {
                                          "field" : "ope_name",
                                          "name" : "campaign"
                                       }
                                    ],
                                    "kind" : "rt#insummary",
                                    "metrics" : [
                                       {
                                          "field" : "scartvalid",
                                          "name" : "sales",
                                          "segment" : {
                                             "by" : "ordertype"
                                          }
                                       }
                                    ],
                                    "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE"
                                 }
                              ]
                           }
                        },
                        "19-rt-dedimension" : {
                           "description" : "Return the report for custom dimensions, for the `PageGroup` dimension as it is declared in the interface.",
                           "value" : {
                              "reports" : [
                                 {
                                    "dateRanges" : [
                                       {
                                          "range" : "YESTERDAY"
                                       }
                                    ],
                                    "dimensions" : [
                                       {
                                          "field" : "PageGroup",
                                          "name" : "dimension pagegroup"
                                       }
                                    ],
                                    "kind" : "rt#dewebsite",
                                    "metrics" : [
                                       {
                                          "field" : "scopehithit",
                                          "name" : "hit"
                                       }
                                    ],
                                    "segments" : [
                                       {
                                          "name" : "dedimension",
                                          "type" : "dedimension"
                                       }
                                    ]
                                 }
                              ]
                           }
                        },
                        "20-rt-display-filtered-publisher" : {
                           "description" : "Return the performance metrics of all the publishers in the display channel per publisher filtered for publisers matching the META characters in their name and segment the data on the attribution rule with id = 2",
                           "value" : {
                              "async" : false,
                              "reports" : [
                                 {
                                    "dateRanges" : [
                                       {
                                          "dateFormat" : "YYYY-MM-DD",
                                          "dateFrom" : "2023-12-01",
                                          "dateTo" : "2023-12-30"
                                       }
                                    ],
                                    "dateScale" : "M",
                                    "dimensionFilterClauses" : [
                                       {
                                          "field" : "publisher_name",
                                          "operator" : "EREGEXP",
                                          "value" : "meta"
                                       }
                                    ],
                                    "dimensions" : [
                                       {
                                          "field" : "publisher_name",
                                          "name" : "Publisher Name"
                                       }
                                    ],
                                    "kind" : "rt#insummary",
                                    "metrics" : [
                                       {
                                          "field" : "view",
                                          "name" : "impressions"
                                       },
                                       {
                                          "field" : "click",
                                          "name" : "inbound clicks"
                                       },
                                       {
                                          "field" : "click_view",
                                          "name" : "clicks/impressions"
                                       },
                                       {
                                          "field" : "visit",
                                          "name" : "visits"
                                       },
                                       {
                                          "field" : "visitor",
                                          "name" : "monthly unique visitors"
                                       },
                                       {
                                          "field" : "hit",
                                          "name" : "page views"
                                       },
                                       {
                                          "field" : "scart",
                                          "name" : "initiated shopping carts"
                                       },
                                       {
                                          "field" : "scartvalid",
                                          "name" : "sales"
                                       },
                                       {
                                          "field" : "scartvalidamount",
                                          "name" : "revenue"
                                       },
                                       {
                                          "field" : "estimatevalid",
                                          "name" : "estimates"
                                       },
                                       {
                                          "field" : "estimatevalidamount",
                                          "name" : "estimate revenue"
                                       }
                                    ],
                                    "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcPUBLISHER",
                                    "segments" : [
                                       {
                                          "name" : "Single Touch Attribution rule",
                                          "operator" : "IN",
                                          "type" : "attributionrule",
                                          "value" : [
                                             "2"
                                          ]
                                       }
                                    ]
                                 }
                              ]
                           }
                        },
                        "21-rt-display-publisher-campaign" : {
                           "description" : "Return the performance metrics of all the publishers &  in the display channel per campaign and segment the data on the attribution rule with id = 2",
                           "value" : {
                              "async" : false,
                              "reports" : [
                                 {
                                    "dateRanges" : [
                                       {
                                          "dateFormat" : "YYYY-MM-DD",
                                          "dateFrom" : "2023-12-01",
                                          "dateTo" : "2023-12-30"
                                       }
                                    ],
                                    "dateScale" : "M",
                                    "dimensions" : [
                                       {
                                          "field" : "publisher_name",
                                          "name" : "Publisher Name"
                                       },
                                       {
                                          "field" : "ope_name",
                                          "name" : "Campaign Name"
                                       }
                                    ],
                                    "kind" : "rt#insummary",
                                    "metrics" : [
                                       {
                                          "field" : "view",
                                          "name" : "impressions"
                                       },
                                       {
                                          "field" : "click",
                                          "name" : "inbound clicks"
                                       },
                                       {
                                          "field" : "click_view",
                                          "name" : "clicks/impressions"
                                       },
                                       {
                                          "field" : "visit",
                                          "name" : "visits"
                                       },
                                       {
                                          "field" : "visitor",
                                          "name" : "monthly unique visitors"
                                       },
                                       {
                                          "field" : "hit",
                                          "name" : "page views"
                                       },
                                       {
                                          "field" : "scart",
                                          "name" : "initiated shopping carts"
                                       },
                                       {
                                          "field" : "scartvalid",
                                          "name" : "sales"
                                       },
                                       {
                                          "field" : "scartvalidamount",
                                          "name" : "revenue"
                                       },
                                       {
                                          "field" : "estimatevalid",
                                          "name" : "estimates"
                                       },
                                       {
                                          "field" : "estimatevalidamount",
                                          "name" : "estimate revenue"
                                       }
                                    ],
                                    "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE",
                                    "segments" : [
                                       {
                                          "name" : "Single Touch Attribution rule",
                                          "operator" : "IN",
                                          "type" : "attributionrule",
                                          "value" : [
                                             "2"
                                          ]
                                       }
                                    ]
                                 }
                              ]
                           }
                        },
                        "22-rt-combine-two-reports" : {
                           "description" : "The example enables you to query real-time reports that targets different kind of dimensions and metrics, as an output you will only have one result set of data allowing you to display it directly. Without the combine option you will have two arrays of data",
                           "value" : {
                              "output" : {
                                 "type" : "raw",
                                 "typeOptions" : {
                                    "combine" : true
                                 }
                              },
                              "reports" : [
                                 {
                                    "dateRanges" : [
                                       {
                                          "range" : "YESTERDAY"
                                       }
                                    ],
                                    "dimensions" : [
                                       {
                                          "field" : "ope_name",
                                          "name" : "campaign"
                                       }
                                    ],
                                    "kind" : "rt#insummary",
                                    "metrics" : [
                                       {
                                          "field" : "click",
                                          "name" : "click"
                                       }
                                    ],
                                    "orderBy" : [
                                       {
                                          "direction" : "DESC",
                                          "field" : "click"
                                       }
                                    ],
                                    "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE"
                                 },
                                 {
                                    "dateRanges" : [
                                       {
                                          "range" : "YESTERDAY"
                                       }
                                    ],
                                    "dimensions" : [
                                       {
                                          "field" : "publisher_name",
                                          "name" : "publisher"
                                       }
                                    ],
                                    "kind" : "rt#insummary",
                                    "metrics" : [
                                       {
                                          "field" : "visit",
                                          "name" : "visit"
                                       }
                                    ],
                                    "orderBy" : [
                                       {
                                          "direction" : "DESC",
                                          "field" : "visit"
                                       }
                                    ],
                                    "path" : "mcMEDIAINCOMING[?].mcMEDIAAF.mcOPE"
                                 }
                              ]
                           }
                        },
                        "23-human-query-simple" : {
                           "description" : "Return the data for a simple Human Query request",
                           "value" : {
                              "reports" : [
                                 {
                                    "kind" : "hq#query",
                                    "query" : "visit hit order website last week"
                                 }
                              ]
                           }
                        }
                     },
                     "schema" : {
                        "oneOf" : [
                           {
                              "$ref" : "#/components/schemas/RTBatchReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/EBMDBBatchReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/HQBatchReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/EDWBatchReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/CJAssistAdvancedReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/CJAssistSimpleReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/CJBiasAdvancedReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/CJBiasSimpleReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/CJDeviceexclusivityAdvancedReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/CJDeviceexclusivitySimpleReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/CJDevicepathAdvancedReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/CJDevicepathSimpleReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/CJDurationSimpleReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/CJMediaexclusivityAdvancedReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/CJMediaexclusivitySimpleReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/CJMediapathAdvancedReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/CJMediapathSimpleReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/CJQualifyengageSimpleReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/CJTouchSimpleReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/CJVelocityAdvancedReportingRequest"
                           },
                           {
                              "$ref" : "#/components/schemas/CJVelocitySimpleReportingRequest"
                           }
                        ],
                        "x-MCP-discriminator" : {
                           "mapping" : {
                              "cj#assist-advanced" : "CJAssistAdvancedReportingRequest",
                              "cj#assist-simple" : "CJAssistSimpleReportingRequest",
                              "cj#bias-advanced" : "CJBiasAdvancedReportingRequest",
                              "cj#bias-simple" : "CJBiasSimpleReportingRequest",
                              "cj#deviceexclusivity-advanced" : "CJDeviceexclusivityAdvancedReportingRequest",
                              "cj#deviceexclusivity-simple" : "CJDeviceexclusivitySimpleReportingRequest",
                              "cj#devicepath-advanced" : "CJDevicepathAdvancedReportingRequest",
                              "cj#devicepath-simple" : "CJDevicepathSimpleReportingRequest",
                              "cj#duration-simple" : "CJDurationSimpleReportingRequest",
                              "cj#mediaexclusivity-advanced" : "CJMediaexclusivityAdvancedReportingRequest",
                              "cj#mediaexclusivity-simple" : "CJMediaexclusivitySimpleReportingRequest",
                              "cj#mediapath-advanced" : "CJMediapathAdvancedReportingRequest",
                              "cj#mediapath-simple" : "CJMediapathSimpleReportingRequest",
                              "cj#qualifyengage-simple" : "CJQualifyengageSimpleReportingRequest",
                              "cj#touch-simple" : "CJTouchSimpleReportingRequest",
                              "cj#velocity-advanced" : "CJVelocityAdvancedReportingRequest",
                              "cj#velocity-simple" : "CJVelocitySimpleReportingRequest",
                              "ebmdb#query" : "#/components/schemas/EBMDBBatchReportingRequest",
                              "edw#query" : "#/components/schemas/EDWBatchReportingRequest",
                              "hq#query" : "#/components/schemas/HQBatchReportingRequest",
                              "rt#action" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#actionparam" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#actionparamvalue" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#blockpromo" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#browser" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#cgiparam" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#cluster" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#clustervalue" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#creative" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#dataconnector" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#dataconnectorcm" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#devicebrowser" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#devicehardware" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#deviceplatform" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#devicescreeninches" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#devicetype" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#dewebsite" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#ebmdbreq" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#event" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#flash" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#geoloc" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#geoloccity" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#geolocregion" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#headingtree" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#headingtreeentry" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#headingtreeexit" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#iduserparam" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#iduserparamvalue" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#inadvertising" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#inaffiliation" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#inaudience" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#inbranding" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#ingeneric" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#inmailing" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#inpaidinclusion" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#inpartner" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#inproduct" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#inreferer" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#insearchengine" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#insegment" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#insocial" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#insponsoredlink" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#insummary" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#intrustedfeed" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#isengine" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#isp" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#landing" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#lang" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#location" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#mediaplan" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#ope" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#opesubmedia" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#os" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#pagegroup" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#pagetree" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#pagetreeentry" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#pagetreeerror" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#pagetreeexit" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#productevent" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#profilechange" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#publisher" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#redirectdomainaccess" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#rootpublishercluster" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#sdepth" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#ssize" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#sslcipher" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#sslversion" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#tagmaster" : "#/components/schemas/RTBatchReportingRequest",
                              "rt#website" : "#/components/schemas/RTBatchReportingRequest"
                           },
                           "propertyName" : "kind"
                        }
                     }
                  }
               },
               "required" : true
            },
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "examples" : {
                           "01-edw-list-of-pageview-matching-url-with-params" : {
                              "value" : {
                                 "data" : {
                                    "fields" : [
                                       {
                                          "name" : "pageview.uid"
                                       },
                                       {
                                          "name" : "pageview.url"
                                       }
                                    ],
                                    "rows" : [
                                       [
                                          "191940362275416940",
                                          "https://demo.fr/fr_FR/main.html#inbox/VF_pertinent?isSmartInbox=true"
                                       ]
                                    ]
                                 },
                                 "error" : false,
                                 "meta" : {
                                    "elapsed" : 4000,
                                    "host" : "er11",
                                    "pid" : "5463",
                                    "reqid" : "reqid"
                                 }
                              }
                           },
                           "02-ebmdb-raw-query" : {
                              "value" : {
                                 "data" : {
                                    "reports" : [
                                       {
                                          "columnHeader" : {
                                             "dimensions" : [
                                                {
                                                   "field" : "name",
                                                   "name" : "Request"
                                                }
                                             ],
                                             "metrics" : [
                                                {
                                                   "affinity" : "int",
                                                   "field" : "total",
                                                   "name" : "total"
                                                },
                                                {
                                                   "affinity" : "int",
                                                   "field" : "count",
                                                   "name" : "count"
                                                },
                                                {
                                                   "affinity" : "pct",
                                                   "field" : "ratio",
                                                   "name" : "ratio"
                                                }
                                             ]
                                          },
                                          "data" : [
                                             {
                                                "dimensions" : [
                                                   "page_dem_valid"
                                                ],
                                                "metrics" : [
                                                   [
                                                      {
                                                         "values" : [
                                                            147010173
                                                         ]
                                                      }
                                                   ],
                                                   [
                                                      {
                                                         "values" : [
                                                            24
                                                         ]
                                                      }
                                                   ],
                                                   [
                                                      {
                                                         "values" : [
                                                            "0.00"
                                                         ]
                                                      }
                                                   ]
                                                ]
                                             }
                                          ],
                                          "kind" : "ebmdb#query",
                                          "query" : "REQ_XML",
                                          "rowCount" : 1,
                                          "totalRowCount" : 1
                                       }
                                    ]
                                 },
                                 "error" : false,
                                 "meta" : {
                                    "elapsed" : 4000,
                                    "host" : "er11",
                                    "pid" : "5463",
                                    "reqid" : "reqid"
                                 }
                              }
                           },
                           "03-ebmdb-ebmdbreq" : {
                              "value" : {
                                 "data" : {
                                    "reports" : [
                                       {
                                          "columnHeader" : {
                                             "dimensions" : [
                                                {
                                                   "field" : "name",
                                                   "name" : "Request"
                                                }
                                             ],
                                             "metrics" : [
                                                {
                                                   "affinity" : "int",
                                                   "field" : "total",
                                                   "name" : "total"
                                                },
                                                {
                                                   "affinity" : "int",
                                                   "field" : "count",
                                                   "name" : "count"
                                                },
                                                {
                                                   "affinity" : "pct",
                                                   "field" : "ratio",
                                                   "name" : "ratio"
                                                }
                                             ]
                                          },
                                          "data" : [
                                             {
                                                "dimensions" : [
                                                   "page_dem_valid"
                                                ],
                                                "metrics" : [
                                                   [
                                                      {
                                                         "values" : [
                                                            147010173
                                                         ]
                                                      }
                                                   ],
                                                   [
                                                      {
                                                         "values" : [
                                                            24
                                                         ]
                                                      }
                                                   ],
                                                   [
                                                      {
                                                         "values" : [
                                                            "0.00"
                                                         ]
                                                      }
                                                   ]
                                                ]
                                             }
                                          ],
                                          "kind" : "ebmdb#query",
                                          "query" : "REQ_XML",
                                          "rowCount" : 1,
                                          "totalRowCount" : 1
                                       }
                                    ]
                                 },
                                 "error" : false,
                                 "meta" : {
                                    "elapsed" : 4000,
                                    "host" : "er11",
                                    "pid" : "5463",
                                    "reqid" : "reqid"
                                 }
                              }
                           },
                           "04-ebmdb-ebmdbreq-with-nodes" : {
                              "value" : {
                                 "data" : {
                                    "reports" : [
                                       {
                                          "columnHeader" : {
                                             "dimensions" : [
                                                {
                                                   "field" : "name",
                                                   "name" : "Request"
                                                }
                                             ],
                                             "metrics" : [
                                                {
                                                   "affinity" : "int",
                                                   "field" : "total",
                                                   "name" : "total"
                                                },
                                                {
                                                   "affinity" : "int",
                                                   "field" : "count",
                                                   "name" : "count"
                                                },
                                                {
                                                   "affinity" : "pct",
                                                   "field" : "ratio",
                                                   "name" : "ratio"
                                                },
                                                {
                                                   "affinity" : "int",
                                                   "field" : "node_nodes-1",
                                                   "name" : "node: nodes-1"
                                                },
                                                {
                                                   "affinity" : "int",
                                                   "field" : "node_nodes-2",
                                                   "name" : "node: nodes-2"
                                                }
                                             ]
                                          },
                                          "data" : [
                                             {
                                                "dimensions" : [
                                                   "page_dem_valid"
                                                ],
                                                "metrics" : [
                                                   [
                                                      {
                                                         "values" : [
                                                            147010173
                                                         ]
                                                      }
                                                   ],
                                                   [
                                                      {
                                                         "values" : [
                                                            24
                                                         ]
                                                      }
                                                   ],
                                                   [
                                                      {
                                                         "values" : [
                                                            "0.00"
                                                         ]
                                                      }
                                                   ],
                                                   [
                                                      {
                                                         "values" : [
                                                            24
                                                         ]
                                                      }
                                                   ],
                                                   [
                                                      {
                                                         "values" : [
                                                            24
                                                         ]
                                                      }
                                                   ]
                                                ]
                                             }
                                          ],
                                          "kind" : "ebmdb#query",
                                          "query" : "REQ_XML",
                                          "rowCount" : 1,
                                          "totalRowCount" : 1
                                       }
                                    ]
                                 },
                                 "error" : false,
                                 "meta" : {
                                    "elapsed" : 4000,
                                    "host" : "er11",
                                    "pid" : "5463",
                                    "reqid" : "reqid"
                                 }
                              }
                           },
                           "05-rt-simple-website-global-data" : {
                              "value" : {
                                 "data" : [
                                    {
                                       "columnHeader" : {
                                          "dateRanges" : [
                                             {
                                                "from" : 1617487200,
                                                "range" : "YESTERDAY",
                                                "to" : 1617573600,
                                                "values" : [
                                                   {
                                                      "epoch" : 1617487200
                                                   }
                                                ]
                                             }
                                          ],
                                          "dimensions" : [
                                             {
                                                "field" : "website_name",
                                                "name" : "Website"
                                             }
                                          ],
                                          "metrics" : [
                                             {
                                                "affinity" : "int",
                                                "field" : "hit",
                                                "name" : "Page Views (hits)"
                                             },
                                             {
                                                "affinity" : "int",
                                                "field" : "visit",
                                                "name" : "Sessions (visits)"
                                             },
                                             {
                                                "affinity" : "int",
                                                "field" : "dvisitor",
                                                "name" : "Daily Visitors"
                                             },
                                             {
                                                "affinity" : "int",
                                                "field" : "realscartvalid",
                                                "name" : "Sales (transactions)"
                                             },
                                             {
                                                "affinity" : "float",
                                                "field" : "realscartvalidamount",
                                                "name" : "Revenue"
                                             }
                                          ]
                                       },
                                       "data" : [
                                          {
                                             "dimensions" : [
                                                "my-site"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "29222"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "2922"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "292"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "29"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "2989.56"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          }
                                       ],
                                       "kind" : "rt#website",
                                       "rowCount" : 1,
                                       "totalRowCount" : 1
                                    }
                                 ],
                                 "error" : false,
                                 "meta" : {
                                    "elapsed" : 4000,
                                    "host" : "er11",
                                    "pid" : "5463",
                                    "reqid" : "reqid"
                                 }
                              }
                           },
                           "06-rt-simple-website-global-data-comparing-yesterday-today" : {
                              "value" : {
                                 "data" : [
                                    {
                                       "columnHeader" : {
                                          "dateRanges" : [
                                             {
                                                "from" : 1617487200,
                                                "range" : "YESTERDAY",
                                                "to" : 1617573600,
                                                "values" : [
                                                   {
                                                      "epoch" : 1617487200
                                                   }
                                                ]
                                             },
                                             {
                                                "from" : 1769122800,
                                                "range" : "TODAY",
                                                "to" : 1769209200,
                                                "tzone" : "Europe/Madrid",
                                                "values" : [
                                                   {
                                                      "epoch" : 1769122800
                                                   }
                                                ]
                                             }
                                          ],
                                          "dimensions" : [
                                             {
                                                "field" : "website_name",
                                                "name" : "Website"
                                             }
                                          ],
                                          "metrics" : [
                                             {
                                                "affinity" : "int",
                                                "field" : "hit",
                                                "name" : "Page Views (hits)"
                                             },
                                             {
                                                "affinity" : "int",
                                                "field" : "visit",
                                                "name" : "Sessions (visits)"
                                             },
                                             {
                                                "affinity" : "int",
                                                "field" : "dvisitor",
                                                "name" : "Daily Visitors"
                                             },
                                             {
                                                "affinity" : "int",
                                                "field" : "realscartvalid",
                                                "name" : "Sales (transactions)"
                                             },
                                             {
                                                "affinity" : "float",
                                                "field" : "realscartvalidamount",
                                                "name" : "Revenue"
                                             }
                                          ]
                                       },
                                       "data" : [
                                          {
                                             "dimensions" : [
                                                "my-site"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "29222"
                                                      ]
                                                   },
                                                   {
                                                      "values" : [
                                                         "19222"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "2922"
                                                      ]
                                                   },
                                                   {
                                                      "values" : [
                                                         "1922"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "292"
                                                      ]
                                                   },
                                                   {
                                                      "values" : [
                                                         "192"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "29"
                                                      ]
                                                   },
                                                   {
                                                      "values" : [
                                                         "19"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "2989.56"
                                                      ]
                                                   },
                                                   {
                                                      "values" : [
                                                         "1989.56"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          }
                                       ],
                                       "kind" : "rt#website",
                                       "rowCount" : 1,
                                       "totalRowCount" : 1
                                    }
                                 ],
                                 "error" : false,
                                 "meta" : {
                                    "elapsed" : 4000,
                                    "host" : "er11",
                                    "pid" : "5463",
                                    "reqid" : "reqid"
                                 }
                              }
                           },
                           "07-rt-simple-all-display-campaigns" : {
                              "value" : {
                                 "data" : [
                                    {
                                       "columnHeader" : {
                                          "dateRanges" : [
                                             {
                                                "from" : 1617487200,
                                                "range" : "YESTERDAY",
                                                "to" : 1617573600,
                                                "values" : [
                                                   {
                                                      "epoch" : 1617487200
                                                   }
                                                ]
                                             }
                                          ],
                                          "dimensions" : [
                                             {
                                                "field" : "ope_name",
                                                "name" : "campaign"
                                             }
                                          ],
                                          "metrics" : [
                                             {
                                                "affinity" : "int",
                                                "field" : "click",
                                                "name" : "inbound clicks"
                                             }
                                          ]
                                       },
                                       "data" : [
                                          {
                                             "dimensions" : [
                                                "Google"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "29222"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "Bing"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "8484"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          }
                                       ],
                                       "kind" : "rt#insummary",
                                       "rowCount" : 2,
                                       "totalRowCount" : 142
                                    }
                                 ],
                                 "error" : false,
                                 "meta" : {
                                    "elapsed" : 4000,
                                    "host" : "er11",
                                    "pid" : "5463",
                                    "reqid" : "reqid"
                                 }
                              }
                           },
                           "08-rt-simple-profilechange-per-media" : {
                              "value" : {
                                 "columnHeader" : {
                                    "dateRanges" : [
                                       {
                                          "dateFormat" : "YYYY-MM-DD",
                                          "dateFrom" : "2025-07-27",
                                          "dateTo" : "2025-07-27",
                                          "from" : 1753567200,
                                          "to" : 1753653600,
                                          "tzone" : "Europe/Paris",
                                          "values" : [
                                             {
                                                "epoch" : 1753567200
                                             }
                                          ]
                                       }
                                    ],
                                    "dimensions" : [
                                       {
                                          "field" : "media_key",
                                          "name" : "channel"
                                       }
                                    ],
                                    "metrics" : [
                                       {
                                          "affinity" : "int",
                                          "field" : "profilechange",
                                          "group" : 1,
                                          "name" : "profile changes",
                                          "segment" : {
                                             "by" : "profilesession",
                                             "values" : [
                                                {
                                                   "id" : 0,
                                                   "name" : "N/A"
                                                },
                                                {
                                                   "id" : "1",
                                                   "name" : "visitor_homepage"
                                                },
                                                {
                                                   "id" : "6",
                                                   "name" : "visitor_funnelentry"
                                                },
                                                {
                                                   "id" : "11",
                                                   "name" : "visitor_leadconfirmation"
                                                },
                                                {
                                                   "id" : "16",
                                                   "name" : "visitor_priceestimation"
                                                },
                                                {
                                                   "id" : "21",
                                                   "name" : "visitor_phonesubmission"
                                                },
                                                {
                                                   "id" : "26",
                                                   "name" : "visitor_signature"
                                                }
                                             ]
                                          }
                                       }
                                    ]
                                 },
                                 "data" : [
                                    {
                                       "dimensions" : [
                                          "GLOBAL"
                                       ],
                                       "metrics" : [
                                          [
                                             {
                                                "segments" : {
                                                   "profilesession" : [
                                                      {
                                                         "id" : "16",
                                                         "name" : "visitor_priceestimation",
                                                         "values" : [
                                                            "123"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "21",
                                                         "name" : "visitor_phonesubmission",
                                                         "values" : [
                                                            "281"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "6",
                                                         "name" : "visitor_funnelentry",
                                                         "values" : [
                                                            "270"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "1",
                                                         "name" : "visitor_homepage",
                                                         "values" : [
                                                            "472"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "26",
                                                         "name" : "visitor_signature",
                                                         "values" : [
                                                            "39"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "11",
                                                         "name" : "visitor_leadconfirmation",
                                                         "values" : [
                                                            "189"
                                                         ]
                                                      }
                                                   ]
                                                }
                                             }
                                          ]
                                       ]
                                    },
                                    {
                                       "dimensions" : [
                                          "NATURAL"
                                       ],
                                       "metrics" : [
                                          [
                                             {
                                                "segments" : {
                                                   "profilesession" : [
                                                      {
                                                         "id" : "16",
                                                         "name" : "visitor_priceestimation",
                                                         "values" : [
                                                            4
                                                         ]
                                                      },
                                                      {
                                                         "id" : "26",
                                                         "name" : "visitor_signature",
                                                         "values" : [
                                                            1
                                                         ]
                                                      },
                                                      {
                                                         "id" : "1",
                                                         "name" : "visitor_homepage",
                                                         "values" : [
                                                            25
                                                         ]
                                                      },
                                                      {
                                                         "id" : "11",
                                                         "name" : "visitor_leadconfirmation",
                                                         "values" : [
                                                            9
                                                         ]
                                                      },
                                                      {
                                                         "id" : "21",
                                                         "name" : "visitor_phonesubmission",
                                                         "values" : [
                                                            2
                                                         ]
                                                      },
                                                      {
                                                         "id" : "6",
                                                         "name" : "visitor_funnelentry",
                                                         "values" : [
                                                            10
                                                         ]
                                                      }
                                                   ]
                                                }
                                             }
                                          ]
                                       ]
                                    },
                                    {
                                       "dimensions" : [
                                          "ADVERTISING"
                                       ],
                                       "metrics" : [
                                          [
                                             {
                                                "segments" : {
                                                   "profilesession" : [
                                                      {
                                                         "id" : "1",
                                                         "name" : "visitor_homepage",
                                                         "values" : [
                                                            "74"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "6",
                                                         "name" : "visitor_funnelentry",
                                                         "values" : [
                                                            "4"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "11",
                                                         "name" : "visitor_leadconfirmation",
                                                         "values" : [
                                                            "0"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "16",
                                                         "name" : "visitor_priceestimation",
                                                         "values" : [
                                                            "0"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "21",
                                                         "name" : "visitor_phonesubmission",
                                                         "values" : [
                                                            "1"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "26",
                                                         "name" : "visitor_signature",
                                                         "values" : [
                                                            "0"
                                                         ]
                                                      }
                                                   ]
                                                }
                                             }
                                          ]
                                       ]
                                    },
                                    {
                                       "dimensions" : [
                                          "SPONSOREDLINK"
                                       ],
                                       "metrics" : [
                                          [
                                             {
                                                "segments" : {
                                                   "profilesession" : [
                                                      {
                                                         "id" : "1",
                                                         "name" : "visitor_homepage",
                                                         "values" : [
                                                            "106"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "6",
                                                         "name" : "visitor_funnelentry",
                                                         "values" : [
                                                            "197"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "11",
                                                         "name" : "visitor_leadconfirmation",
                                                         "values" : [
                                                            "132"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "16",
                                                         "name" : "visitor_priceestimation",
                                                         "values" : [
                                                            "86"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "21",
                                                         "name" : "visitor_phonesubmission",
                                                         "values" : [
                                                            "268"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "26",
                                                         "name" : "visitor_signature",
                                                         "values" : [
                                                            "22"
                                                         ]
                                                      }
                                                   ]
                                                }
                                             }
                                          ]
                                       ]
                                    },
                                    {
                                       "dimensions" : [
                                          "AFFILIATION"
                                       ],
                                       "metrics" : [
                                          [
                                             {
                                                "segments" : {
                                                   "profilesession" : [
                                                      {
                                                         "id" : "1",
                                                         "name" : "visitor_homepage",
                                                         "values" : [
                                                            "3"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "6",
                                                         "name" : "visitor_funnelentry",
                                                         "values" : [
                                                            "5"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "11",
                                                         "name" : "visitor_leadconfirmation",
                                                         "values" : [
                                                            "5"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "16",
                                                         "name" : "visitor_priceestimation",
                                                         "values" : [
                                                            "4"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "21",
                                                         "name" : "visitor_phonesubmission",
                                                         "values" : [
                                                            "2"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "26",
                                                         "name" : "visitor_signature",
                                                         "values" : [
                                                            "2"
                                                         ]
                                                      }
                                                   ]
                                                }
                                             }
                                          ]
                                       ]
                                    },
                                    {
                                       "dimensions" : [
                                          "SOCIAL"
                                       ],
                                       "metrics" : [
                                          [
                                             {
                                                "segments" : {
                                                   "profilesession" : [
                                                      {
                                                         "id" : "6",
                                                         "name" : "visitor_funnelentry",
                                                         "values" : [
                                                            "1"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "21",
                                                         "name" : "visitor_phonesubmission",
                                                         "values" : [
                                                            "1"
                                                         ]
                                                      }
                                                   ]
                                                }
                                             }
                                          ]
                                       ]
                                    },
                                    {
                                       "dimensions" : [
                                          "SEARCHENGINE"
                                       ],
                                       "metrics" : [
                                          [
                                             {
                                                "segments" : {
                                                   "profilesession" : [
                                                      {
                                                         "id" : "1",
                                                         "name" : "visitor_homepage",
                                                         "values" : [
                                                            "203"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "6",
                                                         "name" : "visitor_funnelentry",
                                                         "values" : [
                                                            "35"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "11",
                                                         "name" : "visitor_leadconfirmation",
                                                         "values" : [
                                                            "30"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "16",
                                                         "name" : "visitor_priceestimation",
                                                         "values" : [
                                                            "21"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "21",
                                                         "name" : "visitor_phonesubmission",
                                                         "values" : [
                                                            "4"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "26",
                                                         "name" : "visitor_signature",
                                                         "values" : [
                                                            "11"
                                                         ]
                                                      }
                                                   ]
                                                }
                                             }
                                          ]
                                       ]
                                    },
                                    {
                                       "dimensions" : [
                                          "REFERER"
                                       ],
                                       "metrics" : [
                                          [
                                             {
                                                "segments" : {
                                                   "profilesession" : [
                                                      {
                                                         "id" : "1",
                                                         "name" : "visitor_homepage",
                                                         "values" : [
                                                            "61"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "6",
                                                         "name" : "visitor_funnelentry",
                                                         "values" : [
                                                            "18"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "11",
                                                         "name" : "visitor_leadconfirmation",
                                                         "values" : [
                                                            "13"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "16",
                                                         "name" : "visitor_priceestimation",
                                                         "values" : [
                                                            "8"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "21",
                                                         "name" : "visitor_phonesubmission",
                                                         "values" : [
                                                            "3"
                                                         ]
                                                      },
                                                      {
                                                         "id" : "26",
                                                         "name" : "visitor_signature",
                                                         "values" : [
                                                            "3"
                                                         ]
                                                      }
                                                   ]
                                                }
                                             }
                                          ]
                                       ]
                                    }
                                 ],
                                 "error" : false,
                                 "kind" : "rt#insummary",
                                 "meta" : {
                                    "elapsed" : 4000,
                                    "host" : "er11",
                                    "pid" : "5463",
                                    "reqid" : "reqid"
                                 },
                                 "path" : "mcMEDIAINCOMING[?].*",
                                 "rowCount" : 8,
                                 "totalRowCount" : 8
                              }
                           },
                           "09-rt-simple-all-display-multidimension" : {
                              "value" : {
                                 "data" : [
                                    {
                                       "columnHeader" : {
                                          "dateRanges" : [
                                             {
                                                "from" : 1617487200,
                                                "range" : "YESTERDAY",
                                                "to" : 1617573600,
                                                "values" : [
                                                   {
                                                      "epoch" : 1617487200
                                                   }
                                                ]
                                             }
                                          ],
                                          "dimensions" : [
                                             {
                                                "field" : "media_key",
                                                "name" : "channel"
                                             },
                                             {
                                                "field" : "publisher_name",
                                                "name" : "publisher"
                                             },
                                             {
                                                "field" : "ope_name",
                                                "name" : "campaign"
                                             }
                                          ],
                                          "metrics" : [
                                             {
                                                "affinity" : "int",
                                                "field" : "click",
                                                "name" : "inbound clicks"
                                             }
                                          ]
                                       },
                                       "data" : [
                                          {
                                             "dimensions" : [
                                                "ADVERTISING",
                                                "google-display",
                                                "GoogleCampaign1"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "29222"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "ADVERTISING",
                                                "bing-display",
                                                "BingCampaign1"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "8484"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          }
                                       ],
                                       "kind" : "rt#insummary",
                                       "rowCount" : 2,
                                       "totalRowCount" : 142
                                    }
                                 ],
                                 "error" : false,
                                 "meta" : {
                                    "elapsed" : 4000,
                                    "host" : "er11",
                                    "pid" : "5463",
                                    "reqid" : "reqid"
                                 }
                              }
                           },
                           "10-rt-display-segment-filtering-for-ordertype-key" : {
                              "value" : {
                                 "error" : false,
                                 "reports" : [
                                    {
                                       "columnHeader" : {
                                          "dateRanges" : [
                                             {
                                                "from" : 1746223200,
                                                "range" : "YESTERDAY",
                                                "to" : 1746741600,
                                                "tzone" : "Europe/Paris",
                                                "values" : [
                                                   {
                                                      "epoch" : 1746223200
                                                   }
                                                ]
                                             }
                                          ],
                                          "dimensions" : [
                                             {
                                                "field" : "ope_name",
                                                "name" : "campaign"
                                             }
                                          ],
                                          "metrics" : [
                                             {
                                                "affinity" : "int",
                                                "field" : "scartvalid",
                                                "name" : "sales"
                                             }
                                          ],
                                          "segmentFilterClauses" : [
                                             {
                                                "field" : "ordertype_key",
                                                "operator" : "CONTAINS",
                                                "value" : "OFFLINE"
                                             }
                                          ]
                                       },
                                       "data" : [
                                          {
                                             "dimensions" : [
                                                "campaign-1182660"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "20"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "campaign-2560"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "65"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          }
                                       ],
                                       "kind" : "rt#insummary",
                                       "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE",
                                       "rowCount" : 2,
                                       "totalRowCount" : 167
                                    }
                                 ]
                              }
                           },
                           "11-rt-display-segment-filtering-for-ordertype" : {
                              "value" : {
                                 "error" : false,
                                 "reports" : [
                                    {
                                       "columnHeader" : {
                                          "dateRanges" : [
                                             {
                                                "from" : 1746223200,
                                                "range" : "YESTERDAY",
                                                "to" : 1746741600,
                                                "tzone" : "Europe/Paris",
                                                "values" : [
                                                   {
                                                      "epoch" : 1746223200
                                                   }
                                                ]
                                             }
                                          ],
                                          "dimensions" : [
                                             {
                                                "field" : "ope_name",
                                                "name" : "campaign"
                                             }
                                          ],
                                          "metrics" : [
                                             {
                                                "affinity" : "int",
                                                "field" : "scartvalid",
                                                "name" : "sales"
                                             }
                                          ],
                                          "segmentFilterClauses" : [
                                             {
                                                "field" : "ordertype_id",
                                                "operator" : "IN",
                                                "value" : [
                                                   1,
                                                   2
                                                ]
                                             }
                                          ]
                                       },
                                       "data" : [
                                          {
                                             "dimensions" : [
                                                "campaign-1182660"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "20"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "campaign-2560"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "65"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          }
                                       ],
                                       "kind" : "rt#insummary",
                                       "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE",
                                       "rowCount" : 2,
                                       "totalRowCount" : 167
                                    }
                                 ]
                              }
                           },
                           "12-rt-display-segment-filtering-for-device" : {
                              "value" : {
                                 "error" : false,
                                 "reports" : [
                                    {
                                       "columnHeader" : {
                                          "dateRanges" : [
                                             {
                                                "from" : 1746223200,
                                                "range" : "YESTERDAY",
                                                "to" : 1746741600,
                                                "tzone" : "Europe/Paris",
                                                "values" : [
                                                   {
                                                      "epoch" : 1746223200
                                                   }
                                                ]
                                             }
                                          ],
                                          "dimensions" : [
                                             {
                                                "field" : "ope_name",
                                                "name" : "campaign"
                                             }
                                          ],
                                          "metrics" : [
                                             {
                                                "affinity" : "int",
                                                "field" : "click",
                                                "name" : "inbound clicks"
                                             }
                                          ],
                                          "segmentFilterClauses" : [
                                             {
                                                "field" : "device",
                                                "operator" : "IN",
                                                "value" : [
                                                   1,
                                                   2
                                                ]
                                             }
                                          ]
                                       },
                                       "data" : [
                                          {
                                             "dimensions" : [
                                                "campaign-1182660"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "20"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "campaign-2560"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "65"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          }
                                       ],
                                       "kind" : "rt#insummary",
                                       "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE",
                                       "rowCount" : 2,
                                       "totalRowCount" : 167
                                    }
                                 ]
                              }
                           },
                           "13-rt-display-metrics-filtering" : {
                              "value" : {
                                 "error" : false,
                                 "reports" : [
                                    {
                                       "columnHeader" : {
                                          "dateRanges" : [
                                             {
                                                "from" : 1746223200,
                                                "range" : "YESTERDAY",
                                                "to" : 1746741600,
                                                "tzone" : "Europe/Paris",
                                                "values" : [
                                                   {
                                                      "epoch" : 1746223200
                                                   }
                                                ]
                                             }
                                          ],
                                          "dimensions" : [
                                             {
                                                "field" : "ope_name",
                                                "name" : "campaign"
                                             }
                                          ],
                                          "metrics" : [
                                             {
                                                "affinity" : "int",
                                                "field" : "click",
                                                "name" : "inbound clicks"
                                             }
                                          ]
                                       },
                                       "data" : [
                                          {
                                             "dimensions" : [
                                                "campaign-1182660"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "20"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "campaign-2560"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "65"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          }
                                       ],
                                       "kind" : "rt#insummary",
                                       "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE",
                                       "rowCount" : 2,
                                       "totalRowCount" : 167
                                    }
                                 ]
                              }
                           },
                           "14-rt-multi-date-comparison" : {
                              "value" : {
                                 "data" : [
                                    {
                                       "columnHeader" : {
                                          "dateRanges" : [
                                             {
                                                "from" : 1617573600,
                                                "range" : "TODAY",
                                                "to" : 1617660000,
                                                "values" : [
                                                   {
                                                      "epoch" : 1617573600
                                                   }
                                                ]
                                             },
                                             {
                                                "from" : 1617487200,
                                                "range" : "YESTERDAY",
                                                "to" : 1617573600,
                                                "values" : [
                                                   {
                                                      "epoch" : 1617487200
                                                   }
                                                ]
                                             }
                                          ],
                                          "dimensions" : [
                                             {
                                                "field" : "ope_name",
                                                "name" : "campaign"
                                             }
                                          ],
                                          "metrics" : [
                                             {
                                                "affinity" : "int",
                                                "field" : "click",
                                                "name" : "inbound clicks"
                                             }
                                          ]
                                       },
                                       "data" : [
                                          {
                                             "dimensions" : [
                                                "Mailing"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "8"
                                                      ]
                                                   },
                                                   {
                                                      "values" : [
                                                         "1"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "Criteo"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "45"
                                                      ]
                                                   },
                                                   {
                                                      "values" : [
                                                         "1"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "Google"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "0"
                                                      ]
                                                   },
                                                   {
                                                      "values" : [
                                                         "1"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          }
                                       ],
                                       "kind" : "rt#insummary",
                                       "rowCount" : 3,
                                       "totalRowCount" : 41
                                    }
                                 ],
                                 "error" : false,
                                 "meta" : {
                                    "elapsed" : 2000,
                                    "host" : "_EA_PH_HOST_",
                                    "pid" : "_EA_PH_PID_",
                                    "reqid" : "_EA_PH_RID_"
                                 }
                              }
                           },
                           "15-rt-display-campaign-per-device" : {
                              "value" : {
                                 "data" : [
                                    {
                                       "columnHeader" : {
                                          "dateRanges" : [
                                             {
                                                "from" : 1617487200,
                                                "range" : "YESTERDAY",
                                                "to" : 1617573600,
                                                "values" : [
                                                   {
                                                      "epoch" : 1617487200
                                                   }
                                                ]
                                             }
                                          ],
                                          "dimensions" : [
                                             {
                                                "field" : "campaign",
                                                "name" : "campaign name"
                                             }
                                          ],
                                          "metrics" : [
                                             {
                                                "affinity" : "int",
                                                "field" : "scartvalid",
                                                "name" : "sales"
                                             }
                                          ],
                                          "segments" : [
                                             {
                                                "name" : "Device",
                                                "type" : "device"
                                             }
                                          ]
                                       },
                                       "data" : [
                                          {
                                             "dimensions" : [
                                                "Outbrain"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "segments" : {
                                                         "device" : [
                                                            {
                                                               "id" : "2",
                                                               "name" : "Phone",
                                                               "values" : [
                                                                  "1"
                                                               ]
                                                            }
                                                         ]
                                                      }
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "Criteo"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "segments" : {
                                                         "device" : [
                                                            {
                                                               "id" : "1",
                                                               "name" : "Desktop",
                                                               "values" : [
                                                                  "1"
                                                               ]
                                                            },
                                                            {
                                                               "id" : "2",
                                                               "name" : "Phone",
                                                               "values" : [
                                                                  "4"
                                                               ]
                                                            }
                                                         ]
                                                      }
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "Google"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "segments" : {
                                                         "device" : [
                                                            {
                                                               "id" : "1",
                                                               "name" : "Desktop",
                                                               "values" : [
                                                                  "1"
                                                               ]
                                                            },
                                                            {
                                                               "id" : "2",
                                                               "name" : "Phone",
                                                               "values" : [
                                                                  "4"
                                                               ]
                                                            }
                                                         ]
                                                      }
                                                   }
                                                ]
                                             ]
                                          }
                                       ],
                                       "kind" : "rt#insummary",
                                       "rowCount" : 3,
                                       "totalRowCount" : 20
                                    }
                                 ],
                                 "error" : false,
                                 "meta" : {
                                    "elapsed" : 2000,
                                    "host" : "_EA_PH_HOST_",
                                    "pid" : "_EA_PH_PID_",
                                    "reqid" : "_EA_PH_RID_"
                                 }
                              }
                           },
                           "16-rt-display-campaign-per-multi-attribution-rule" : {
                              "value" : {
                                 "data" : [
                                    {
                                       "columnHeader" : {
                                          "dateRanges" : [
                                             {
                                                "from" : 1617487200,
                                                "range" : "YESTERDAY",
                                                "to" : 1617573600,
                                                "values" : [
                                                   {
                                                      "epoch" : 1617487200
                                                   }
                                                ]
                                             }
                                          ],
                                          "dimensions" : [
                                             {
                                                "field" : "ope_name",
                                                "name" : "campaign"
                                             }
                                          ],
                                          "metrics" : [
                                             {
                                                "affinity" : "int",
                                                "field" : "scartvalid",
                                                "name" : "sales"
                                             }
                                          ],
                                          "segments" : [
                                             {
                                                "name" : "Single Touch Attribution rule",
                                                "operator" : "IN",
                                                "type" : "attributionrule",
                                                "value" : [
                                                   1,
                                                   3
                                                ]
                                             }
                                          ]
                                       },
                                       "data" : [
                                          {
                                             "dimensions" : [
                                                "Google"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "segments" : {
                                                         "view" : [
                                                            {
                                                               "id" : "1",
                                                               "values" : [
                                                                  "1"
                                                               ]
                                                            },
                                                            {
                                                               "id" : "3",
                                                               "values" : [
                                                                  "5"
                                                               ]
                                                            }
                                                         ]
                                                      }
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "Criteo"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "segments" : {
                                                         "view" : [
                                                            {
                                                               "id" : "1",
                                                               "values" : [
                                                                  "0"
                                                               ]
                                                            },
                                                            {
                                                               "id" : "3",
                                                               "values" : [
                                                                  "6"
                                                               ]
                                                            }
                                                         ]
                                                      }
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "Outbrain"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "segments" : {
                                                         "view" : [
                                                            {
                                                               "id" : "1",
                                                               "values" : [
                                                                  null
                                                               ]
                                                            },
                                                            {
                                                               "id" : "3",
                                                               "values" : [
                                                                  "2"
                                                               ]
                                                            }
                                                         ]
                                                      }
                                                   }
                                                ]
                                             ]
                                          }
                                       ],
                                       "kind" : "rt#insummary",
                                       "rowCount" : 3,
                                       "totalRowCount" : 22
                                    }
                                 ],
                                 "error" : false,
                                 "meta" : {
                                    "elapsed" : 2000,
                                    "host" : "_EA_PH_HOST_",
                                    "pid" : "_EA_PH_PID_",
                                    "reqid" : "_EA_PH_RID_"
                                 }
                              }
                           },
                           "17-rt-display-campaign-per-hour-yesterday" : {
                              "value" : {
                                 "data" : [
                                    {
                                       "columnHeader" : {
                                          "dateRanges" : [
                                             {
                                                "from" : 1617487200,
                                                "range" : "YESTERDAY",
                                                "to" : 1617573600,
                                                "values" : [
                                                   {
                                                      "epoch" : 1617487200
                                                   },
                                                   {
                                                      "epoch" : 1617490800
                                                   },
                                                   {
                                                      "epoch" : 1617494400
                                                   },
                                                   {
                                                      "epoch" : 1617498000
                                                   },
                                                   {
                                                      "epoch" : 1617501600
                                                   },
                                                   {
                                                      "epoch" : 1617505200
                                                   },
                                                   {
                                                      "epoch" : 1617508800
                                                   },
                                                   {
                                                      "epoch" : 1617512400
                                                   },
                                                   {
                                                      "epoch" : 1617516000
                                                   },
                                                   {
                                                      "epoch" : 1617519600
                                                   },
                                                   {
                                                      "epoch" : 1617523200
                                                   },
                                                   {
                                                      "epoch" : 1617526800
                                                   },
                                                   {
                                                      "epoch" : 1617530400
                                                   },
                                                   {
                                                      "epoch" : 1617534000
                                                   },
                                                   {
                                                      "epoch" : 1617537600
                                                   },
                                                   {
                                                      "epoch" : 1617541200
                                                   },
                                                   {
                                                      "epoch" : 1617544800
                                                   },
                                                   {
                                                      "epoch" : 1617548400
                                                   },
                                                   {
                                                      "epoch" : 1617552000
                                                   },
                                                   {
                                                      "epoch" : 1617555600
                                                   },
                                                   {
                                                      "epoch" : 1617559200
                                                   },
                                                   {
                                                      "epoch" : 1617562800
                                                   },
                                                   {
                                                      "epoch" : 1617566400
                                                   },
                                                   {
                                                      "epoch" : 1617570000
                                                   }
                                                ]
                                             }
                                          ],
                                          "dimensions" : [
                                             {
                                                "field" : "ope_name",
                                                "name" : "campaign name"
                                             }
                                          ],
                                          "metrics" : [
                                             {
                                                "affinity" : "int",
                                                "field" : "click",
                                                "name" : "inbound clicks"
                                             }
                                          ]
                                       },
                                       "data" : [
                                          {
                                             "dimensions" : [
                                                "Mailing"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "1",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "Criteo"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "1",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "Google"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "0",
                                                         "1",
                                                         "0"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          }
                                       ],
                                       "kind" : "rt#insummary",
                                       "rowCount" : 5,
                                       "totalRowCount" : 41
                                    }
                                 ],
                                 "error" : false,
                                 "meta" : {
                                    "elapsed" : 3000,
                                    "host" : "_EA_PH_HOST_",
                                    "pid" : "_EA_PH_PID_",
                                    "reqid" : "_EA_PH_RID_"
                                 }
                              }
                           },
                           "18-rt-display-campaign-sales-per-ordertype" : {
                              "value" : {
                                 "data" : [
                                    {
                                       "columnHeader" : {
                                          "dateRanges" : [
                                             {
                                                "from" : 1617487200,
                                                "range" : "YESTERDAY",
                                                "to" : 1617573600,
                                                "values" : [
                                                   {
                                                      "epoch" : 1617487200
                                                   }
                                                ]
                                             }
                                          ],
                                          "dimensions" : [
                                             {
                                                "field" : "ope_name",
                                                "name" : "campaign"
                                             }
                                          ],
                                          "metrics" : [
                                             {
                                                "affinity" : "int",
                                                "field" : "realscartvalid",
                                                "group" : 1,
                                                "name" : "sales",
                                                "segment" : {
                                                   "by" : "ordertype"
                                                }
                                             }
                                          ]
                                       },
                                       "data" : [
                                          {
                                             "dimensions" : [
                                                "Criteo"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "segments" : {
                                                         "ordertype" : [
                                                            {
                                                               "id" : "4605",
                                                               "name" : "offline",
                                                               "values" : [
                                                                  "1"
                                                               ]
                                                            }
                                                         ]
                                                      }
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "Google"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "segments" : {
                                                         "ordertype" : [
                                                            {
                                                               "id" : "4409",
                                                               "name" : "test-123",
                                                               "values" : [
                                                                  "1"
                                                               ]
                                                            },
                                                            {
                                                               "id" : "4491",
                                                               "name" : "offline",
                                                               "values" : [
                                                                  "2"
                                                               ]
                                                            },
                                                            {
                                                               "id" : "4605",
                                                               "name" : "callcenter",
                                                               "values" : [
                                                                  "1"
                                                               ]
                                                            },
                                                            {
                                                               "id" : "4625",
                                                               "name" : "phone",
                                                               "values" : [
                                                                  "1"
                                                               ]
                                                            }
                                                         ]
                                                      }
                                                   }
                                                ]
                                             ]
                                          }
                                       ],
                                       "kind" : "rt#insummary",
                                       "rowCount" : 2,
                                       "totalRowCount" : 20
                                    }
                                 ],
                                 "error" : false,
                                 "meta" : {
                                    "elapsed" : 3000,
                                    "host" : "_EA_PH_HOST_",
                                    "pid" : "_EA_PH_PID_",
                                    "reqid" : "_EA_PH_RID_"
                                 }
                              }
                           },
                           "19-rt-dedimension" : {
                              "value" : {
                                 "HASH(0x55e8edf75808)" : null
                              }
                           },
                           "20-rt-display-filtered-publisher" : {
                              "value" : {
                                 "error" : false,
                                 "reports" : [
                                    {
                                       "columnHeader" : {
                                          "dateRanges" : [
                                             {
                                                "from" : 1746223200,
                                                "range" : "LAST_5_DAYS",
                                                "to" : 1746741600,
                                                "tzone" : "Europe/Paris",
                                                "values" : [
                                                   {
                                                      "epoch" : 1746223200
                                                   }
                                                ]
                                             }
                                          ],
                                          "dimensions" : [
                                             {
                                                "field" : "ope_name",
                                                "name" : "campaign"
                                             },
                                             {
                                                "field" : "publisher_name",
                                                "name" : "publisher_name"
                                             }
                                          ],
                                          "metrics" : [
                                             {
                                                "affinity" : "int",
                                                "field" : "visit",
                                                "name" : "visits"
                                             },
                                             {
                                                "affinity" : "int",
                                                "field" : "hit",
                                                "name" : "page views"
                                             },
                                             {
                                                "affinity" : "int",
                                                "field" : "visitone",
                                                "name" : "visits to one page"
                                             },
                                             {
                                                "affinity" : "time",
                                                "field" : "duration",
                                                "name" : "duration"
                                             }
                                          ]
                                       },
                                       "data" : [
                                          {
                                             "dimensions" : [
                                                "campaign-1182660",
                                                "meta-publisher-1182660"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "20"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "177"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "1"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "8335"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "campaign-1075782",
                                                "publisher-meta-1075782"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "6"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "16"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "1"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "121"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "campaign-1182660",
                                                "publisher-meta-1182660"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "8"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "67"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "1"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "2715"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "campaign-3549660",
                                                "publisher-3549660-meta"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "1"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "2"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "0"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         0
                                                      ]
                                                   }
                                                ]
                                             ]
                                          }
                                       ],
                                       "kind" : "rt#insummary",
                                       "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE",
                                       "rowCount" : 4,
                                       "totalRowCount" : 167
                                    }
                                 ]
                              }
                           },
                           "21-rt-display-publisher-campaign" : {
                              "value" : {
                                 "error" : false,
                                 "reports" : [
                                    {
                                       "columnHeader" : {
                                          "dateRanges" : [
                                             {
                                                "from" : 1746223200,
                                                "range" : "LAST_5_DAYS",
                                                "to" : 1746741600,
                                                "tzone" : "Europe/Paris",
                                                "values" : [
                                                   {
                                                      "epoch" : 1746223200
                                                   }
                                                ]
                                             }
                                          ],
                                          "dimensions" : [
                                             {
                                                "field" : "ope_name",
                                                "name" : "campaign"
                                             },
                                             {
                                                "field" : "publisher_name",
                                                "name" : "publisher_name"
                                             }
                                          ],
                                          "metrics" : [
                                             {
                                                "affinity" : "int",
                                                "field" : "visit",
                                                "name" : "visits"
                                             },
                                             {
                                                "affinity" : "int",
                                                "field" : "hit",
                                                "name" : "page views"
                                             },
                                             {
                                                "affinity" : "int",
                                                "field" : "visitone",
                                                "name" : "visits to one page"
                                             },
                                             {
                                                "affinity" : "time",
                                                "field" : "duration",
                                                "name" : "duration"
                                             }
                                          ]
                                       },
                                       "data" : [
                                          {
                                             "dimensions" : [
                                                "campaign-1182660",
                                                "publisher-1182660"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "20"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "177"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "1"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "8335"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "campaign-1075782",
                                                "publisher-1075782"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "6"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "16"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "1"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "121"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "campaign-1182660",
                                                "publisher-1182660"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "8"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "67"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "1"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "2715"
                                                      ]
                                                   }
                                                ]
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "campaign-3549660",
                                                "publisher-3549660"
                                             ],
                                             "metrics" : [
                                                [
                                                   {
                                                      "values" : [
                                                         "1"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "2"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         "0"
                                                      ]
                                                   }
                                                ],
                                                [
                                                   {
                                                      "values" : [
                                                         0
                                                      ]
                                                   }
                                                ]
                                             ]
                                          }
                                       ],
                                       "kind" : "rt#insummary",
                                       "path" : "mcMEDIAINCOMING[?].mcMEDIAAD.mcOPE",
                                       "rowCount" : 4,
                                       "totalRowCount" : 167
                                    }
                                 ]
                              }
                           },
                           "22-rt-combine-two-reports" : {
                              "value" : {
                                 "data" : [
                                    {
                                       "columnHeader" : {
                                          "dimensions" : [
                                             {
                                                "field" : "ope_name",
                                                "name" : "ope name"
                                             },
                                             {
                                                "field" : "publisher_name",
                                                "name" : "publisher name"
                                             }
                                          ],
                                          "metrics" : [
                                             {
                                                "field" : "visit",
                                                "name" : "visit"
                                             },
                                             {
                                                "field" : "click",
                                                "name" : "click"
                                             }
                                          ]
                                       },
                                       "data" : [
                                          {
                                             "dimensions" : [
                                                "ope_mailing",
                                                ""
                                             ],
                                             "metrics" : [
                                                {
                                                   "values" : [
                                                      155
                                                   ]
                                                },
                                                {
                                                   "values" : []
                                                }
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "ope_criteo",
                                                ""
                                             ],
                                             "metrics" : [
                                                {
                                                   "values" : [
                                                      18
                                                   ]
                                                },
                                                {
                                                   "values" : []
                                                }
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "",
                                                "mailing"
                                             ],
                                             "metrics" : [
                                                {
                                                   "values" : []
                                                },
                                                {
                                                   "values" : [
                                                      897
                                                   ]
                                                }
                                             ]
                                          },
                                          {
                                             "dimensions" : [
                                                "",
                                                "criteo"
                                             ],
                                             "metrics" : [
                                                {
                                                   "values" : []
                                                },
                                                {
                                                   "values" : [
                                                      1256
                                                   ]
                                                }
                                             ]
                                          }
                                       ],
                                       "kind" : "rt-combined:rt#insummary:rt#insummary",
                                       "rowCount" : 3,
                                       "totalRowCount" : 4
                                    }
                                 ],
                                 "error" : false,
                                 "meta" : {
                                    "elapsed" : 3000,
                                    "host" : "_EA_PH_HOST_",
                                    "pid" : "_EA_PH_PID_",
                                    "reqid" : "_EA_PH_RID_"
                                 }
                              }
                           },
                           "23-human-query-simple" : {
                              "value" : {
                                 "data" : [
                                    {
                                       "columnHeader" : {
                                          "dateRanges" : [
                                             {
                                                "from" : "1699830000",
                                                "to" : "1700434800"
                                             }
                                          ],
                                          "dimensions" : [
                                             {
                                                "field" : "id",
                                                "name" : "id"
                                             },
                                             {
                                                "field" : "domain",
                                                "name" : "domain"
                                             },
                                             {
                                                "field" : "name",
                                                "name" : "name"
                                             }
                                          ],
                                          "metrics" : [
                                             {
                                                "field" : "visit",
                                                "name" : "visits"
                                             },
                                             {
                                                "field" : "hit",
                                                "name" : "page views"
                                             },
                                             {
                                                "field" : "scartvalid",
                                                "name" : "sales"
                                             }
                                          ]
                                       },
                                       "data" : [
                                          {
                                             "dimensions" : [
                                                "7",
                                                "https://demo.com",
                                                "demo"
                                             ],
                                             "metrics" : [
                                                {
                                                   "values" : [
                                                      "607484"
                                                   ]
                                                },
                                                {
                                                   "values" : [
                                                      "2508419"
                                                   ]
                                                },
                                                {
                                                   "values" : [
                                                      "18294"
                                                   ]
                                                }
                                             ]
                                          }
                                       ],
                                       "kind" : "hq#query",
                                       "metaConf" : {
                                          "is_evolution" : 0,
                                          "is_multi_date" : 0
                                       },
                                       "query" : "visit hit order website last week",
                                       "rowCount" : 1,
                                       "totalRowCount" : 1
                                    }
                                 ],
                                 "error" : false,
                                 "meta" : {
                                    "elapsed" : 4000,
                                    "host" : "er11",
                                    "pid" : "5463",
                                    "reqid" : "reqid"
                                 }
                              }
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/BatchReportingResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Query",
            "tags" : [
               "Batch Reporting"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST  https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/query.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/query.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/query.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n \n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/batch/segmentations.json" : {
         "get" : {
            "description" : "Given a ``kind`` and possibly a ``path`` return the available segmentations. This will allow the user to know which segmentations is available for a given report, the case where sub-segmentations are provided you can then browse in the engine to find all available segmentations for a given report so that you can access the most granular level of information. For that you need to provide the ``kind`` of report on which you want the segmentations, you will then have access in the ``segmentations`` entry to the available segmentations for the next levels.\n\nThe ``data`` entry allows you to find entities linked to the current level of the ``path`` requested, when you want to fetch a specific entry at the requested level.",
            "operationId" : "segmentationsBatchReporting",
            "parameters" : [
               {
                  "description" : "the kind of report for which you want the segmentation, you can get the list of the kinds available through the dedicated API.",
                  "example" : "rt#insummary",
                  "in" : "query",
                  "name" : "kind",
                  "required" : true,
                  "schema" : {
                     "enum" : [
                        "rt#action",
                        "rt#actionparam",
                        "rt#actionparamvalue",
                        "rt#blockpromo",
                        "rt#browser",
                        "rt#cgiparam",
                        "rt#cluster",
                        "rt#clustervalue",
                        "rt#creative",
                        "rt#dataconnector",
                        "rt#dataconnectorcm",
                        "rt#devicebrowser",
                        "rt#devicehardware",
                        "rt#deviceplatform",
                        "rt#devicescreeninches",
                        "rt#devicetype",
                        "rt#dewebsite",
                        "rt#ebmdbreq",
                        "rt#event",
                        "rt#flash",
                        "rt#geoloc",
                        "rt#geoloccity",
                        "rt#geolocregion",
                        "rt#headingtree",
                        "rt#headingtreeentry",
                        "rt#headingtreeexit",
                        "rt#iduserparam",
                        "rt#iduserparamvalue",
                        "rt#inadvertising",
                        "rt#inaffiliation",
                        "rt#inaudience",
                        "rt#inbranding",
                        "rt#ingeneric",
                        "rt#inmailing",
                        "rt#inpaidinclusion",
                        "rt#inpartner",
                        "rt#inproduct",
                        "rt#inreferer",
                        "rt#insearchengine",
                        "rt#insegment",
                        "rt#insocial",
                        "rt#insponsoredlink",
                        "rt#insummary",
                        "rt#intrustedfeed",
                        "rt#isengine",
                        "rt#isp",
                        "rt#landing",
                        "rt#lang",
                        "rt#location",
                        "rt#mediaplan",
                        "rt#ope",
                        "rt#opesubmedia",
                        "rt#os",
                        "rt#pagegroup",
                        "rt#pagetree",
                        "rt#pagetreeentry",
                        "rt#pagetreeerror",
                        "rt#pagetreeexit",
                        "rt#productevent",
                        "rt#profilechange",
                        "rt#publisher",
                        "rt#redirectdomainaccess",
                        "rt#rootpublishercluster",
                        "rt#sdepth",
                        "rt#ssize",
                        "rt#sslcipher",
                        "rt#sslversion",
                        "rt#tagmaster",
                        "rt#website"
                     ],
                     "type" : "string"
                  }
               },
               {
                  "description" : "if you want to look for the google entity at the requested level,the ``data`` entry will provide you with ids to use in filtering.",
                  "example" : "google",
                  "in" : "query",
                  "name" : "name",
                  "required" : false,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the path for which you want the available dimensions.",
                  "example" : "mcMEDIAINCOMING[35].mcMEDIAAD",
                  "in" : "query",
                  "name" : "path",
                  "required" : false,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "path"
                                 },
                                 {
                                    "name" : "text"
                                 },
                                 {
                                    "name" : "data"
                                 },
                                 {
                                    "name" : "segmentations"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "mcMEDIAINCOMING[X].mcMEDIANA",
                                    "direct access",
                                    null,
                                    []
                                 ],
                                 [
                                    "mcMEDIAINCOMING[X].mcMEDIASE",
                                    "search engine",
                                    null,
                                    [
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASE.mcSEARCHENGINEKEYWORDNAME.*",
                                          "text" : "group by keyword"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASE.mcMEDIASE",
                                          "text" : "search engine"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASE.mcMEDIASEKW",
                                          "text" : "keyword"
                                       }
                                    ]
                                 ],
                                 [
                                    "mcMEDIAINCOMING[X].mcMEDIAAD",
                                    "display",
                                    null,
                                    [
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAAD.mcMEDIAPLAN",
                                          "text" : "media plan"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAAD.mcOPE",
                                          "text" : "acquisition campaign"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAAD.mcCREATIVE",
                                          "text" : "banner"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAAD.mcPUBLISHER",
                                          "text" : "publisher"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAAD.mcCREATIVEGROUP",
                                          "text" : "banner group"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAAD.mcCREATIVETYPE",
                                          "text" : "format"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAAD.mcPUBLISHERTYPE",
                                          "text" : "publisher type"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAAD.mcLOCATION",
                                          "text" : "location"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAAD#mgOPEDATACLICKTHRUURL",
                                          "text" : "destination URL"
                                       }
                                    ]
                                 ],
                                 [
                                    "mcMEDIAINCOMING[X].mcMEDIAIN",
                                    "internal network",
                                    null,
                                    [
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAIN.mcOPE",
                                          "text" : "acquisition campaign"
                                       }
                                    ]
                                 ],
                                 [
                                    "mcMEDIAINCOMING[X].mcMEDIAPT",
                                    "partnership",
                                    null,
                                    [
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAPT.mcINSEGMENTITEMCATEGORY.mcINSEGMENTITEMCATEGORY",
                                          "text" : "segment category"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAPT.mcPUBLISHER",
                                          "text" : "publisher"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAPT.mcMEDIAPLAN",
                                          "text" : "media plan"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAPI.mcOPEDATAINSEGMENTITEM.mcINSEGMENT",
                                          "text" : "inbound segment"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAPI.mcPUBLISHERGROUP",
                                          "text" : "publisher group"
                                       }
                                    ]
                                 ],
                                 [
                                    "mcMEDIAINCOMING[X].mcMEDIAML",
                                    "mailing",
                                    null,
                                    [
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAML.mcPUBLISHERGROUP",
                                          "text" : "publisher group"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAML.mcOPEDATAINSEGMENTITEM.mcINSEGMENT",
                                          "text" : "inbound segment"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAML.mcSUBMEDIAGROUP",
                                          "text" : "virtual sub-channel group"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAML.mcMEDIAPLANGROUP",
                                          "text" : "media plan group"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAML.mcMEDIAPLAN",
                                          "text" : "media plan"
                                       }
                                    ]
                                 ],
                                 [
                                    "mcMEDIAINCOMING[X].mcMEDIASC",
                                    "social",
                                    null,
                                    [
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASC.mcCREATIVEGROUP",
                                          "text" : "banner group"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASC.mcOPETYPE.*",
                                          "text" : "campaign type"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASC.mcCREATIVE",
                                          "text" : "banner"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASC.mcPUBLISHER",
                                          "text" : "publisher"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASC.mcMEDIAPLAN",
                                          "text" : "media plan"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASC.mcOPE",
                                          "text" : "acquisition campaign"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASC#mgOPEDATACLICKTHRUURL",
                                          "text" : "destination URL"
                                       }
                                    ]
                                 ],
                                 [
                                    "mcMEDIAINCOMING[X].mcMEDIASCF",
                                    "social free",
                                    null,
                                    [
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASCF.mcOPEDATA",
                                          "text" : "tracking id"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASCF.mcMEDIAPLANGROUP",
                                          "text" : "media plan group"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASCF.mcSUBMEDIAGROUP",
                                          "text" : "virtual sub-channel group"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASCF.mcOPEDATAINSEGMENTITEM.mcINSEGMENT",
                                          "text" : "inbound segment"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASCF.mcOPE",
                                          "text" : "acquisition campaign"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASCF.mcCREATIVE",
                                          "text" : "banner"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASCF.mcOPETYPE.*",
                                          "text" : "campaign type"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASCF.mcPUBLISHER",
                                          "text" : "publisher"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASCF#mgOPEDATACLICKTHRUURL",
                                          "text" : "destination URL"
                                       }
                                    ]
                                 ],
                                 [
                                    "mcMEDIAINCOMING[X].mcMEDIAAF",
                                    "affiliate",
                                    null,
                                    [
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAAF.mcPUBLISHERGROUP",
                                          "text" : "publisher group"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAAF.mcOPEDATAINSEGMENTITEM.mcINSEGMENT",
                                          "text" : "inbound segment"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAAF.mcSUBMEDIAGROUP",
                                          "text" : "virtual sub-channel group"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAAF.mcOPE",
                                          "text" : "acquisition campaign"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAAF.mcMEDIAPLAN",
                                          "text" : "media plan"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAAF#mgOPEDATACLICKTHRUURL",
                                          "text" : "destination URL"
                                       }
                                    ]
                                 ],
                                 [
                                    "mcMEDIAINCOMING[X].mcMEDIATF",
                                    "shopbot",
                                    null,
                                    [
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIATF.mcPUBLISHER",
                                          "text" : "publisher"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIATF.mcOPE",
                                          "text" : "acquisition campaign"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIATF.mcMEDIAPLAN",
                                          "text" : "media plan"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIATF.mcPRODUCT",
                                          "text" : "product"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIATF.mcOPEDATA",
                                          "text" : "tracking id"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIATF.mcMEDIAPLANGROUP",
                                          "text" : "media plan group"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIATF#mgOPEDATACLICKTHRUURL",
                                          "text" : "destination URL"
                                       }
                                    ]
                                 ],
                                 [
                                    "mcMEDIAINCOMING[X].mcMEDIAGN",
                                    "generic",
                                    null,
                                    [
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAGN.mcOPE",
                                          "text" : "acquisition campaign"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAGN.mcMEDIAPLAN",
                                          "text" : "media plan"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAGN.mcMEDIAPLANGROUP",
                                          "text" : "media plan group"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAGN.mcLOCATION",
                                          "text" : "location"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAGN.mcPUBLISHERGROUP",
                                          "text" : "publisher group"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAGN.mcOPEDATAINSEGMENTITEM.mcINSEGMENT",
                                          "text" : "inbound segment"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAGN#mgOPEDATACLICKTHRUURL",
                                          "text" : "destination URL"
                                       }
                                    ]
                                 ],
                                 [
                                    "mcMEDIAINCOMING[X].mcMEDIAOF",
                                    "offline",
                                    null,
                                    [
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAOF.mcPUBLISHERGROUP",
                                          "text" : "publisher group"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAOF.mcOPEDATAINSEGMENTITEM.mcINSEGMENT",
                                          "text" : "inbound segment"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAOF.mcSUBMEDIAGROUP",
                                          "text" : "virtual sub-channel group"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAOF.mcMEDIAPLANGROUP",
                                          "text" : "media plan group"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIAOF.mcMEDIAPLAN",
                                          "text" : "media plan"
                                       }
                                    ]
                                 ],
                                 [
                                    "mcMEDIAINCOMING[X].mcMEDIATFF",
                                    "shopbots (earned)",
                                    null,
                                    [
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIATFF.mcMEDIAPLAN",
                                          "text" : "media plan"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIATFF.mcOPE",
                                          "text" : "acquisition campaign"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIATFF.mcPUBLISHER",
                                          "text" : "publisher"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIATFF.mcPUBLISHERTYPE",
                                          "text" : "publisher type"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIATFF.mcPUBLISHERGROUP",
                                          "text" : "publisher group"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIATFF#mgOPEDATACLICKTHRUURL",
                                          "text" : "destination URL"
                                       }
                                    ]
                                 ],
                                 [
                                    "mcMEDIAINCOMING[X].mcMEDIARF",
                                    "referrer domain",
                                    null,
                                    [
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIARF.mcMEDIARF",
                                          "text" : "referrer domain"
                                       }
                                    ]
                                 ],
                                 [
                                    "mcMEDIAINCOMING[X].mcMEDIASL",
                                    "paid search",
                                    null,
                                    [
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASL.mcSEMCREATIVEGROUP",
                                          "text" : "creative group"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASL.mcSUBMEDIA",
                                          "text" : "virtual sub-channel"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASL.mcPUBLISHERTYPE",
                                          "text" : "publisher type"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASL.mcOPEDATAREFERERDOMAIN.mcREFERERDOMAIN",
                                          "text" : "referrer domain"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASL.mcPUBLISHERGROUP",
                                          "text" : "publisher group"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASL.mcSEMPUBLISHER",
                                          "text" : "publisher"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASL.mcSEMACCOUNT",
                                          "text" : "account"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASL.mcSEMKEYWORD",
                                          "text" : "keyword"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASL.mcSEMPLACEMENT",
                                          "text" : "location"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIASL#mgOPEDATACLICKTHRUURL",
                                          "text" : "destination URL"
                                       }
                                    ]
                                 ],
                                 [
                                    "mcMEDIAINCOMING[X].mcMEDIABR",
                                    "branding SEO",
                                    null,
                                    [
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIABR.mcOPEDATASEARCHENGINE.mcOPEDATASEARCHENGINE",
                                          "text" : "search engine"
                                       },
                                       {
                                          "path" : "mcMEDIAINCOMING[X].mcMEDIABR.mcOPEDATAKEYWORD",
                                          "text" : "search query"
                                       }
                                    ]
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 16
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Available segmentations",
            "tags" : [
               "Batch Reporting"
            ],
            "x-MCP-resource" : {
               "uri" : "eulerian://reporting/batch/segmentations?site={site}&kind={kind}"
            },
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/segmentations.json?kind=rt%23insummary&name=google&path=mcMEDIAINCOMING%5B35%5D.mcMEDIAAD\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/segmentations.json?kind=rt#insummary&name=google&path=mcMEDIAINCOMING[35].mcMEDIAAD',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/segmentations.json?kind=rt#insummary&name=google&path=mcMEDIAINCOMING[35].mcMEDIAAD');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'kind=rt%23insummary&name=google&path=mcMEDIAINCOMING%5B35%5D.mcMEDIAAD'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/segmentations.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/batch/status.json" : {
         "get" : {
            "description" : "Once you have sent the `query` request, you can check the generation status of the report by querying this method.",
            "operationId" : "statusBatchReporting",
            "parameters" : [
               {
                  "description" : "id of the jobrun generating the report as provided by the `query`",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_status"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "INPROGRESS"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Status",
            "tags" : [
               "Batch Reporting"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/status.json?jobrun-id=1777564990\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/status.json?jobrun-id=1777564990',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/status.json?jobrun-id=1777564990');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564990'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/batch/status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/estimate/cancel.json" : {
         "post" : {
            "description" : "This query will cancel an estimate.  After triggering the collector call to upload a estimate, it will be only available after 5 minutes (300 seconds).  If you want to cancel a estimate immediately after its creation, you must add the parameter `ea-apiasync=400`.",
            "operationId" : "cancelDatamining:estimates",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "estimate reference to cancel.",
                  "example" : "ref-estimate-1777564990",
                  "in" : "query",
                  "name" : "estimate-ref",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "number of seconds before executing the request.",
                  "example" : 350,
                  "in" : "query",
                  "name" : "ea-apiasync",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Cancel an estimate.",
            "tags" : [
               "Datamining: estimates"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"ea-apiasync=350&estimate-ref=ref-estimate-1777564990\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/cancel.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'ea-apiasync' => '350',\n'estimate-ref' => 'ref-estimate-1777564990'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/cancel.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/cancel.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('ea-apiasync=350&estimate-ref=ref-estimate-1777564990');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'ea-apiasync' : '350',\n'estimate-ref' : 'ref-estimate-1777564990'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/estimate/download.json" : {
         "get" : {
            "description" : "Once the report is available (COMPLETED) you can download the data by querying this method.\n\nThe following fields are returned depending on the request parameters :\n<table>\n <tr><td>Field</td><td>Header</td><td>Format</td><td>Availability</td></tr>\n <tr><td>estimate_id</td><td>EA internal ID</td><td>Unsigned int</td><td>Always</td></tr>\n <tr><td>estimate_ref</td><td>Estimate reference</td><td>Text</td><td>Always</td></tr>\n <tr><td>estimate_date</td><td>Estimate date</td><td>Epoch UNIX</td><td>Always</td></tr>\n <tr><td>estimate_status</td><td>Estimate status</td><td>PENDING/VALID/INVALID</td><td>Always</td></tr>\n <tr><td>estimate_scartvalidamount</td><td>Estimate amount</td><td>Number</td><td>Always</td></tr>\n <tr><td>email_id</td><td>Email address</td><td>Text</td><td>with-email=1</td></tr>\n <tr><td>estimate_extparam</td><td>External parameter</td><td>Text</td><td>with-extparam=1</td></tr>\n <tr><td>estimate_ip</td><td>IP address</td><td>Text</td><td>with-ip=1</td></tr>\n <tr><td>estimate_optin</td><td>Optin Status</td><td>Text</td><td>with-optin=1</td></tr>\n <tr><td>estimatetype_key</td><td>Estimate type</td><td>Text</td><td>with-estimatetype=1</td></tr>\n <tr><td>geoloc_name</td><td>Country</td><td>Coded on 2 ISO-3166-1 characters</td><td>with-geoloc=1</td></tr>\n <tr><td>browser_name</td><td>Browser</td><td>Text</td><td>with-browser=1</td></tr>\n <tr><td>lang_name</td><td>Browser language</td><td>Coded on 2 ISO-3166-1 characters</td><td>with-lang=1</td></tr>\n <tr><td>os_name</td><td>Operative system</td><td>Text</td><td>with-os=1</td></tr>\n <tr><td>isp_name</td><td>Internet access provider</td><td>Text</td><td>with-isp=1</td></tr>\n <tr><td>action_name</td><td>Name of the last validated conversion tracking</td><td>Text</td><td>with-action=1</td></tr>\n <tr><td>blockpromo_name</td><td>Name of the last clicked auto promotion</td><td>Text</td><td>with-blockpromo=1</td></tr>\n <tr><td>cgiparam_$ID : $ID being the custom parameter internal ID</td><td>Custom parameter</td><td>Text</td><td>with-cgiparam=1</td></tr>\n <tr><td>a_channel_sz</td><td>Total number of channels in the marketing history</td><td>Total</td><td>with-channel-count=1&with-channel-level=1</td></tr>\n <tr><td>channel_lvlX_P0</td><td>Field P0 of the channel at X level</td><td>Text</td><td>with-channel-level=X&max-channel-info=1</td></tr>\n <tr><td>channel_lvlX_P1</td><td>Field P1 of the channel at X level</td><td>Text</td><td>with-channel-level=X&max-channel-info=2</td></tr>\n <tr><td>channel_lvlX_P2</td><td>Field P2 of the channel at X level</td><td>Text</td><td>with-channel-level=X&max-channel-info=3</td></tr>\n <tr><td>channel_lvlX_P3</td><td>Field P3 of the channel at X level</td><td>Text</td><td>with-channel-level=X&max-channel-info=4</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P3 to P4 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=5</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P4 to P6 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=7</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P7 to P8 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=9</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P8 to P13 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=14</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P13 to P17 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=18</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P17 to P20 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=21</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P21 to P28 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=28</td></tr>\n <tr><td>channel_lvlX_via</td><td>Type of interaction at X level for the channel: C: post-click/V: post-impression/R: out of session/Empty: none</td><td>Text</td><td>with-channel-level=1&with-channel-via=1</td></tr>\n <tr><td>channel_lvlX_date</td><td>Date from the interaction with the channel on X level</td><td>Epoch UNIX</td><td>with-channel-level=1&with-channel-date=1</td></tr>\n <tr><td>channel_lvlX_clickid</td><td>Click ID from the interaction with the channel on X level</td><td>Text</td><td>with-channel-level=1&with-channel-clickid=1</td></tr>\n <tr><td>viewchannel_P0</td><td>Field P0 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P1</td><td>Field P1 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=2&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P2</td><td>Field P2 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=3&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P3</td><td>Field P3 to P4 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=5&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P4 to P6 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=7&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P7 to P8 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=9&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P8 to P13 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=14&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P13 to P17 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=18&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P17 to P20 of the channel on for provided view-id</td><td>Text</td><td>max-channel-info=21&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P21 to P28 of the channel on for provided view-id</td><td>Text</td><td>max-channel-info=28&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_via</td><td>Type of interaction for the channel for provided view-id: C: post-click/V: post-impression/R: out of session/Empty: none</td><td>Text</td><td>with-channel-via=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_date</td><td>Date from the interaction with the channel on X level</td><td>Epoch UNIX</td><td>with-channel-date=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_clickid</td><td>Click Id from the interaction with the channel for provided view-id</td><td>Text</td><td>with-channel-clickid=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_mtascore</td><td>Data Driven score  for the channel for provided view-id</td><td>Text</td><td>with-channel-mtascore=1&view-id=ID_VIEW</td></tr>\n <tr><td>a_estimatepage_sz</td><td>Number of pages linked to the estimate</td><td>All</td><td>with-estimatepage=1</td></tr>\n <tr><td>estimatepage_name_X: X being the page directory</td><td>Name of the page</td><td>Text</td><td>with-estimatepage=1</td></tr>\n <tr><td>a_estimateproduct_sz</td><td>Number of products associated with the estimate</td><td>Entirety</td><td>with-estimateproduct=1</td></tr>\n <tr><td>estimateproduct_ref_X: X being the index of the product</td><td>Product reference</td><td>Text</td><td>with-estimateproduct=1</td></tr>\n <tr><td>estimateproduct_name_X: X being the index of the product</td><td>Product name</td><td>Text</td><td>with-estimateproduct=1</td></tr>\n <tr><td>estimateproduct_quantity_X: X being the index of the product</td><td>Sold product quantity</td><td>All</td><td>with-estimateproduct=1</td></tr>\n <tr><td>estimateproduct_sellprice_X: X being the index of the product</td><td>Unit amount of the product</td><td>Number</td><td>with-estimateproduct=1</td></tr>\n <tr><td>shop_key</td><td>Shop key</td><td>Text</td><td>with-shop=1</td></tr>\n <tr><td>shop_desc</td><td>Shop description</td><td>Text</td><td>with-shop=1</td></tr>\n</table>\n<br /><br />\nBy providing **max-level-mtascore** you will get with **view-id** and **with-channel-mtascore** the number of touches requested for a MTA model. For example if you ask 3 you will have the last 3 touches, if you want all of them you need to set it to the maximum number of touches configured for your site. Otherwise only the last entry will be provided.\n",
            "operationId" : "downloadDatamining:estimates",
            "parameters" : [
               {
                  "description" : "id of the jobrun generating the report as provided by the `search` query",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If set to 1, the output will be formatted as a CSV file.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "output-as-csv",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If set to 1, the output will be formatted as an array of key/value fields.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "output-as-kv",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "estimate_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "SCART-1777564990"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Download the report",
            "tags" : [
               "Datamining: estimates"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564990&output-as-csv=1&output-as-kv=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/download.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/estimate/get.json" : {
         "get" : {
            "description" : "This query will return a specific estimate.\n\nThe following fields are returned depending on the request parameters :\n<table>\n <tr><td>Field</td><td>Header</td><td>Format</td><td>Availability</td></tr>\n <tr><td>estimate_id</td><td>EA internal ID</td><td>Unsigned int</td><td>Always</td></tr>\n <tr><td>estimate_ref</td><td>Estimate reference</td><td>Text</td><td>Always</td></tr>\n <tr><td>estimate_date</td><td>Estimate date</td><td>Epoch UNIX</td><td>Always</td></tr>\n <tr><td>estimate_status</td><td>Estimate status</td><td>PENDING/VALID/INVALID</td><td>Always</td></tr>\n <tr><td>estimate_scartvalidamount</td><td>Estimate amount</td><td>Number</td><td>Always</td></tr>\n <tr><td>email_id</td><td>Email address</td><td>Text</td><td>with-email=1</td></tr>\n <tr><td>estimate_extparam</td><td>External parameter</td><td>Text</td><td>with-extparam=1</td></tr>\n <tr><td>estimate_ip</td><td>IP address</td><td>Text</td><td>with-ip=1</td></tr>\n <tr><td>estimate_optin</td><td>Optin Status</td><td>Text</td><td>with-optin=1</td></tr>\n <tr><td>estimatetype_key</td><td>Estimate type</td><td>Text</td><td>with-estimatetype=1</td></tr>\n <tr><td>geoloc_name</td><td>Country</td><td>Coded on 2 ISO-3166-1 characters</td><td>with-geoloc=1</td></tr>\n <tr><td>browser_name</td><td>Browser</td><td>Text</td><td>with-browser=1</td></tr>\n <tr><td>lang_name</td><td>Browser language</td><td>Coded on 2 ISO-3166-1 characters</td><td>with-lang=1</td></tr>\n <tr><td>os_name</td><td>Operative system</td><td>Text</td><td>with-os=1</td></tr>\n <tr><td>isp_name</td><td>Internet access provider</td><td>Text</td><td>with-isp=1</td></tr>\n <tr><td>action_name</td><td>Name of the last validated conversion tracking</td><td>Text</td><td>with-action=1</td></tr>\n <tr><td>blockpromo_name</td><td>Name of the last clicked auto promotion</td><td>Text</td><td>with-blockpromo=1</td></tr>\n <tr><td>cgiparam_$ID : $ID being the custom parameter internal ID</td><td>Custom parameter</td><td>Text</td><td>with-cgiparam=1</td></tr>\n <tr><td>a_channel_sz</td><td>Total number of channels in the marketing history</td><td>Total</td><td>with-channel-count=1&with-channel-level=1</td></tr>\n <tr><td>channel_lvlX_P0</td><td>Field P0 of the channel at X level</td><td>Text</td><td>with-channel-level=X&max-channel-info=1</td></tr>\n <tr><td>channel_lvlX_P1</td><td>Field P1 of the channel at X level</td><td>Text</td><td>with-channel-level=X&max-channel-info=2</td></tr>\n <tr><td>channel_lvlX_P2</td><td>Field P2 of the channel at X level</td><td>Text</td><td>with-channel-level=X&max-channel-info=3</td></tr>\n <tr><td>channel_lvlX_P3</td><td>Field P3 of the channel at X level</td><td>Text</td><td>with-channel-level=X&max-channel-info=4</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P3 to P4 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=5</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P4 to P6 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=7</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P7 to P8 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=9</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P8 to P13 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=14</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P13 to P17 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=18</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P17 to P20 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=21</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P21 to P28 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=28</td></tr>\n <tr><td>channel_lvlX_via</td><td>Type of interaction at X level for the channel: C: post-click/V: post-impression/R: out of session/Empty: none</td><td>Text</td><td>with-channel-level=1&with-channel-via=1</td></tr>\n <tr><td>channel_lvlX_date</td><td>Date from the interaction with the channel on X level</td><td>Epoch UNIX</td><td>with-channel-level=1&with-channel-date=1</td></tr>\n <tr><td>channel_lvlX_clickid</td><td>Click ID from the interaction with the channel on X level</td><td>Text</td><td>with-channel-level=1&with-channel-clickid=1</td></tr>\n <tr><td>viewchannel_P0</td><td>Field P0 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P1</td><td>Field P1 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=2&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P2</td><td>Field P2 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=3&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P3</td><td>Field P3 to P4 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=5&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P4 to P6 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=7&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P7 to P8 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=9&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P8 to P13 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=14&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P13 to P17 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=18&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P17 to P20 of the channel on for provided view-id</td><td>Text</td><td>max-channel-info=21&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P21 to P28 of the channel on for provided view-id</td><td>Text</td><td>max-channel-info=28&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_via</td><td>Type of interaction for the channel for provided view-id: C: post-click/V: post-impression/R: out of session/Empty: none</td><td>Text</td><td>with-channel-via=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_date</td><td>Date from the interaction with the channel on X level</td><td>Epoch UNIX</td><td>with-channel-date=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_clickid</td><td>Click Id from the interaction with the channel for provided view-id</td><td>Text</td><td>with-channel-clickid=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_mtascore</td><td>Data Driven score  for the channel for provided view-id</td><td>Text</td><td>with-channel-mtascore=1&view-id=ID_VIEW</td></tr>\n <tr><td>a_estimatepage_sz</td><td>Number of pages linked to the estimate</td><td>All</td><td>with-estimatepage=1</td></tr>\n <tr><td>estimatepage_name_X: X being the page directory</td><td>Name of the page</td><td>Text</td><td>with-estimatepage=1</td></tr>\n <tr><td>a_estimateproduct_sz</td><td>Number of products associated with the estimate</td><td>Entirety</td><td>with-estimateproduct=1</td></tr>\n <tr><td>estimateproduct_ref_X: X being the index of the product</td><td>Product reference</td><td>Text</td><td>with-estimateproduct=1</td></tr>\n <tr><td>estimateproduct_name_X: X being the index of the product</td><td>Product name</td><td>Text</td><td>with-estimateproduct=1</td></tr>\n <tr><td>estimateproduct_quantity_X: X being the index of the product</td><td>Sold product quantity</td><td>All</td><td>with-estimateproduct=1</td></tr>\n <tr><td>estimateproduct_sellprice_X: X being the index of the product</td><td>Unit amount of the product</td><td>Number</td><td>with-estimateproduct=1</td></tr>\n <tr><td>shop_key</td><td>Shop key</td><td>Text</td><td>with-shop=1</td></tr>\n <tr><td>shop_desc</td><td>Shop description</td><td>Text</td><td>with-shop=1</td></tr>\n</table>\n<br /><br />\nBy providing **max-level-mtascore** you will get with **view-id** and **with-channel-mtascore** the number of touches requested for a MTA model. For example if you ask 3 you will have the last 3 touches, if you want all of them you need to set it to the maximum number of touches configured for your site. Otherwise only the last entry will be provided.\n",
            "operationId" : "getDatamining:estimates",
            "parameters" : [
               {
                  "description" : "estimate reference",
                  "example" : "estimate-1777564990",
                  "in" : "query",
                  "name" : "estimate-ref",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: attribution rule",
                  "example" : 1,
                  "in" : "query",
                  "name" : "view-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: conversion tracking",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-action",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: name of the internal promotion",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-blockpromo",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: browser",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-browser",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Eulerian identifier (EUID)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-buyerid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: CGI params",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-cgiparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Click ID",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-clickid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: total number of interactions",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-count",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: interaction date per channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-date",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: level of detail of the marketing channels",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-level",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: interaction device type",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-mdevicetype",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Data-Driven Score",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-mtascore",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: profile at the interaction",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-profile",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Interaction type (post-clic/post-impression/revisit)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-via",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: audience",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-cluster",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: conversion date (DD/MM/YYYY)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-dmy",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: conversion date (EPOCH)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date (HH:MM:SS)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-hms",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: email",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-email",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: list of events",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-estimateevent",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: pages seen in a session",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-estimatepage",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: list of products for this estimate",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-estimateproduct",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: estimates type",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-estimatetype",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: custom estimate type group",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-estimatetypecustom",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: external parameter",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-extparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: first channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-first-channel",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: delay between first & last marketing interaction (in seconds)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-firstlast-channel-lag",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: country",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-geoloc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: user-centric parameters",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-iduserparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: IP address",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-ip",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: ISP",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-isp",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: internal engine request",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-isrequest",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: language",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-lang",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: last channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-last-channel",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: last Android ID",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-last-rp-ea-android-adid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: last iOS IDFA",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-last-rp-ea-ios-idfa",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: type of device",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-mdevicetype",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 1",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup1",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 2",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup2",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 3",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup3",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 4",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup4",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 5",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup5",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OptIn status",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-optin",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: sales unique id",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-order",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: operating system",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-os",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: product group",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-productgroup",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: product parameters",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-productparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: real amount",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-realscartvalidamount",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: real margin",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-realscartvalidmargin",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: total amount before this estimate",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-rebuyer-prevamount",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: number of estimates done before this estimate",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-rebuyer-prevnb",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date of previous estimate",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-rebuyer-prevtm",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date of previous estimate (epoch)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-rebuyer-prevtm-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: margin",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-scartvalidmargin",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Shop",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-shop",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: CRM identifier (UID)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-userid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: attribution rule",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-viewestimate",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date of the visit",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-visitdate",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: length of the visit",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-visitlag",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: length of the visit (hh:mm:ss)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-visitlag-hms",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get an estimate.",
            "tags" : [
               "Datamining: estimates"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/get.json?estimate-ref=estimate-1777564990&view-id=1&with-action=1&with-blockpromo=1&with-browser=1&with-buyerid=1&with-cgiparam=1&with-channel-clickid=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-mdevicetype=1&with-channel-mtascore=1&with-channel-profile=1&with-channel-via=1&with-cluster=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-estimateevent=1&with-estimatepage=1&with-estimateproduct=1&with-estimatetype=1&with-estimatetypecustom=1&with-extparam=1&with-first-channel=1&with-firstlast-channel-lag=1&with-geoloc=1&with-iduserparam=1&with-ip=1&with-isp=1&with-isrequest=1&with-lang=1&with-last-channel=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-mdevicetype=1&with-omnichannelgroup1=1&with-omnichannelgroup2=1&with-omnichannelgroup3=1&with-omnichannelgroup4=1&with-omnichannelgroup5=1&with-optin=1&with-order=1&with-os=1&with-productgroup=1&with-productparam=1&with-realscartvalidamount=1&with-realscartvalidmargin=1&with-rebuyer-prevamount=1&with-rebuyer-prevnb=1&with-rebuyer-prevtm=1&with-rebuyer-prevtm-epoch=1&with-scartvalidmargin=1&with-shop=1&with-userid=1&with-viewestimate=1&with-visitdate=1&with-visitlag=1&with-visitlag-hms=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/get.json?estimate-ref=estimate-1777564990&view-id=1&with-action=1&with-blockpromo=1&with-browser=1&with-buyerid=1&with-cgiparam=1&with-channel-clickid=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-mdevicetype=1&with-channel-mtascore=1&with-channel-profile=1&with-channel-via=1&with-cluster=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-estimateevent=1&with-estimatepage=1&with-estimateproduct=1&with-estimatetype=1&with-estimatetypecustom=1&with-extparam=1&with-first-channel=1&with-firstlast-channel-lag=1&with-geoloc=1&with-iduserparam=1&with-ip=1&with-isp=1&with-isrequest=1&with-lang=1&with-last-channel=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-mdevicetype=1&with-omnichannelgroup1=1&with-omnichannelgroup2=1&with-omnichannelgroup3=1&with-omnichannelgroup4=1&with-omnichannelgroup5=1&with-optin=1&with-order=1&with-os=1&with-productgroup=1&with-productparam=1&with-realscartvalidamount=1&with-realscartvalidmargin=1&with-rebuyer-prevamount=1&with-rebuyer-prevnb=1&with-rebuyer-prevtm=1&with-rebuyer-prevtm-epoch=1&with-scartvalidmargin=1&with-shop=1&with-userid=1&with-viewestimate=1&with-visitdate=1&with-visitlag=1&with-visitlag-hms=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/get.json?estimate-ref=estimate-1777564990&view-id=1&with-action=1&with-blockpromo=1&with-browser=1&with-buyerid=1&with-cgiparam=1&with-channel-clickid=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-mdevicetype=1&with-channel-mtascore=1&with-channel-profile=1&with-channel-via=1&with-cluster=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-estimateevent=1&with-estimatepage=1&with-estimateproduct=1&with-estimatetype=1&with-estimatetypecustom=1&with-extparam=1&with-first-channel=1&with-firstlast-channel-lag=1&with-geoloc=1&with-iduserparam=1&with-ip=1&with-isp=1&with-isrequest=1&with-lang=1&with-last-channel=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-mdevicetype=1&with-omnichannelgroup1=1&with-omnichannelgroup2=1&with-omnichannelgroup3=1&with-omnichannelgroup4=1&with-omnichannelgroup5=1&with-optin=1&with-order=1&with-os=1&with-productgroup=1&with-productparam=1&with-realscartvalidamount=1&with-realscartvalidmargin=1&with-rebuyer-prevamount=1&with-rebuyer-prevnb=1&with-rebuyer-prevtm=1&with-rebuyer-prevtm-epoch=1&with-scartvalidmargin=1&with-shop=1&with-userid=1&with-viewestimate=1&with-visitdate=1&with-visitlag=1&with-visitlag-hms=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'estimate-ref=estimate-1777564990&view-id=1&with-action=1&with-blockpromo=1&with-browser=1&with-buyerid=1&with-cgiparam=1&with-channel-clickid=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-mdevicetype=1&with-channel-mtascore=1&with-channel-profile=1&with-channel-via=1&with-cluster=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-estimateevent=1&with-estimatepage=1&with-estimateproduct=1&with-estimatetype=1&with-estimatetypecustom=1&with-extparam=1&with-first-channel=1&with-firstlast-channel-lag=1&with-geoloc=1&with-iduserparam=1&with-ip=1&with-isp=1&with-isrequest=1&with-lang=1&with-last-channel=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-mdevicetype=1&with-omnichannelgroup1=1&with-omnichannelgroup2=1&with-omnichannelgroup3=1&with-omnichannelgroup4=1&with-omnichannelgroup5=1&with-optin=1&with-order=1&with-os=1&with-productgroup=1&with-productparam=1&with-realscartvalidamount=1&with-realscartvalidmargin=1&with-rebuyer-prevamount=1&with-rebuyer-prevnb=1&with-rebuyer-prevtm=1&with-rebuyer-prevtm-epoch=1&with-scartvalidmargin=1&with-shop=1&with-userid=1&with-viewestimate=1&with-visitdate=1&with-visitlag=1&with-visitlag-hms=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/get.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/estimate/replay.json" : {
         "get" : {
            "description" : "This query allows for replaying an estimate which occured in the past.If you want to provide [CRM parameters](#tag/CRM-Parameters), [profile](#tag/Profile) information and/or [custom parameters](#tag/Custom-Parameters), you only need to provide them as additionnal parameters & as long as they are declared in the current site, they will be injected alongside the estimate. You only have to add them on the API call, for example if you have `gender` as a CRM Parameter & `M` as a value, you just have to add `gender=M` to the list of existing parameters.",
            "operationId" : "replayDatamining:estimates",
            "parameters" : [
               {
                  "description" : "the amount of the estimate, the decimals numbers must be separated by a point (.) as in this example: 10.68.",
                  "example" : 45,
                  "in" : "query",
                  "name" : "amount",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If you have a slave CMP configured in Category mode, you can provide the list of category ids that are disabled. You can provide as a value `-` if all categories are accepted.",
                  "example" : "1-4",
                  "in" : "query",
                  "name" : "disabled-pmcat",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the user email address",
                  "example" : "toto@test.com",
                  "in" : "query",
                  "name" : "email",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If you want to add a marketing touch to the marketing history you can provide the AES code of the targeted campaign. It will supersede `ereplay-channels-XXX` parameters.",
                  "example" : "DEQwyRwgEN.SrivRogdtOvgJ_0VPIWY-",
                  "in" : "query",
                  "name" : "eope",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "example" : "SDLKJLSKJDLKSJLDKJSLKJDLSKJDLKSJLKSJD--",
                  "in" : "query",
                  "name" : "ereplay-aes",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "create a channel if current history is empty. The value generic-channel-replay will create a generic campaign but if you want a specific value you have to specifiy the following format URL encoded : timestamp . @ . media  . ; . type  . ; . opedata.id ",
                  "example" : "1720886400%40gn%3Bc%3B3333",
                  "in" : "query",
                  "name" : "ereplay-channels-default",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "example" : "56.98.9.12",
                  "in" : "query",
                  "name" : "ereplay-ip",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "allows you to force the type of device (example: Desktop, Phone, Tablet, TV, AndroidNativeApp, iOSNativeApp).",
                  "example" : "Desktop",
                  "in" : "query",
                  "name" : "ereplay-mdevicetype",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date of the estimate in Epoch UNIX format",
                  "example" : 1777478590,
                  "in" : "query",
                  "name" : "ereplay-time",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Encrypted Eulerian Cookie on which you want to link the data, it is exclusive you cannot have multiple ids.",
                  "example" : "0bCzPiMFnYoq26HIVu7IdBwRJMBs.sg-",
                  "in" : "query",
                  "name" : "etuix",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If you have a slave CMP configured in TCF mode, you can provide the TCString you want to apply on the current call.",
                  "example" : "COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw",
                  "in" : "query",
                  "name" : "gdpr-consent",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "product amount for product at index 0, mandatory if you want to inject products.",
                  "example" : "amount-product-1777564990",
                  "in" : "query",
                  "name" : "prdaX",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "product name for product at index 0",
                  "example" : "name-product-1777564990",
                  "in" : "query",
                  "name" : "prdnX",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "product quantity for product at index 0, mandatory if you want to inject products.",
                  "example" : "quantity-product-1777564990",
                  "in" : "query",
                  "name" : "prdqX",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "product reference for product at index 0, mandatory if you want to inject products.",
                  "example" : "ref-product-1777564990",
                  "in" : "query",
                  "name" : "prdrX",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the profile you want to assign the user to, the profile MUST already exist in the targeted website.",
                  "example" : "looker",
                  "in" : "query",
                  "name" : "profile",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "estimate reference to replay",
                  "example" : "ref-estimate-1777564990",
                  "in" : "query",
                  "name" : "ref",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "To target a hashed email as a pivot id, you must make sure that the rpemail_encoding & rpemail_key are configured in your website options (check with Support), then you need to provide the email properly encoded to target it properly.",
                  "example" : "36@9c4e9e68abaa6615427f2c8a84c729a09bd0957eb0cd3d394debb1d7e1af9321",
                  "in" : "query",
                  "name" : "replay-rp",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "status of the estimate: VALID if the estimate is already validated, INVALID if it is canceled. By default, the status will be PENDING (on standby).",
                  "example" : "VALID",
                  "in" : "query",
                  "name" : "status",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "type of the estimate",
                  "example" : "travel",
                  "in" : "query",
                  "name" : "type",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the user unique internal ID, this is the parameter that is linked to a user if you want to reconcile on-line channels to offline events.",
                  "example" : "customer-1777564990",
                  "in" : "query",
                  "name" : "uid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : 0,
                  "description" : "This flag allows you to control if the CMP is enabled or not. Be default it is set to 0 meaning that no CMP controls are in place, the estimate will be injected. If you want to apply settings from the CMP you have configured, you can set it to 1 and if you have minimal collect configured it will be processed according to the defined rules.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-epm",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Replay an estimate.",
            "tags" : [
               "Datamining: estimates"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/replay.json?amount=45&disabled-pmcat=1-4&email=toto%40test.com&eope=DEQwyRwgEN.SrivRogdtOvgJ_0VPIWY-&ereplay-aes=SDLKJLSKJDLKSJLDKJSLKJDLSKJDLKSJLKSJD--&ereplay-channels-default=1720886400%2540gn%253Bc%253B3333&ereplay-ip=56.98.9.12&ereplay-mdevicetype=Desktop&ereplay-time=1777478590&etuix=0bCzPiMFnYoq26HIVu7IdBwRJMBs.sg-&gdpr-consent=COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&prdaX=amount-product-1777564990&prdnX=name-product-1777564990&prdqX=quantity-product-1777564990&prdrX=ref-product-1777564990&profile=looker&ref=ref-estimate-1777564990&replay-rp=36%409c4e9e68abaa6615427f2c8a84c729a09bd0957eb0cd3d394debb1d7e1af9321&status=VALID&type=travel&uid=customer-1777564990&with-epm=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/replay.json?amount=45&disabled-pmcat=1-4&email=toto@test.com&eope=DEQwyRwgEN.SrivRogdtOvgJ_0VPIWY-&ereplay-aes=SDLKJLSKJDLKSJLDKJSLKJDLSKJDLKSJLKSJD--&ereplay-channels-default=1720886400%40gn%3Bc%3B3333&ereplay-ip=56.98.9.12&ereplay-mdevicetype=Desktop&ereplay-time=1777478590&etuix=0bCzPiMFnYoq26HIVu7IdBwRJMBs.sg-&gdpr-consent=COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&prdaX=amount-product-1777564990&prdnX=name-product-1777564990&prdqX=quantity-product-1777564990&prdrX=ref-product-1777564990&profile=looker&ref=ref-estimate-1777564990&replay-rp=36@9c4e9e68abaa6615427f2c8a84c729a09bd0957eb0cd3d394debb1d7e1af9321&status=VALID&type=travel&uid=customer-1777564990&with-epm=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/replay.json?amount=45&disabled-pmcat=1-4&email=toto@test.com&eope=DEQwyRwgEN.SrivRogdtOvgJ_0VPIWY-&ereplay-aes=SDLKJLSKJDLKSJLDKJSLKJDLSKJDLKSJLKSJD--&ereplay-channels-default=1720886400%40gn%3Bc%3B3333&ereplay-ip=56.98.9.12&ereplay-mdevicetype=Desktop&ereplay-time=1777478590&etuix=0bCzPiMFnYoq26HIVu7IdBwRJMBs.sg-&gdpr-consent=COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&prdaX=amount-product-1777564990&prdnX=name-product-1777564990&prdqX=quantity-product-1777564990&prdrX=ref-product-1777564990&profile=looker&ref=ref-estimate-1777564990&replay-rp=36@9c4e9e68abaa6615427f2c8a84c729a09bd0957eb0cd3d394debb1d7e1af9321&status=VALID&type=travel&uid=customer-1777564990&with-epm=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'amount=45&disabled-pmcat=1-4&email=toto%40test.com&eope=DEQwyRwgEN.SrivRogdtOvgJ_0VPIWY-&ereplay-aes=SDLKJLSKJDLKSJLDKJSLKJDLSKJDLKSJLKSJD--&ereplay-channels-default=1720886400%2540gn%253Bc%253B3333&ereplay-ip=56.98.9.12&ereplay-mdevicetype=Desktop&ereplay-time=1777478590&etuix=0bCzPiMFnYoq26HIVu7IdBwRJMBs.sg-&gdpr-consent=COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&prdaX=amount-product-1777564990&prdnX=name-product-1777564990&prdqX=quantity-product-1777564990&prdrX=ref-product-1777564990&profile=looker&ref=ref-estimate-1777564990&replay-rp=36%409c4e9e68abaa6615427f2c8a84c729a09bd0957eb0cd3d394debb1d7e1af9321&status=VALID&type=travel&uid=customer-1777564990&with-epm=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/replay.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/estimate/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.\n\nPlease check the following [section](#section/Introduction/Asynchronous-calls) for more information about the download process.",
            "operationId" : "searchDatamining:estimates",
            "parameters" : [
               {
                  "description" : "date from which the data is requested, format: MM/DD/YYYY",
                  "example" : "01/15/2018",
                  "in" : "query",
                  "name" : "date-from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date from which the data is requested, format: MM/DD/YYYY",
                  "example" : "01/29/2018",
                  "in" : "query",
                  "name" : "date-to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set this flag to 1 if you want the dates to be formatted according to a preset format, otherwise you will always have epoch format times.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "ea-enable-datefmt",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Column: attribution rule",
                  "example" : 1,
                  "in" : "query",
                  "name" : "view-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: conversion tracking",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-action",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: name of the internal promotion",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-blockpromo",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: browser",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-browser",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Eulerian identifier (EUID)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-buyerid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: CGI params",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-cgiparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Click ID",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-clickid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: total number of interactions",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-count",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: interaction date per channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-date",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: level of detail of the marketing channels",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-level",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: interaction device type",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-mdevicetype",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Data-Driven Score",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-mtascore",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: profile at the interaction",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-profile",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Interaction type (post-clic/post-impression/revisit)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-via",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: audience",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-cluster",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: conversion date (DD/MM/YYYY)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-dmy",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: conversion date (EPOCH)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date (HH:MM:SS)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-hms",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: email",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-email",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: list of events",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-estimateevent",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: pages seen in a session",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-estimatepage",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: list of products for this estimate",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-estimateproduct",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: estimates type",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-estimatetype",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: custom estimate type group",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-estimatetypecustom",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: external parameter",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-extparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: first channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-first-channel",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: delay between first & last marketing interaction (in seconds)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-firstlast-channel-lag",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: country",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-geoloc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: user-centric parameters",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-iduserparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: IP address",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-ip",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: ISP",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-isp",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: internal engine request",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-isrequest",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: language",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-lang",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: last channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-last-channel",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: last Android ID",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-last-rp-ea-android-adid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: last iOS IDFA",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-last-rp-ea-ios-idfa",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: type of device",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-mdevicetype",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 1",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup1",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 2",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup2",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 3",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup3",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 4",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup4",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 5",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup5",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OptIn status",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-optin",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: sales unique id",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-order",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: operating system",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-os",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: product group",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-productgroup",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: product parameters",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-productparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: real amount",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-realscartvalidamount",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: real margin",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-realscartvalidmargin",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: total amount before this estimate",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-rebuyer-prevamount",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: number of estimates done before this estimate",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-rebuyer-prevnb",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date of previous estimate",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-rebuyer-prevtm",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date of previous estimate (epoch)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-rebuyer-prevtm-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: margin",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-scartvalidmargin",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Shop",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-shop",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: CRM identifier (UID)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-userid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: attribution rule",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-viewestimate",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date of the visit",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-visitdate",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: length of the visit",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-visitlag",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: length of the visit (hh:mm:ss)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-visitlag-hms",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Datamining: estimates"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/search.json?date-from=01%2F15%2F2018&date-to=01%2F29%2F2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&view-id=1&with-action=1&with-blockpromo=1&with-browser=1&with-buyerid=1&with-cgiparam=1&with-channel-clickid=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-mdevicetype=1&with-channel-mtascore=1&with-channel-profile=1&with-channel-via=1&with-cluster=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-estimateevent=1&with-estimatepage=1&with-estimateproduct=1&with-estimatetype=1&with-estimatetypecustom=1&with-extparam=1&with-first-channel=1&with-firstlast-channel-lag=1&with-geoloc=1&with-iduserparam=1&with-ip=1&with-isp=1&with-isrequest=1&with-lang=1&with-last-channel=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-mdevicetype=1&with-omnichannelgroup1=1&with-omnichannelgroup2=1&with-omnichannelgroup3=1&with-omnichannelgroup4=1&with-omnichannelgroup5=1&with-optin=1&with-order=1&with-os=1&with-productgroup=1&with-productparam=1&with-realscartvalidamount=1&with-realscartvalidmargin=1&with-rebuyer-prevamount=1&with-rebuyer-prevnb=1&with-rebuyer-prevtm=1&with-rebuyer-prevtm-epoch=1&with-scartvalidmargin=1&with-shop=1&with-userid=1&with-viewestimate=1&with-visitdate=1&with-visitlag=1&with-visitlag-hms=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/search.json?date-from=01/15/2018&date-to=01/29/2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&view-id=1&with-action=1&with-blockpromo=1&with-browser=1&with-buyerid=1&with-cgiparam=1&with-channel-clickid=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-mdevicetype=1&with-channel-mtascore=1&with-channel-profile=1&with-channel-via=1&with-cluster=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-estimateevent=1&with-estimatepage=1&with-estimateproduct=1&with-estimatetype=1&with-estimatetypecustom=1&with-extparam=1&with-first-channel=1&with-firstlast-channel-lag=1&with-geoloc=1&with-iduserparam=1&with-ip=1&with-isp=1&with-isrequest=1&with-lang=1&with-last-channel=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-mdevicetype=1&with-omnichannelgroup1=1&with-omnichannelgroup2=1&with-omnichannelgroup3=1&with-omnichannelgroup4=1&with-omnichannelgroup5=1&with-optin=1&with-order=1&with-os=1&with-productgroup=1&with-productparam=1&with-realscartvalidamount=1&with-realscartvalidmargin=1&with-rebuyer-prevamount=1&with-rebuyer-prevnb=1&with-rebuyer-prevtm=1&with-rebuyer-prevtm-epoch=1&with-scartvalidmargin=1&with-shop=1&with-userid=1&with-viewestimate=1&with-visitdate=1&with-visitlag=1&with-visitlag-hms=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/search.json?date-from=01/15/2018&date-to=01/29/2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&view-id=1&with-action=1&with-blockpromo=1&with-browser=1&with-buyerid=1&with-cgiparam=1&with-channel-clickid=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-mdevicetype=1&with-channel-mtascore=1&with-channel-profile=1&with-channel-via=1&with-cluster=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-estimateevent=1&with-estimatepage=1&with-estimateproduct=1&with-estimatetype=1&with-estimatetypecustom=1&with-extparam=1&with-first-channel=1&with-firstlast-channel-lag=1&with-geoloc=1&with-iduserparam=1&with-ip=1&with-isp=1&with-isrequest=1&with-lang=1&with-last-channel=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-mdevicetype=1&with-omnichannelgroup1=1&with-omnichannelgroup2=1&with-omnichannelgroup3=1&with-omnichannelgroup4=1&with-omnichannelgroup5=1&with-optin=1&with-order=1&with-os=1&with-productgroup=1&with-productparam=1&with-realscartvalidamount=1&with-realscartvalidmargin=1&with-rebuyer-prevamount=1&with-rebuyer-prevnb=1&with-rebuyer-prevtm=1&with-rebuyer-prevtm-epoch=1&with-scartvalidmargin=1&with-shop=1&with-userid=1&with-viewestimate=1&with-visitdate=1&with-visitlag=1&with-visitlag-hms=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'date-from=01%2F15%2F2018&date-to=01%2F29%2F2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&view-id=1&with-action=1&with-blockpromo=1&with-browser=1&with-buyerid=1&with-cgiparam=1&with-channel-clickid=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-mdevicetype=1&with-channel-mtascore=1&with-channel-profile=1&with-channel-via=1&with-cluster=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-estimateevent=1&with-estimatepage=1&with-estimateproduct=1&with-estimatetype=1&with-estimatetypecustom=1&with-extparam=1&with-first-channel=1&with-firstlast-channel-lag=1&with-geoloc=1&with-iduserparam=1&with-ip=1&with-isp=1&with-isrequest=1&with-lang=1&with-last-channel=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-mdevicetype=1&with-omnichannelgroup1=1&with-omnichannelgroup2=1&with-omnichannelgroup3=1&with-omnichannelgroup4=1&with-omnichannelgroup5=1&with-optin=1&with-order=1&with-os=1&with-productgroup=1&with-productparam=1&with-realscartvalidamount=1&with-realscartvalidmargin=1&with-rebuyer-prevamount=1&with-rebuyer-prevnb=1&with-rebuyer-prevtm=1&with-rebuyer-prevtm-epoch=1&with-scartvalidmargin=1&with-shop=1&with-userid=1&with-viewestimate=1&with-visitdate=1&with-visitlag=1&with-visitlag-hms=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/estimate/status.json" : {
         "get" : {
            "description" : "When sending a `search` request, you can check the generation status of the report by querying this method.",
            "operationId" : "statusDatamining:estimates",
            "parameters" : [
               {
                  "description" : "id of the jobrun generating the report as provided by the `search` query",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_status"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "INPROGRESS"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get the generation status.",
            "tags" : [
               "Datamining: estimates"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/status.json?jobrun-id=1777564990\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/status.json?jobrun-id=1777564990',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/status.json?jobrun-id=1777564990');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564990'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/estimate/valid.json" : {
         "post" : {
            "description" : "This query will validate a estimate.  After triggering the collector call to upload a estimate, it will be only available after 5 minutes (300 seconds).  If you want to cancel a estimate immediately after its creation, you must add the parameter `ea-apiasync=400`.\n\n> The partial validation of an estimate must be done reference by reference. It is not possible to modify the amount of several estimates in only one query.",
            "operationId" : "validDatamining:estimates",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "estimate reference to validate.",
                  "example" : "ref-estimate-1777564990",
                  "in" : "query",
                  "name" : "estimate-ref",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "number of seconds before executing the request.",
                  "example" : 350,
                  "in" : "query",
                  "name" : "ea-apiasync",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "for a given estimate reference, you can validate a partial amount value.",
                  "example" : 45,
                  "in" : "query",
                  "name" : "estimate-newamount",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Validate an estimate.",
            "tags" : [
               "Datamining: estimates"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"ea-apiasync=350&estimate-newamount=45&estimate-ref=ref-estimate-1777564990\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/valid.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'ea-apiasync' => '350',\n'estimate-newamount' => '45',\n'estimate-ref' => 'ref-estimate-1777564990'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/valid.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/estimate/valid.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('ea-apiasync=350&estimate-newamount=45&estimate-ref=ref-estimate-1777564990');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'ea-apiasync' : '350',\n'estimate-newamount' : '45',\n'estimate-ref' : 'ref-estimate-1777564990'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/isenginerequest/download.json" : {
         "get" : {
            "description" : "Once the report is available (COMPLETED) you can download the data by querying this method.\n\nThe following fields are returned depending on the request parameters :\n<table>\n <tr><td>Field</td><td>Header</td><td>Format</td><td>Availability</td></tr>\n <tr><td>isenginerequest_id</td><td>EA internal ID</td><td>Unsigned int</td><td>Always</td></tr>\n <tr><td>isenginerequest_date</td><td>Sale date</td><td>Epoch UNIX</td><td>Always</td></tr>\n <tr><td>isenginerequest_result</td><td>Number of search results</td><td>Unsigned int</td><td>Always</td></tr>\n <tr><td>email_id</td><td>Email address</td><td>Text</td><td>with-email=1</td></tr>\n <tr><td>channel_lvlX_P0</td><td>Field P0 of the channel at level X</td><td>Text</td><td>with-channel=1</td></tr>\n <tr><td>channel_lvlX_P1</td><td>Field P1 of the channel at level X</td><td>Text</td><td>with-channel=1</td></tr>\n <tr><td>channel_lvlX_P2</td><td>Field P2 of the channel at level X</td><td>Text</td><td>with-channel=1</td></tr>\n <tr><td>channel_lvlX_P3</td><td>Field P3 of the channel at level X</td><td>Text</td><td>with-channel=1</td></tr>\n <tr><td>channel_lvlX_P4</td><td>Field P4 of the channel at level X</td><td>Text</td><td>with-channel=1</td></tr>\n <tr><td>isengineparam_$ID: $ID being the internal ID of the search engine parameter</td><td>Search parameter</td><td>Text</td><td>Always</td></tr>\n <tr><td>order_ref</td><td>Sale Reference</td><td>Text</td><td>with-order=1</td></tr>\n <tr><td>ordertype_key</td><td>Sale Type Key</td><td>Text</td><td>with-order-type=1</td></tr>\n <tr><td>order_scartvalidamount</td><td>Sale Amount</td><td>Float</td><td>with-order-amount=1</td></tr>\n <tr><td>estimate_ref</td><td>Estimate Reference</td><td>Text</td><td>with-estimate=1</td></tr>\n <tr><td>scart_id</td><td>Shopping Cart Id</td><td>Integer</td><td>with-scart=1</td></tr>\n</table>\n",
            "operationId" : "downloadDatamining:internalsearchenginerequest",
            "parameters" : [
               {
                  "description" : "id of the jobrun generating the report as provided by the `search` query",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If set to 1, the output will be formatted as a CSV file.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "output-as-csv",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If set to 1, the output will be formatted as an array of key/value fields.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "output-as-kv",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "isenginerequest_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "ID-TPOPEDATACLICK-1777564990"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Download the report",
            "tags" : [
               "Datamining: internal searchengine request"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/isenginerequest/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/isenginerequest/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/isenginerequest/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564990&output-as-csv=1&output-as-kv=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/isenginerequest/download.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/isenginerequest/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.\n\nPlease check the following [section](#section/Introduction/Asynchronous-calls) for more information about the download process.",
            "operationId" : "searchDatamining:internalsearchenginerequest",
            "parameters" : [
               {
                  "description" : "date from which the data is requested, format: MM/DD/YYYY",
                  "example" : "01/15/2018",
                  "in" : "query",
                  "name" : "date-from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date from which the data is requested, format: MM/DD/YYYY",
                  "example" : "01/29/2018",
                  "in" : "query",
                  "name" : "date-to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set this flag to 1 if you want the dates to be formatted according to a preset format, otherwise you will always have epoch format times.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "ea-enable-datefmt",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the internal search engine.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "isengine-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Column: channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: month/day/year format",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-dmy",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date in EPOCH format",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: hour/minute/second format",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-hms",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: device",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-device",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: email",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-email",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: linked estimate",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-estimate",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: linked sale",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-order",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: shopping cart",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-scart",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Datamining: internal searchengine request"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/isenginerequest/search.json?date-from=01%2F15%2F2018&date-to=01%2F29%2F2018&dir=DESC&ea-enable-datefmt=1&isengine-id=1777564990&limit=25&start=0&with-channel=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-device=1&with-email=1&with-estimate=1&with-order=1&with-scart=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/isenginerequest/search.json?date-from=01/15/2018&date-to=01/29/2018&dir=DESC&ea-enable-datefmt=1&isengine-id=1777564990&limit=25&start=0&with-channel=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-device=1&with-email=1&with-estimate=1&with-order=1&with-scart=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/isenginerequest/search.json?date-from=01/15/2018&date-to=01/29/2018&dir=DESC&ea-enable-datefmt=1&isengine-id=1777564990&limit=25&start=0&with-channel=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-device=1&with-email=1&with-estimate=1&with-order=1&with-scart=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'date-from=01%2F15%2F2018&date-to=01%2F29%2F2018&dir=DESC&ea-enable-datefmt=1&isengine-id=1777564990&limit=25&start=0&with-channel=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-device=1&with-email=1&with-estimate=1&with-order=1&with-scart=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/isenginerequest/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/isenginerequest/status.json" : {
         "get" : {
            "description" : "When sending a `search` request, you can check the generation status of the report by querying this method.",
            "operationId" : "statusDatamining:internalsearchenginerequest",
            "parameters" : [
               {
                  "description" : "id of the jobrun generating the report as provided by the `search` query",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_status"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "INPROGRESS"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get the generation status.",
            "tags" : [
               "Datamining: internal searchengine request"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/isenginerequest/status.json?jobrun-id=1777564990\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/isenginerequest/status.json?jobrun-id=1777564990',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/isenginerequest/status.json?jobrun-id=1777564990');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564990'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/isenginerequest/status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/order/cancel.json" : {
         "post" : {
            "description" : "This query will cancel a sale.  After triggering the collector call to upload a sale, it will be only available after 5 minutes (300 seconds).  If you want to cancel a sale immediately after its creation, you must add the parameter `ea-apiasync=400`.",
            "operationId" : "cancelDatamining:sales",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "order reference to cancel.",
                  "example" : "ref-order-1777564990",
                  "in" : "query",
                  "name" : "order-ref",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "number of seconds before executing the request.",
                  "example" : 350,
                  "in" : "query",
                  "name" : "ea-apiasync",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Cancel a sale.",
            "tags" : [
               "Datamining: sales"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"ea-apiasync=350&order-ref=ref-order-1777564990\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/cancel.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'ea-apiasync' => '350',\n'order-ref' => 'ref-order-1777564990'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/cancel.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/cancel.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('ea-apiasync=350&order-ref=ref-order-1777564990');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'ea-apiasync' : '350',\n'order-ref' : 'ref-order-1777564990'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/order/download.json" : {
         "get" : {
            "description" : "Once the report is available (COMPLETED) you can download the data by querying this method.\n\nThe following fields are returned depending on the request parameters :\n<table>\n <tr><td>Field</td><td>Header</td><td>Format</td><td>Availability</td></tr>\n <tr><td>order_id</td><td>EA internal ID</td><td>Unsigned int</td><td>Always</td></tr>\n <tr><td>order_ref</td><td>Sale reference</td><td>Text</td><td>Always</td></tr>\n <tr><td>order_date</td><td>Sale date</td><td>Epoch UNIX</td><td>Always</td></tr>\n <tr><td>order_status</td><td>Status of the sale</td><td>PENDING/VALID/INVALID</td><td>Always</td></tr>\n <tr><td>order_scartvalidamount</td><td>Sale amount</td><td>Number</td><td>Always</td></tr>\n <tr><td>email_id</td><td>Email address</td><td>Text</td><td>with-email=1</td></tr>\n <tr><td>order_extparam</td><td>External parameter</td><td>Text</td><td>with-extparam=1</td></tr>\n <tr><td>order_ip</td><td>IP address</td><td>Text</td><td>with-ip=1</td></tr>\n <tr><td>order_optin</td><td>Optin Status</td><td>Text</td><td>with-optin=1</td></tr>\n <tr><td>ordertype_key</td><td>Type of sale</td><td>Text</td><td>with-ordertype=1</td></tr>\n <tr><td>orderpayment_key</td><td>Type of payment</td><td>Text</td><td>with-orderpayment=1</td></tr>\n <tr><td>geoloc_name</td><td>Country</td><td>Coded on 2 ISO-3166-1 characters</td><td>with-geoloc=1</td></tr>\n <tr><td>browser_name</td><td>Browser</td><td>Text</td><td>with-browser=1</td></tr>\n <tr><td>lang_name</td><td>Browser language</td><td>Coded on 2 ISO-3166-1 characters</td><td>with-lang=1</td></tr>\n <tr><td>os_name</td><td>Operating system</td><td>Text</td><td>with-os=1</td></tr>\n <tr><td>isp_name</td><td>Internet access provider</td><td>Text</td><td>with-isp=1</td></tr>\n <tr><td>action_name</td><td>Name of the last validated conversion tracking</td><td>Text</td><td>with-action=1</td></tr>\n <tr><td>blockpromo_name</td><td>Name of the last clicked auto promotion</td><td>Text</td><td>with-blockpromo=1</td></tr>\n <tr><td>cgiparam_$ID : $ID being the custom parameter internal ID</td><td>Custom parameter</td><td>Text</td><td>with-cgiparam=1</td></tr>\n <tr><td>a_channel_sz</td><td>Total number of channels in the marketing history</td><td>Total</td><td>with-channel-count=1&with-channel-level=1</td></tr>\n <tr><td>channel_lvlX_P0</td><td>Field P0 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=1</td></tr>\n <tr><td>channel_lvlX_P1</td><td>Field P1 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=2</td></tr>\n <tr><td>channel_lvlX_P2</td><td>Field P2 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=3</td></tr>\n <tr><td>channel_lvlX_P3</td><td>Field P3 to P4 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=5</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P4 to P6 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=7</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P7 to P8 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=9</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P8 to P13 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=14</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P13 to P17 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=18</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P17 to P20 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=21</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P21 to P28 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=28</td></tr>\n <tr><td>channel_lvlX_via</td><td>Type of interaction at X level for the channel: C: post-click/V: post-impression/R: out of session/Empty: none</td><td>Text</td><td>with-channel-level=1&with-channel-via=1</td></tr>\n <tr><td>channel_lvlX_date</td><td>Date from the interaction with the channel on X level</td><td>Epoch UNIX</td><td>with-channel-level=1&with-channel-date=1</td></tr>\n <tr><td>channel_lvlX_clickid</td><td>Click ID at X level for the channel</td><td>Text</td><td>with-channel-level=1&with-channel-clickid=1</td></tr>\n <tr><td>viewchannel_P0</td><td>Field P0 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P1</td><td>Field P1 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=2&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P2</td><td>Field P2 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=3&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P3</td><td>Field P3 to P4 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=5&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P4 to P6 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=7&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P7 to P8 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=9&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P8 to P13 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=14&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P13 to P17 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=18&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P17 to P20 of the channel on for provided view-id</td><td>Text</td><td>max-channel-info=21&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P21 to P28 of the channel on for provided view-id</td><td>Text</td><td>max-channel-info=28&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_via</td><td>Type of interaction for the channel for provided view-id: C: post-click/V: post-impression/R: out of session/Empty: none</td><td>Text</td><td>with-channel-via=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_date</td><td>Date from the interaction with the channel on X level</td><td>Epoch UNIX</td><td>with-channel-date=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_clickid</td><td>Click ID for the channel for provided view-id</td><td>Text</td><td>with-channel-clickid=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_mtascore</td><td>Data Driven score  for the channel for provided view-id</td><td>Text</td><td>with-channel-mtascore=1&view-id=ID_VIEW</td></tr>\n <tr><td>a_orderpage_sz</td><td>Number of pages associated with the sale</td><td>Total</td><td>with-orderpage=1</td></tr>\n <tr><td>orderpage_name_X: X being the page index</td><td>Name of the page</td><td>Text</td><td>with-orderpage=1</td></tr>\n <tr><td>a_orderproduct_sz</td><td>Number of products associated with the sale</td><td>Total</td><td>with-orderproduct=1</td></tr>\n <tr><td>orderproduct_ref_X : X being the index of the product</td><td>Product reference</td><td>Text</td><td>with-orderproduct=1</td></tr>\n <tr><td>orderproduct_name_X : X being the index of the product</td><td>Product name</td><td>Text</td><td>with-orderproduct=1</td></tr>\n <tr><td>orderproduct_quantity_X: X being the index of the product</td><td>Quantity of product sold</td><td>Total</td><td>with-orderproduct=1</td></tr>\n <tr><td>orderproduct_sellprice_X : X being the index of the product</td><td>Unitary sell price</td><td>Number</td><td>with-orderproduct=1</td></tr>\n <tr><td>shop_key</td><td>Shop key</td><td>Text</td><td>with-shop=1</td></tr>\n <tr><td>shop_desc</td><td>Shop description</td><td>Text</td><td>with-shop=1</td></tr>\n</table>\n<br /><br />\nBy providing **max-level-mtascore** you will get with **view-id** and **with-channel-mtascore** the number of touches requested for a MTA model. For example if you ask 3 you will have the last 3 touches, if you want all of them you need to set it to the maximum number of touches configured for your site. Otherwise only the last entry will be provided.\n",
            "operationId" : "downloadDatamining:sales",
            "parameters" : [
               {
                  "description" : "id of the jobrun generating the report as provided by the `search` query",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If set to 1, the output will be formatted as a CSV file.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "output-as-csv",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If set to 1, the output will be formatted as an array of key/value fields.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "output-as-kv",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "order_ref"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "REF-ORDER-1777564990"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Download the report",
            "tags" : [
               "Datamining: sales"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564990&output-as-csv=1&output-as-kv=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/download.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/order/get.json" : {
         "get" : {
            "description" : "This query will return a specific sale.\n\nThe following fields are returned depending on the request parameters :\n<table>\n <tr><td>Field</td><td>Header</td><td>Format</td><td>Availability</td></tr>\n <tr><td>order_id</td><td>EA internal ID</td><td>Unsigned int</td><td>Always</td></tr>\n <tr><td>order_ref</td><td>Sale reference</td><td>Text</td><td>Always</td></tr>\n <tr><td>order_date</td><td>Sale date</td><td>Epoch UNIX</td><td>Always</td></tr>\n <tr><td>order_status</td><td>Status of the sale</td><td>PENDING/VALID/INVALID</td><td>Always</td></tr>\n <tr><td>order_scartvalidamount</td><td>Sale amount</td><td>Number</td><td>Always</td></tr>\n <tr><td>email_id</td><td>Email address</td><td>Text</td><td>with-email=1</td></tr>\n <tr><td>order_extparam</td><td>External parameter</td><td>Text</td><td>with-extparam=1</td></tr>\n <tr><td>order_ip</td><td>IP address</td><td>Text</td><td>with-ip=1</td></tr>\n <tr><td>order_optin</td><td>Optin Status</td><td>Text</td><td>with-optin=1</td></tr>\n <tr><td>ordertype_key</td><td>Type of sale</td><td>Text</td><td>with-ordertype=1</td></tr>\n <tr><td>orderpayment_key</td><td>Type of payment</td><td>Text</td><td>with-orderpayment=1</td></tr>\n <tr><td>geoloc_name</td><td>Country</td><td>Coded on 2 ISO-3166-1 characters</td><td>with-geoloc=1</td></tr>\n <tr><td>browser_name</td><td>Browser</td><td>Text</td><td>with-browser=1</td></tr>\n <tr><td>lang_name</td><td>Browser language</td><td>Coded on 2 ISO-3166-1 characters</td><td>with-lang=1</td></tr>\n <tr><td>os_name</td><td>Operating system</td><td>Text</td><td>with-os=1</td></tr>\n <tr><td>isp_name</td><td>Internet access provider</td><td>Text</td><td>with-isp=1</td></tr>\n <tr><td>action_name</td><td>Name of the last validated conversion tracking</td><td>Text</td><td>with-action=1</td></tr>\n <tr><td>blockpromo_name</td><td>Name of the last clicked auto promotion</td><td>Text</td><td>with-blockpromo=1</td></tr>\n <tr><td>cgiparam_$ID : $ID being the custom parameter internal ID</td><td>Custom parameter</td><td>Text</td><td>with-cgiparam=1</td></tr>\n <tr><td>a_channel_sz</td><td>Total number of channels in the marketing history</td><td>Total</td><td>with-channel-count=1&with-channel-level=1</td></tr>\n <tr><td>channel_lvlX_P0</td><td>Field P0 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=1</td></tr>\n <tr><td>channel_lvlX_P1</td><td>Field P1 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=2</td></tr>\n <tr><td>channel_lvlX_P2</td><td>Field P2 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=3</td></tr>\n <tr><td>channel_lvlX_P3</td><td>Field P3 to P4 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=5</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P4 to P6 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=7</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P7 to P8 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=9</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P8 to P13 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=14</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P13 to P17 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=18</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P17 to P20 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=21</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P21 to P28 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=28</td></tr>\n <tr><td>channel_lvlX_via</td><td>Type of interaction at X level for the channel: C: post-click/V: post-impression/R: out of session/Empty: none</td><td>Text</td><td>with-channel-level=1&with-channel-via=1</td></tr>\n <tr><td>channel_lvlX_date</td><td>Date from the interaction with the channel on X level</td><td>Epoch UNIX</td><td>with-channel-level=1&with-channel-date=1</td></tr>\n <tr><td>channel_lvlX_clickid</td><td>Click ID at X level for the channel</td><td>Text</td><td>with-channel-level=1&with-channel-clickid=1</td></tr>\n <tr><td>viewchannel_P0</td><td>Field P0 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P1</td><td>Field P1 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=2&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P2</td><td>Field P2 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=3&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P3</td><td>Field P3 to P4 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=5&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P4 to P6 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=7&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P7 to P8 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=9&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P8 to P13 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=14&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P13 to P17 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=18&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P17 to P20 of the channel on for provided view-id</td><td>Text</td><td>max-channel-info=21&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P21 to P28 of the channel on for provided view-id</td><td>Text</td><td>max-channel-info=28&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_via</td><td>Type of interaction for the channel for provided view-id: C: post-click/V: post-impression/R: out of session/Empty: none</td><td>Text</td><td>with-channel-via=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_date</td><td>Date from the interaction with the channel on X level</td><td>Epoch UNIX</td><td>with-channel-date=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_clickid</td><td>Click ID for the channel for provided view-id</td><td>Text</td><td>with-channel-clickid=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_mtascore</td><td>Data Driven score  for the channel for provided view-id</td><td>Text</td><td>with-channel-mtascore=1&view-id=ID_VIEW</td></tr>\n <tr><td>a_orderpage_sz</td><td>Number of pages associated with the sale</td><td>Total</td><td>with-orderpage=1</td></tr>\n <tr><td>orderpage_name_X: X being the page index</td><td>Name of the page</td><td>Text</td><td>with-orderpage=1</td></tr>\n <tr><td>a_orderproduct_sz</td><td>Number of products associated with the sale</td><td>Total</td><td>with-orderproduct=1</td></tr>\n <tr><td>orderproduct_ref_X : X being the index of the product</td><td>Product reference</td><td>Text</td><td>with-orderproduct=1</td></tr>\n <tr><td>orderproduct_name_X : X being the index of the product</td><td>Product name</td><td>Text</td><td>with-orderproduct=1</td></tr>\n <tr><td>orderproduct_quantity_X: X being the index of the product</td><td>Quantity of product sold</td><td>Total</td><td>with-orderproduct=1</td></tr>\n <tr><td>orderproduct_sellprice_X : X being the index of the product</td><td>Unitary sell price</td><td>Number</td><td>with-orderproduct=1</td></tr>\n <tr><td>shop_key</td><td>Shop key</td><td>Text</td><td>with-shop=1</td></tr>\n <tr><td>shop_desc</td><td>Shop description</td><td>Text</td><td>with-shop=1</td></tr>\n</table>\n<br /><br />\nBy providing **max-level-mtascore** you will get with **view-id** and **with-channel-mtascore** the number of touches requested for a MTA model. For example if you ask 3 you will have the last 3 touches, if you want all of them you need to set it to the maximum number of touches configured for your site. Otherwise only the last entry will be provided.\n",
            "operationId" : "getDatamining:sales",
            "parameters" : [
               {
                  "description" : "order reference",
                  "example" : "ref-order-1777564990",
                  "in" : "query",
                  "name" : "order-ref",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: attribution rule",
                  "example" : 1,
                  "in" : "query",
                  "name" : "view-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: conversion tracking",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-action",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: name of the internal promotion",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-blockpromo",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: browser",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-browser",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Eulerian identifier (EUID)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-buyerid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: CGI params",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-cgiparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Click ID",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-clickid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: total number of interactions",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-count",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: interaction date per channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-date",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: channel history",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-level",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: interaction device type",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-mdevicetype",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Data-Driven Score",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-mtascore",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: profile at the interaction",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-profile",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Interaction type (post-clic/post-impression/revisit)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-via",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: audience",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-cluster",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: conversion date (DD/MM/YYYY)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-dmy",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: conversion date (EPOCH)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date (HH:MM:SS)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-hms",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: email",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-email",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: number of estimates",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-estimateorder",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: external parameter",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-extparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: first channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-first-channel",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: delay between first & last marketing interaction (in seconds)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-firstlast-channel-lag",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: country",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-geoloc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: user-centric parameters",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-iduserparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: IP address",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-ip",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: ISP",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-isp",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: internal engine request",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-isrequest",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: language",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-lang",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: last channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-last-channel",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: last Android ID",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-last-rp-ea-android-adid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: last iOS IDFA",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-last-rp-ea-ios-idfa",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: type of device",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-mdevicetype",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 1",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup1",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 2",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup2",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 3",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup3",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 4",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup4",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 5",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup5",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OptIn status",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-optin",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: list of events",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-orderevent",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: pages seen in a session",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-orderpage",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: page URL",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-orderpageurl",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: type of payment",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-orderpayment",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: list of products for this sale",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-orderproduct",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: sales type",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-ordertype",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Order type group",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-ordertypecustom",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: operating system",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-os",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: product group",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-productgroup",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: product parameters",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-productparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: real amount",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-realscartvalidamount",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: real margin",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-realscartvalidmargin",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: previous total revenue amount",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-rebuyer-prevamount",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: previous number of sales",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-rebuyer-prevnb",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date of the previous sale",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-rebuyer-prevtm",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date of the previous sale (epoch)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-rebuyer-prevtm-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date of initiated shopping cart",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-scartdate",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: margin",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-scartvalidmargin",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Shop",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-shop",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: total number of merchandiser touchpoints",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-tpchannel-count",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: interaction date by merchandiser touchpoint",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-tpchannel-date",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: merchandiser touchpoints detail level",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-tpchannel-level",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: CRM identifier (UID)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-userid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date of the visit",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-visitdate",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: length of the visit",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-visitlag",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: length of the visit (hh:mm:ss)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-visitlag-hms",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get a sale.",
            "tags" : [
               "Datamining: sales"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/get.json?order-ref=ref-order-1777564990&view-id=1&with-action=1&with-blockpromo=1&with-browser=1&with-buyerid=1&with-cgiparam=1&with-channel-clickid=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-mdevicetype=1&with-channel-mtascore=1&with-channel-profile=1&with-channel-via=1&with-cluster=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-estimateorder=1&with-extparam=1&with-first-channel=1&with-firstlast-channel-lag=1&with-geoloc=1&with-iduserparam=1&with-ip=1&with-isp=1&with-isrequest=1&with-lang=1&with-last-channel=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-mdevicetype=1&with-omnichannelgroup1=1&with-omnichannelgroup2=1&with-omnichannelgroup3=1&with-omnichannelgroup4=1&with-omnichannelgroup5=1&with-optin=1&with-orderevent=1&with-orderpage=1&with-orderpageurl=1&with-orderpayment=1&with-orderproduct=1&with-ordertype=1&with-ordertypecustom=1&with-os=1&with-productgroup=1&with-productparam=1&with-realscartvalidamount=1&with-realscartvalidmargin=1&with-rebuyer-prevamount=1&with-rebuyer-prevnb=1&with-rebuyer-prevtm=1&with-rebuyer-prevtm-epoch=1&with-scartdate=1&with-scartvalidmargin=1&with-shop=1&with-tpchannel-count=1&with-tpchannel-date=1&with-tpchannel-level=1&with-userid=1&with-visitdate=1&with-visitlag=1&with-visitlag-hms=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/get.json?order-ref=ref-order-1777564990&view-id=1&with-action=1&with-blockpromo=1&with-browser=1&with-buyerid=1&with-cgiparam=1&with-channel-clickid=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-mdevicetype=1&with-channel-mtascore=1&with-channel-profile=1&with-channel-via=1&with-cluster=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-estimateorder=1&with-extparam=1&with-first-channel=1&with-firstlast-channel-lag=1&with-geoloc=1&with-iduserparam=1&with-ip=1&with-isp=1&with-isrequest=1&with-lang=1&with-last-channel=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-mdevicetype=1&with-omnichannelgroup1=1&with-omnichannelgroup2=1&with-omnichannelgroup3=1&with-omnichannelgroup4=1&with-omnichannelgroup5=1&with-optin=1&with-orderevent=1&with-orderpage=1&with-orderpageurl=1&with-orderpayment=1&with-orderproduct=1&with-ordertype=1&with-ordertypecustom=1&with-os=1&with-productgroup=1&with-productparam=1&with-realscartvalidamount=1&with-realscartvalidmargin=1&with-rebuyer-prevamount=1&with-rebuyer-prevnb=1&with-rebuyer-prevtm=1&with-rebuyer-prevtm-epoch=1&with-scartdate=1&with-scartvalidmargin=1&with-shop=1&with-tpchannel-count=1&with-tpchannel-date=1&with-tpchannel-level=1&with-userid=1&with-visitdate=1&with-visitlag=1&with-visitlag-hms=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/get.json?order-ref=ref-order-1777564990&view-id=1&with-action=1&with-blockpromo=1&with-browser=1&with-buyerid=1&with-cgiparam=1&with-channel-clickid=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-mdevicetype=1&with-channel-mtascore=1&with-channel-profile=1&with-channel-via=1&with-cluster=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-estimateorder=1&with-extparam=1&with-first-channel=1&with-firstlast-channel-lag=1&with-geoloc=1&with-iduserparam=1&with-ip=1&with-isp=1&with-isrequest=1&with-lang=1&with-last-channel=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-mdevicetype=1&with-omnichannelgroup1=1&with-omnichannelgroup2=1&with-omnichannelgroup3=1&with-omnichannelgroup4=1&with-omnichannelgroup5=1&with-optin=1&with-orderevent=1&with-orderpage=1&with-orderpageurl=1&with-orderpayment=1&with-orderproduct=1&with-ordertype=1&with-ordertypecustom=1&with-os=1&with-productgroup=1&with-productparam=1&with-realscartvalidamount=1&with-realscartvalidmargin=1&with-rebuyer-prevamount=1&with-rebuyer-prevnb=1&with-rebuyer-prevtm=1&with-rebuyer-prevtm-epoch=1&with-scartdate=1&with-scartvalidmargin=1&with-shop=1&with-tpchannel-count=1&with-tpchannel-date=1&with-tpchannel-level=1&with-userid=1&with-visitdate=1&with-visitlag=1&with-visitlag-hms=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'order-ref=ref-order-1777564990&view-id=1&with-action=1&with-blockpromo=1&with-browser=1&with-buyerid=1&with-cgiparam=1&with-channel-clickid=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-mdevicetype=1&with-channel-mtascore=1&with-channel-profile=1&with-channel-via=1&with-cluster=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-estimateorder=1&with-extparam=1&with-first-channel=1&with-firstlast-channel-lag=1&with-geoloc=1&with-iduserparam=1&with-ip=1&with-isp=1&with-isrequest=1&with-lang=1&with-last-channel=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-mdevicetype=1&with-omnichannelgroup1=1&with-omnichannelgroup2=1&with-omnichannelgroup3=1&with-omnichannelgroup4=1&with-omnichannelgroup5=1&with-optin=1&with-orderevent=1&with-orderpage=1&with-orderpageurl=1&with-orderpayment=1&with-orderproduct=1&with-ordertype=1&with-ordertypecustom=1&with-os=1&with-productgroup=1&with-productparam=1&with-realscartvalidamount=1&with-realscartvalidmargin=1&with-rebuyer-prevamount=1&with-rebuyer-prevnb=1&with-rebuyer-prevtm=1&with-rebuyer-prevtm-epoch=1&with-scartdate=1&with-scartvalidmargin=1&with-shop=1&with-tpchannel-count=1&with-tpchannel-date=1&with-tpchannel-level=1&with-userid=1&with-visitdate=1&with-visitlag=1&with-visitlag-hms=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/get.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/order/replay.json" : {
         "get" : {
            "description" : "This query allows for replaying a sale which occured in the past.If you want to provide [CRM parameters](#tag/CRM-Parameters), [profile](#tag/Profile) information and/or [custom parameters](#tag/Custom-Parameters), you only need to provide them as additionnal parameters & as long as they are declared in the current site, they will be injected alongside the sale. You only have to add them on the API call, for example if you have `gender` as a CRM Parameter & `M` as a value, you just have to add `gender=M` to the list of existing parameters.",
            "operationId" : "replayDatamining:sales",
            "parameters" : [
               {
                  "description" : "the amount of the sale, the decimals numbers must be separated by a point (.) as in this example: 10.68.",
                  "example" : 45,
                  "in" : "query",
                  "name" : "amount",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If you have a slave CMP configured in Category mode, you can provide the list of category ids that are disabled. You can provide as a value `-` if all categories are accepted.",
                  "example" : "1-4",
                  "in" : "query",
                  "name" : "disabled-pmcat",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the user email address",
                  "example" : "toto@test.com",
                  "in" : "query",
                  "name" : "email",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If you want to add a marketing touch to the marketing history you can provide the AES code of the targeted campaign. It will supersede `ereplay-channels-XXX` parameters.",
                  "example" : "DEQwyRwgEN.SrivRogdtOvgJ_0VPIWY-",
                  "in" : "query",
                  "name" : "eope",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "example" : "SDLKJLSKJDLKSJLDKJSLKJDLSKJDLKSJLKSJD--",
                  "in" : "query",
                  "name" : "ereplay-aes",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "create a channel if current history is empty. The value generic-channel-replay will create a generic campaign but if you want a specific value you have to specifiy the following format URL encoded : timestamp . @ . media  . ; . type  . ; . opedata.id ",
                  "example" : "1720886400%40gn%3Bc%3B3333 OR generic-channel-replay",
                  "in" : "query",
                  "name" : "ereplay-channels-default",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "example" : "56.98.9.12",
                  "in" : "query",
                  "name" : "ereplay-ip",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "allows you to force the type of device (example: Desktop, Phone, Tablet, TV, AndroidNativeApp, iOSNativeApp).",
                  "example" : "Desktop",
                  "in" : "query",
                  "name" : "ereplay-mdevicetype",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date of the sale in Epoch UNIX format",
                  "example" : 1777478590,
                  "in" : "query",
                  "name" : "ereplay-time",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : 0,
                  "description" : "This parameter allows you to link an estimate to the replay order.",
                  "example" : "my-estimate-4561",
                  "in" : "query",
                  "name" : "estimateref",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Encrypted Eulerian Cookie on which you want to link the data, it is exclusive you cannot have multiple ids.",
                  "example" : "0bCzPiMFnYoq26HIVu7IdBwRJMBs.sg-",
                  "in" : "query",
                  "name" : "etuix",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If you have a slave CMP configured in TCF mode, you can provide the TCString you want to apply on the current call.",
                  "example" : "COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw",
                  "in" : "query",
                  "name" : "gdpr-consent",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "indicate the margin for the current sale.",
                  "example" : 100,
                  "in" : "query",
                  "name" : "margin",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "type of payment of the sale",
                  "example" : "creditcard",
                  "in" : "query",
                  "name" : "payment",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "product amount for product at index 0",
                  "example" : "amount-product-1777564990",
                  "in" : "query",
                  "name" : "prdaX",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "product name for product at index 0",
                  "example" : "name-product-1777564990",
                  "in" : "query",
                  "name" : "prdnX",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "product quantity for product at index 0",
                  "example" : "quantity-product-1777564990",
                  "in" : "query",
                  "name" : "prdqX",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "product reference for product at index 0",
                  "example" : "ref-product-1777564990",
                  "in" : "query",
                  "name" : "prdrX",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the profile you want to assign the user to, the profile MUST already exist in the targeted website.",
                  "example" : "looker",
                  "in" : "query",
                  "name" : "profile",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "order reference to replay",
                  "example" : "ref-order-1777564990",
                  "in" : "query",
                  "name" : "ref",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "To target a hashed email as a pivot id, you must make sure that the rpemail_encoding & rpemail_key are configured in your website options (check with Support), then you need to provide the email properly encoded to target it properly.",
                  "example" : "36@9c4e9e68abaa6615427f2c8a84c729a09bd0957eb0cd3d394debb1d7e1af9321",
                  "in" : "query",
                  "name" : "replay-rp",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "status of the sale: VALID if the sale is already validated, INVALID if it is canceled. By default, the status will be PENDING (on standby).",
                  "example" : "VALID",
                  "in" : "query",
                  "name" : "status",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "type of the sale",
                  "example" : "travel",
                  "in" : "query",
                  "name" : "type",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the user unique internal ID, this is the parameter that is linked to a user if you want to reconcile on-line channels to offline events.",
                  "example" : "customer-1777564990",
                  "in" : "query",
                  "name" : "uid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "default" : 0,
                  "description" : "This flag allows you to control if the CMP is enabled or not. Be default it is set to 0 meaning that no CMP controls are in place, the sale will be injected. If you want to apply settings from the CMP you have configured, you can set it to 1 and if you have minimal collect configured it will be processed according to the defined rules.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-epm",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Replay a sale.",
            "tags" : [
               "Datamining: sales"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/replay.json?amount=45&disabled-pmcat=1-4&email=toto%40test.com&eope=DEQwyRwgEN.SrivRogdtOvgJ_0VPIWY-&ereplay-aes=SDLKJLSKJDLKSJLDKJSLKJDLSKJDLKSJLKSJD--&ereplay-channels-default=1720886400%2540gn%253Bc%253B3333%20OR%20generic-channel-replay&ereplay-ip=56.98.9.12&ereplay-mdevicetype=Desktop&ereplay-time=1777478590&estimateref=my-estimate-4561&etuix=0bCzPiMFnYoq26HIVu7IdBwRJMBs.sg-&gdpr-consent=COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&margin=100&payment=creditcard&prdaX=amount-product-1777564990&prdnX=name-product-1777564990&prdqX=quantity-product-1777564990&prdrX=ref-product-1777564990&profile=looker&ref=ref-order-1777564990&replay-rp=36%409c4e9e68abaa6615427f2c8a84c729a09bd0957eb0cd3d394debb1d7e1af9321&status=VALID&type=travel&uid=customer-1777564990&with-epm=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/replay.json?amount=45&disabled-pmcat=1-4&email=toto@test.com&eope=DEQwyRwgEN.SrivRogdtOvgJ_0VPIWY-&ereplay-aes=SDLKJLSKJDLKSJLDKJSLKJDLSKJDLKSJLKSJD--&ereplay-channels-default=1720886400%40gn%3Bc%3B3333 OR generic-channel-replay&ereplay-ip=56.98.9.12&ereplay-mdevicetype=Desktop&ereplay-time=1777478590&estimateref=my-estimate-4561&etuix=0bCzPiMFnYoq26HIVu7IdBwRJMBs.sg-&gdpr-consent=COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&margin=100&payment=creditcard&prdaX=amount-product-1777564990&prdnX=name-product-1777564990&prdqX=quantity-product-1777564990&prdrX=ref-product-1777564990&profile=looker&ref=ref-order-1777564990&replay-rp=36@9c4e9e68abaa6615427f2c8a84c729a09bd0957eb0cd3d394debb1d7e1af9321&status=VALID&type=travel&uid=customer-1777564990&with-epm=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/replay.json?amount=45&disabled-pmcat=1-4&email=toto@test.com&eope=DEQwyRwgEN.SrivRogdtOvgJ_0VPIWY-&ereplay-aes=SDLKJLSKJDLKSJLDKJSLKJDLSKJDLKSJLKSJD--&ereplay-channels-default=1720886400%40gn%3Bc%3B3333 OR generic-channel-replay&ereplay-ip=56.98.9.12&ereplay-mdevicetype=Desktop&ereplay-time=1777478590&estimateref=my-estimate-4561&etuix=0bCzPiMFnYoq26HIVu7IdBwRJMBs.sg-&gdpr-consent=COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&margin=100&payment=creditcard&prdaX=amount-product-1777564990&prdnX=name-product-1777564990&prdqX=quantity-product-1777564990&prdrX=ref-product-1777564990&profile=looker&ref=ref-order-1777564990&replay-rp=36@9c4e9e68abaa6615427f2c8a84c729a09bd0957eb0cd3d394debb1d7e1af9321&status=VALID&type=travel&uid=customer-1777564990&with-epm=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'amount=45&disabled-pmcat=1-4&email=toto%40test.com&eope=DEQwyRwgEN.SrivRogdtOvgJ_0VPIWY-&ereplay-aes=SDLKJLSKJDLKSJLDKJSLKJDLSKJDLKSJLKSJD--&ereplay-channels-default=1720886400%2540gn%253Bc%253B3333%20OR%20generic-channel-replay&ereplay-ip=56.98.9.12&ereplay-mdevicetype=Desktop&ereplay-time=1777478590&estimateref=my-estimate-4561&etuix=0bCzPiMFnYoq26HIVu7IdBwRJMBs.sg-&gdpr-consent=COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw&margin=100&payment=creditcard&prdaX=amount-product-1777564990&prdnX=name-product-1777564990&prdqX=quantity-product-1777564990&prdrX=ref-product-1777564990&profile=looker&ref=ref-order-1777564990&replay-rp=36%409c4e9e68abaa6615427f2c8a84c729a09bd0957eb0cd3d394debb1d7e1af9321&status=VALID&type=travel&uid=customer-1777564990&with-epm=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/replay.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/order/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.\n\nPlease check the following [section](#section/Introduction/Asynchronous-calls) for more information about the download process.",
            "operationId" : "searchDatamining:sales",
            "parameters" : [
               {
                  "description" : "date from which the data is requested, format: MM/DD/YYYY",
                  "example" : "01/15/2018",
                  "in" : "query",
                  "name" : "date-from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date from which the data is requested, format: MM/DD/YYYY",
                  "example" : "01/29/2018",
                  "in" : "query",
                  "name" : "date-to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set this flag to 1 if you want the dates to be formatted according to a preset format, otherwise you will always have epoch format times.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "ea-enable-datefmt",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Column: attribution rule",
                  "example" : 1,
                  "in" : "query",
                  "name" : "view-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: conversion tracking",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-action",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: name of the internal promotion",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-blockpromo",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: browser",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-browser",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Eulerian identifier (EUID)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-buyerid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: CGI params",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-cgiparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Click ID",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-clickid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: total number of interactions",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-count",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: interaction date per channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-date",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: channel history",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-level",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: interaction device type",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-mdevicetype",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Data-Driven Score",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-mtascore",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: profile at the interaction",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-profile",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Interaction type (post-clic/post-impression/revisit)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-via",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: audience",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-cluster",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: conversion date (DD/MM/YYYY)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-dmy",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: conversion date (EPOCH)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date (HH:MM:SS)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-hms",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: email",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-email",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: number of estimates",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-estimateorder",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: external parameter",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-extparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: first channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-first-channel",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: delay between first & last marketing interaction (in seconds)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-firstlast-channel-lag",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: country",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-geoloc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: user-centric parameters",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-iduserparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: IP address",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-ip",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: ISP",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-isp",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: internal engine request",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-isrequest",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: language",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-lang",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: last channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-last-channel",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: last Android ID",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-last-rp-ea-android-adid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: last iOS IDFA",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-last-rp-ea-ios-idfa",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: type of device",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-mdevicetype",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 1",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup1",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 2",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup2",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 3",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup3",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 4",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup4",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OmniChannel Group 5",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-omnichannelgroup5",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OptIn status",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-optin",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: list of events",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-orderevent",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: pages seen in a session",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-orderpage",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: page URL",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-orderpageurl",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: type of payment",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-orderpayment",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: list of products for this sale",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-orderproduct",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: sales type",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-ordertype",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Order type group",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-ordertypecustom",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: operating system",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-os",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: product group",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-productgroup",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: product parameters",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-productparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: real amount",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-realscartvalidamount",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: real margin",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-realscartvalidmargin",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: previous total revenue amount",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-rebuyer-prevamount",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: previous number of sales",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-rebuyer-prevnb",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date of the previous sale",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-rebuyer-prevtm",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date of the previous sale (epoch)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-rebuyer-prevtm-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date of initiated shopping cart",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-scartdate",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: margin",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-scartvalidmargin",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Shop",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-shop",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: total number of merchandiser touchpoints",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-tpchannel-count",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: interaction date by merchandiser touchpoint",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-tpchannel-date",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: merchandiser touchpoints detail level",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-tpchannel-level",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: CRM identifier (UID)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-userid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date of the visit",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-visitdate",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: length of the visit",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-visitlag",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: length of the visit (hh:mm:ss)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-visitlag-hms",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Datamining: sales"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/search.json?date-from=01%2F15%2F2018&date-to=01%2F29%2F2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&view-id=1&with-action=1&with-blockpromo=1&with-browser=1&with-buyerid=1&with-cgiparam=1&with-channel-clickid=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-mdevicetype=1&with-channel-mtascore=1&with-channel-profile=1&with-channel-via=1&with-cluster=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-estimateorder=1&with-extparam=1&with-first-channel=1&with-firstlast-channel-lag=1&with-geoloc=1&with-iduserparam=1&with-ip=1&with-isp=1&with-isrequest=1&with-lang=1&with-last-channel=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-mdevicetype=1&with-omnichannelgroup1=1&with-omnichannelgroup2=1&with-omnichannelgroup3=1&with-omnichannelgroup4=1&with-omnichannelgroup5=1&with-optin=1&with-orderevent=1&with-orderpage=1&with-orderpageurl=1&with-orderpayment=1&with-orderproduct=1&with-ordertype=1&with-ordertypecustom=1&with-os=1&with-productgroup=1&with-productparam=1&with-realscartvalidamount=1&with-realscartvalidmargin=1&with-rebuyer-prevamount=1&with-rebuyer-prevnb=1&with-rebuyer-prevtm=1&with-rebuyer-prevtm-epoch=1&with-scartdate=1&with-scartvalidmargin=1&with-shop=1&with-tpchannel-count=1&with-tpchannel-date=1&with-tpchannel-level=1&with-userid=1&with-visitdate=1&with-visitlag=1&with-visitlag-hms=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/search.json?date-from=01/15/2018&date-to=01/29/2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&view-id=1&with-action=1&with-blockpromo=1&with-browser=1&with-buyerid=1&with-cgiparam=1&with-channel-clickid=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-mdevicetype=1&with-channel-mtascore=1&with-channel-profile=1&with-channel-via=1&with-cluster=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-estimateorder=1&with-extparam=1&with-first-channel=1&with-firstlast-channel-lag=1&with-geoloc=1&with-iduserparam=1&with-ip=1&with-isp=1&with-isrequest=1&with-lang=1&with-last-channel=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-mdevicetype=1&with-omnichannelgroup1=1&with-omnichannelgroup2=1&with-omnichannelgroup3=1&with-omnichannelgroup4=1&with-omnichannelgroup5=1&with-optin=1&with-orderevent=1&with-orderpage=1&with-orderpageurl=1&with-orderpayment=1&with-orderproduct=1&with-ordertype=1&with-ordertypecustom=1&with-os=1&with-productgroup=1&with-productparam=1&with-realscartvalidamount=1&with-realscartvalidmargin=1&with-rebuyer-prevamount=1&with-rebuyer-prevnb=1&with-rebuyer-prevtm=1&with-rebuyer-prevtm-epoch=1&with-scartdate=1&with-scartvalidmargin=1&with-shop=1&with-tpchannel-count=1&with-tpchannel-date=1&with-tpchannel-level=1&with-userid=1&with-visitdate=1&with-visitlag=1&with-visitlag-hms=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/search.json?date-from=01/15/2018&date-to=01/29/2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&view-id=1&with-action=1&with-blockpromo=1&with-browser=1&with-buyerid=1&with-cgiparam=1&with-channel-clickid=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-mdevicetype=1&with-channel-mtascore=1&with-channel-profile=1&with-channel-via=1&with-cluster=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-estimateorder=1&with-extparam=1&with-first-channel=1&with-firstlast-channel-lag=1&with-geoloc=1&with-iduserparam=1&with-ip=1&with-isp=1&with-isrequest=1&with-lang=1&with-last-channel=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-mdevicetype=1&with-omnichannelgroup1=1&with-omnichannelgroup2=1&with-omnichannelgroup3=1&with-omnichannelgroup4=1&with-omnichannelgroup5=1&with-optin=1&with-orderevent=1&with-orderpage=1&with-orderpageurl=1&with-orderpayment=1&with-orderproduct=1&with-ordertype=1&with-ordertypecustom=1&with-os=1&with-productgroup=1&with-productparam=1&with-realscartvalidamount=1&with-realscartvalidmargin=1&with-rebuyer-prevamount=1&with-rebuyer-prevnb=1&with-rebuyer-prevtm=1&with-rebuyer-prevtm-epoch=1&with-scartdate=1&with-scartvalidmargin=1&with-shop=1&with-tpchannel-count=1&with-tpchannel-date=1&with-tpchannel-level=1&with-userid=1&with-visitdate=1&with-visitlag=1&with-visitlag-hms=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'date-from=01%2F15%2F2018&date-to=01%2F29%2F2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&view-id=1&with-action=1&with-blockpromo=1&with-browser=1&with-buyerid=1&with-cgiparam=1&with-channel-clickid=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-mdevicetype=1&with-channel-mtascore=1&with-channel-profile=1&with-channel-via=1&with-cluster=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-email=1&with-estimateorder=1&with-extparam=1&with-first-channel=1&with-firstlast-channel-lag=1&with-geoloc=1&with-iduserparam=1&with-ip=1&with-isp=1&with-isrequest=1&with-lang=1&with-last-channel=1&with-last-rp-ea-android-adid=1&with-last-rp-ea-ios-idfa=1&with-mdevicetype=1&with-omnichannelgroup1=1&with-omnichannelgroup2=1&with-omnichannelgroup3=1&with-omnichannelgroup4=1&with-omnichannelgroup5=1&with-optin=1&with-orderevent=1&with-orderpage=1&with-orderpageurl=1&with-orderpayment=1&with-orderproduct=1&with-ordertype=1&with-ordertypecustom=1&with-os=1&with-productgroup=1&with-productparam=1&with-realscartvalidamount=1&with-realscartvalidmargin=1&with-rebuyer-prevamount=1&with-rebuyer-prevnb=1&with-rebuyer-prevtm=1&with-rebuyer-prevtm-epoch=1&with-scartdate=1&with-scartvalidmargin=1&with-shop=1&with-tpchannel-count=1&with-tpchannel-date=1&with-tpchannel-level=1&with-userid=1&with-visitdate=1&with-visitlag=1&with-visitlag-hms=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/order/status.json" : {
         "get" : {
            "description" : "When sending a `search` request, you can check the generation status of the report by querying this method.",
            "operationId" : "statusDatamining:sales",
            "parameters" : [
               {
                  "description" : "id of the jobrun generating the report as provided by the `search` query",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_status"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "INPROGRESS"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get the generation status.",
            "tags" : [
               "Datamining: sales"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/status.json?jobrun-id=1777564990\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/status.json?jobrun-id=1777564990',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/status.json?jobrun-id=1777564990');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564990'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/order/update_amount.json" : {
         "post" : {
            "description" : "This query will allow you to update the amount of a validated sale.",
            "operationId" : "updateAmountDatamining:sales",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "order reference to update.",
                  "example" : "ref-order-1777564990",
                  "in" : "query",
                  "name" : "order-ref",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new amount to use for this sale.",
                  "example" : 45,
                  "in" : "query",
                  "name" : "order-newamount",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Update amount of a sale.",
            "tags" : [
               "Datamining: sales"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"order-newamount=45&order-ref=ref-order-1777564990\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/update_amount.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'order-newamount' => '45',\n'order-ref' => 'ref-order-1777564990'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/update_amount.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/update_amount.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('order-newamount=45&order-ref=ref-order-1777564990');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'order-newamount' : '45',\n'order-ref' : 'ref-order-1777564990'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/order/valid.json" : {
         "post" : {
            "description" : "This query will validate a sale.  After triggering the collector call to upload a sale, it will be only available after 5 minutes (300 seconds).  If you want to cancel a sale immediately after its creation, you must add the parameter `ea-apiasync=400`.\n\n> The partial validation of a sale must be done reference by reference. It is not possible to modify the amount of several sales in only one query.",
            "operationId" : "validDatamining:sales",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "order reference to validate.",
                  "example" : "ref-order-1777564990",
                  "in" : "query",
                  "name" : "order-ref",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "number of seconds before executing the request.",
                  "example" : 350,
                  "in" : "query",
                  "name" : "ea-apiasync",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "for a given sale reference, you can validate a partial amount value.",
                  "example" : 45,
                  "in" : "query",
                  "name" : "order-newamount",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Validate a sale.",
            "tags" : [
               "Datamining: sales"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"ea-apiasync=350&order-newamount=45&order-ref=ref-order-1777564990\" https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/valid.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'ea-apiasync' => '350',\n'order-newamount' => '45',\n'order-ref' => 'ref-order-1777564990'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/valid.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/order/valid.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('ea-apiasync=350&order-newamount=45&order-ref=ref-order-1777564990');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'ea-apiasync' : '350',\n'order-newamount' : '45',\n'order-ref' : 'ref-order-1777564990'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/scart/download.json" : {
         "get" : {
            "description" : "Once the report is available (COMPLETED) you can download the data by querying this method.\n\nThe following fields are returned depending on the request parameters :\n<table>\n <tr><td>Field</td><td>Header</td><td>Format</td><td>Availability</td></tr>\n <tr><td>scart_id</td><td>EA internal ID</td><td>Unsigned int</td><td>Always</td></tr>\n <tr><td>scart_date</td><td>Sale date</td><td>Epoch UNIX</td><td>Always</td></tr>\n <tr><td>order_ref</td><td>Sale ID</td><td>Text</td><td>with-orderid=1</td></tr>\n <tr><td>email_id</td><td>Email address</td><td>Text</td><td>with-email=1</td></tr>\n <tr><td>scart_extparam</td><td>External parameter</td><td>Text</td><td>with-extparam=1</td></tr>\n <tr><td>scart_optin</td><td>Optin Status</td><td>Text</td><td>with-optin=1</td></tr>\n <tr><td>cgiparam_$ID : $ID being the custom parameter internal ID</td><td>Custom parameter</td><td>Text</td><td>with-cgiparam=1</td></tr>\n <tr><td>a_channel_sz</td><td>Total number of channels in the marketing history</td><td>Total</td><td>with-channel-count=1&with-channel-level=1</td></tr>\n <tr><td>channel_lvlX_P0</td><td>Field P0 of the channel at X level</td><td>Text</td><td>with-channel-level=X&max-channel-info=1</td></tr>\n <tr><td>channel_lvlX_P1</td><td>Field P1 of the channel at X level</td><td>Text</td><td>with-channel-level=X&max-channel-info=2</td></tr>\n <tr><td>channel_lvlX_P2</td><td>Field P2 of the channel at X level</td><td>Text</td><td>with-channel-level=X&max-channel-info=3</td></tr>\n <tr><td>channel_lvlX_P3</td><td>Field P3 of the channel at X level</td><td>Text</td><td>with-channel-level=X&max-channel-info=4</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P3 to P4 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=5</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P4 to P6 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=7</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P7 to P8 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=9</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P8 to P13 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=14</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P13 to P17 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=18</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P17 to P20 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=21</td></tr>\n <tr><td>channel_lvlX_via</td><td>Type of interaction at X level for the channel: C: post-click/V: post-impression/R: out of session/Empty: none</td><td>Text</td><td>with-channel-level=1&with-channel-via=1</td></tr>\n <tr><td>channel_lvlX_date</td><td>Date from the interaction with the channel on X level</td><td>Epoch UNIX</td><td>with-channel-level=1&with-channel-date=1</td></tr>\n <tr><td>viewchannel_P0</td><td>Field P0 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P1</td><td>Field P1 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=2&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P2</td><td>Field P2 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=3&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P3</td><td>Field P3 to P4 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=5&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P4 to P6 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=7&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P7 to P8 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=9&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P8 to P13 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=14&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P13 to P17 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=18&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P17 to P20 of the channel on for provided view-id</td><td>Text</td><td>max-channel-info=21&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_via</td><td>Type of interaction for the channel for provided view-id: C: post-click/V: post-impression/R: out of session/Empty: none</td><td>Text</td><td>with-channel-via=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_mtascore</td><td>Data Driven score  for the channel for provided view-id</td><td>Text</td><td>with-channel-mtascore=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_date</td><td>Date from the interaction with the channel on X level</td><td>Epoch UNIX</td><td>&with-channel-date=1&view-id=ID_VIEW</td></tr>\n <tr><td>a_scartproduct_sz</td><td>Number of products linked to the sale</td><td>Total</td><td>with-scartproduct=1</td></tr>\n <tr><td>scartproduct_ref_X : X being the product index</td><td>Product reference</td><td>Text</td><td>with-scartproduct=1</td></tr>\n <tr><td>scartproduct_name_X : X being the product index</td><td>Product reference</td><td>Text</td><td>with-scartproduct=1</td></tr>\n <tr><td>scartproduct_quantity_X : X being the product index</td><td>Quantity of the product sold</td><td>Total</td><td>with-scartproduct=1</td></tr>\n <tr><td>scartproduct_sellprice_X : X being the product index</td><td>Product unitary amount</td><td>Number</td><td>with-scartproduct=1</td></tr>\n</table>\n",
            "operationId" : "downloadDatamining:shoppingcarts",
            "parameters" : [
               {
                  "description" : "id of the jobrun generating the report as provided by the `search` query",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If set to 1, the output will be formatted as a CSV file.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "output-as-csv",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If set to 1, the output will be formatted as an array of key/value fields.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "output-as-kv",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "scart_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "SCART-1777564990"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Download the report",
            "tags" : [
               "Datamining: shopping carts"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/scart/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/scart/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/scart/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564990&output-as-csv=1&output-as-kv=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/scart/download.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/scart/get.json" : {
         "get" : {
            "description" : "This query will return a specific shopping cart.\n\nThe following fields are returned depending on the request parameters :\n<table>\n <tr><td>Field</td><td>Header</td><td>Format</td><td>Availability</td></tr>\n <tr><td>scart_id</td><td>EA internal ID</td><td>Unsigned int</td><td>Always</td></tr>\n <tr><td>scart_date</td><td>Sale date</td><td>Epoch UNIX</td><td>Always</td></tr>\n <tr><td>order_ref</td><td>Sale ID</td><td>Text</td><td>with-orderid=1</td></tr>\n <tr><td>email_id</td><td>Email address</td><td>Text</td><td>with-email=1</td></tr>\n <tr><td>scart_extparam</td><td>External parameter</td><td>Text</td><td>with-extparam=1</td></tr>\n <tr><td>scart_optin</td><td>Optin Status</td><td>Text</td><td>with-optin=1</td></tr>\n <tr><td>cgiparam_$ID : $ID being the custom parameter internal ID</td><td>Custom parameter</td><td>Text</td><td>with-cgiparam=1</td></tr>\n <tr><td>a_channel_sz</td><td>Total number of channels in the marketing history</td><td>Total</td><td>with-channel-count=1&with-channel-level=1</td></tr>\n <tr><td>channel_lvlX_P0</td><td>Field P0 of the channel at X level</td><td>Text</td><td>with-channel-level=X&max-channel-info=1</td></tr>\n <tr><td>channel_lvlX_P1</td><td>Field P1 of the channel at X level</td><td>Text</td><td>with-channel-level=X&max-channel-info=2</td></tr>\n <tr><td>channel_lvlX_P2</td><td>Field P2 of the channel at X level</td><td>Text</td><td>with-channel-level=X&max-channel-info=3</td></tr>\n <tr><td>channel_lvlX_P3</td><td>Field P3 of the channel at X level</td><td>Text</td><td>with-channel-level=X&max-channel-info=4</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P3 to P4 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=5</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P4 to P6 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=7</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P7 to P8 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=9</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P8 to P13 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=14</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P13 to P17 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=18</td></tr>\n <tr><td>channel_lvlX_Py</td><td>Field P17 to P20 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=21</td></tr>\n <tr><td>channel_lvlX_via</td><td>Type of interaction at X level for the channel: C: post-click/V: post-impression/R: out of session/Empty: none</td><td>Text</td><td>with-channel-level=1&with-channel-via=1</td></tr>\n <tr><td>channel_lvlX_date</td><td>Date from the interaction with the channel on X level</td><td>Epoch UNIX</td><td>with-channel-level=1&with-channel-date=1</td></tr>\n <tr><td>viewchannel_P0</td><td>Field P0 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P1</td><td>Field P1 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=2&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P2</td><td>Field P2 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=3&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_P3</td><td>Field P3 to P4 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=5&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P4 to P6 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=7&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P7 to P8 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=9&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P8 to P13 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=14&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P13 to P17 of the channel for provided view-id</td><td>Text</td><td>max-channel-info=18&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_Py</td><td>Field P17 to P20 of the channel on for provided view-id</td><td>Text</td><td>max-channel-info=21&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_via</td><td>Type of interaction for the channel for provided view-id: C: post-click/V: post-impression/R: out of session/Empty: none</td><td>Text</td><td>with-channel-via=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_mtascore</td><td>Data Driven score  for the channel for provided view-id</td><td>Text</td><td>with-channel-mtascore=1&view-id=ID_VIEW</td></tr>\n <tr><td>viewchannel_date</td><td>Date from the interaction with the channel on X level</td><td>Epoch UNIX</td><td>&with-channel-date=1&view-id=ID_VIEW</td></tr>\n <tr><td>a_scartproduct_sz</td><td>Number of products linked to the sale</td><td>Total</td><td>with-scartproduct=1</td></tr>\n <tr><td>scartproduct_ref_X : X being the product index</td><td>Product reference</td><td>Text</td><td>with-scartproduct=1</td></tr>\n <tr><td>scartproduct_name_X : X being the product index</td><td>Product reference</td><td>Text</td><td>with-scartproduct=1</td></tr>\n <tr><td>scartproduct_quantity_X : X being the product index</td><td>Quantity of the product sold</td><td>Total</td><td>with-scartproduct=1</td></tr>\n <tr><td>scartproduct_sellprice_X : X being the product index</td><td>Product unitary amount</td><td>Number</td><td>with-scartproduct=1</td></tr>\n</table>\n",
            "operationId" : "getDatamining:shoppingcarts",
            "parameters" : [
               {
                  "description" : "shopping cart id",
                  "example" : "scart-1777564990",
                  "in" : "query",
                  "name" : "scart-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Eulerian identifier (EUID)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-buyerid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: CGI params",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-cgiparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: total number of interactions",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-count",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: interaction date per channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-date",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: level of detail of the marketing channels",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-level",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Interaction type (post-clic/post-impression/revisit)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-via",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: audience",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-cluster",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: email",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-email",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: estimate reference",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-estimateid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: external parameter",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-extparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: first channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-first-channel",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: user-centric parameters",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-iduserparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: last channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-last-channel",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OptIn status",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-optin",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: sales unique id",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-orderid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: product parameters",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-productparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: list of products in shopping cart",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-scartproduct",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: attribution rule",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-scartview",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: CRM identifier (UID)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-userid",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get a shopping cart.",
            "tags" : [
               "Datamining: shopping carts"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/scart/get.json?scart-id=scart-1777564990&with-buyerid=1&with-cgiparam=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-cluster=1&with-email=1&with-estimateid=1&with-extparam=1&with-first-channel=1&with-iduserparam=1&with-last-channel=1&with-optin=1&with-orderid=1&with-productparam=1&with-scartproduct=1&with-scartview=1&with-userid=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/scart/get.json?scart-id=scart-1777564990&with-buyerid=1&with-cgiparam=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-cluster=1&with-email=1&with-estimateid=1&with-extparam=1&with-first-channel=1&with-iduserparam=1&with-last-channel=1&with-optin=1&with-orderid=1&with-productparam=1&with-scartproduct=1&with-scartview=1&with-userid=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/scart/get.json?scart-id=scart-1777564990&with-buyerid=1&with-cgiparam=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-cluster=1&with-email=1&with-estimateid=1&with-extparam=1&with-first-channel=1&with-iduserparam=1&with-last-channel=1&with-optin=1&with-orderid=1&with-productparam=1&with-scartproduct=1&with-scartview=1&with-userid=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'scart-id=scart-1777564990&with-buyerid=1&with-cgiparam=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-cluster=1&with-email=1&with-estimateid=1&with-extparam=1&with-first-channel=1&with-iduserparam=1&with-last-channel=1&with-optin=1&with-orderid=1&with-productparam=1&with-scartproduct=1&with-scartview=1&with-userid=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/scart/get.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/scart/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.\n\nPlease check the following [section](#section/Introduction/Asynchronous-calls) for more information about the download process.",
            "operationId" : "searchDatamining:shoppingcarts",
            "parameters" : [
               {
                  "description" : "date from which the data is requested, format: MM/DD/YYYY",
                  "example" : "01/15/2018",
                  "in" : "query",
                  "name" : "date-from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date from which the data is requested, format: MM/DD/YYYY",
                  "example" : "01/29/2018",
                  "in" : "query",
                  "name" : "date-to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set this flag to 1 if you want the dates to be formatted according to a preset format, otherwise you will always have epoch format times.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "ea-enable-datefmt",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Column: Eulerian identifier (EUID)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-buyerid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: CGI params",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-cgiparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: total number of interactions",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-count",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: interaction date per channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-date",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: level of detail of the marketing channels",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-level",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Interaction type (post-clic/post-impression/revisit)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-via",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: audience",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-cluster",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: email",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-email",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: estimate reference",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-estimateid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: external parameter",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-extparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: first channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-first-channel",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: user-centric parameters",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-iduserparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: last channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-last-channel",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: OptIn status",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-optin",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: sales unique id",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-orderid",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: product parameters",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-productparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: list of products in shopping cart",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-scartproduct",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: attribution rule",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-scartview",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: CRM identifier (UID)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-userid",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Datamining: shopping carts"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/scart/search.json?date-from=01%2F15%2F2018&date-to=01%2F29%2F2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&with-buyerid=1&with-cgiparam=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-cluster=1&with-email=1&with-estimateid=1&with-extparam=1&with-first-channel=1&with-iduserparam=1&with-last-channel=1&with-optin=1&with-orderid=1&with-productparam=1&with-scartproduct=1&with-scartview=1&with-userid=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/scart/search.json?date-from=01/15/2018&date-to=01/29/2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&with-buyerid=1&with-cgiparam=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-cluster=1&with-email=1&with-estimateid=1&with-extparam=1&with-first-channel=1&with-iduserparam=1&with-last-channel=1&with-optin=1&with-orderid=1&with-productparam=1&with-scartproduct=1&with-scartview=1&with-userid=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/scart/search.json?date-from=01/15/2018&date-to=01/29/2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&with-buyerid=1&with-cgiparam=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-cluster=1&with-email=1&with-estimateid=1&with-extparam=1&with-first-channel=1&with-iduserparam=1&with-last-channel=1&with-optin=1&with-orderid=1&with-productparam=1&with-scartproduct=1&with-scartview=1&with-userid=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'date-from=01%2F15%2F2018&date-to=01%2F29%2F2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&with-buyerid=1&with-cgiparam=1&with-channel-count=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-cluster=1&with-email=1&with-estimateid=1&with-extparam=1&with-first-channel=1&with-iduserparam=1&with-last-channel=1&with-optin=1&with-orderid=1&with-productparam=1&with-scartproduct=1&with-scartview=1&with-userid=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/scart/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/scart/status.json" : {
         "get" : {
            "description" : "When sending a `search` request, you can check the generation status of the report by querying this method.",
            "operationId" : "statusDatamining:shoppingcarts",
            "parameters" : [
               {
                  "description" : "id of the jobrun generating the report as provided by the `search` query",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_status"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "INPROGRESS"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get the generation status.",
            "tags" : [
               "Datamining: shopping carts"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/scart/status.json?jobrun-id=1777564990\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/scart/status.json?jobrun-id=1777564990',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/scart/status.json?jobrun-id=1777564990');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564990'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/scart/status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/tpopedataclick/download.json" : {
         "get" : {
            "description" : "Once the report is available (COMPLETED) you can download the data by querying this method.\n\nThe following fields are returned depending on the request parameters :\n<table>\n <tr><td>Field</td><td>Header</td><td>Format</td><td>Availability</td></tr>\n <tr><td>tpopedataclick_id</td><td>EA internal ID</td><td>Unsigned int</td><td>Always</td></tr>\n <tr><td>tpopedataclick_date</td><td>Outbound click date</td><td>Epoch UNIX</td><td>Always</td></tr>\n <tr><td>tpopedataclick_extparam</td><td>External parameter</td><td>Text</td><td>with-extparam=1</td></tr>\n <tr><td>tpopedataclick_scoring</td><td>Outbound click scoring</td><td>Unsigned int</td><td>Always</td></tr>\n <tr><td>tpopedataclick_scoringdesc</td><td>Outbound click scoring description</td><td>Text</td><td>with-scoringdesc=1</td></tr>\n <tr><td>tppublisher_name</td><td>Name of the publisher</td><td>Text</td><td>with-tppublisher-name=1</td></tr>\n <tr><td>tpope_name</td><td>Name of the outbound campaign</td><td>Text</td><td>with-tpope-name=1</td></tr>\n <tr><td>tpopedata_name</td><td>Name of the campaign outbound click</td><td>Text</td><td>with-tpopedata-name=1</td></tr>\n <tr><td>channel_lvl0_P0</td><td>Field P0 of the channel, level X</td><td>Text</td><td>with-channel-level=1</td></tr>\n <tr><td>channel_lvl0_P1</td><td>Field P1 of the channel, level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=1</td></tr>\n <tr><td>channel_lvl0_P2</td><td>Field P2 of the channel, level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=1</td></tr>\n <tr><td>channel_lvl0_P3</td><td>Field P3 of the channel, level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=1</td></tr>\n <tr><td>channel_lvl0_P4</td><td>Field P4 of the channel, level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=1</td></tr>\n</table>\n",
            "operationId" : "downloadDatamining:outboundclicks",
            "parameters" : [
               {
                  "description" : "id of the jobrun generating the report as provided by the `search` query",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If set to 1, the output will be formatted as a CSV file.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "output-as-csv",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If set to 1, the output will be formatted as an array of key/value fields.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "output-as-kv",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "tpopedataclick_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "ID-TPOPEDATACLICK-1777564990"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Download the report",
            "tags" : [
               "Datamining: outbound clicks"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tpopedataclick/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tpopedataclick/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tpopedataclick/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564990&output-as-csv=1&output-as-kv=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tpopedataclick/download.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/tpopedataclick/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.\n\nPlease check the following [section](#section/Introduction/Asynchronous-calls) for more information about the download process.",
            "operationId" : "searchDatamining:outboundclicks",
            "parameters" : [
               {
                  "description" : "date from which the data is requested, format: MM/DD/YYYY",
                  "example" : "01/15/2018",
                  "in" : "query",
                  "name" : "date-from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date from which the data is requested, format: MM/DD/YYYY",
                  "example" : "01/29/2018",
                  "in" : "query",
                  "name" : "date-to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set this flag to 1 if you want the dates to be formatted according to a preset format, otherwise you will always have epoch format times.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "ea-enable-datefmt",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Datamining: outbound clicks"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tpopedataclick/search.json?date-from=01%2F15%2F2018&date-to=01%2F29%2F2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tpopedataclick/search.json?date-from=01/15/2018&date-to=01/29/2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tpopedataclick/search.json?date-from=01/15/2018&date-to=01/29/2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'date-from=01%2F15%2F2018&date-to=01%2F29%2F2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tpopedataclick/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/tpopedataclick/status.json" : {
         "get" : {
            "description" : "When sending a `search` request, you can check the generation status of the report by querying this method.",
            "operationId" : "statusDatamining:outboundclicks",
            "parameters" : [
               {
                  "description" : "id of the jobrun generating the report as provided by the `search` query",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_status"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "INPROGRESS"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get the generation status.",
            "tags" : [
               "Datamining: outbound clicks"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tpopedataclick/status.json?jobrun-id=1777564990\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tpopedataclick/status.json?jobrun-id=1777564990',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tpopedataclick/status.json?jobrun-id=1777564990');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564990'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tpopedataclick/status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/tporder/download.json" : {
         "get" : {
            "description" : "Once the report is available (COMPLETED) you can download the data by querying this method.\n\nThe following fields are returned depending on the request parameters :\n<table>\n <tr><td>Field</td><td>Header</td><td>Format</td><td>Availability</td></tr>\n <tr><td>tporder_id</td><td>EA internal ID</td><td>Unsigned int</td><td>Always</td></tr>\n <tr><td>tporder_ref</td><td>Third-party sale reference</td><td>Text</td><td>Always</td></tr>\n <tr><td>tporder_date</td><td>Third-party sale date</td><td>Epoch UNIX</td><td>Always</td></tr>\n <tr><td>tporder_status</td><td>Status of the third-party sale</td><td>PENDING/VALID/INVALID</td><td>Always</td></tr>\n <tr><td>tporder_scartvalidamount</td><td>Third-party sale amount</td><td>Number</td><td>Always</td></tr>\n <tr><td>email_id</td><td>Email address</td><td>Text</td><td>with-email=1</td></tr>\n <tr><td>tporder_extparam</td><td>External parameter</td><td>Text</td><td>with-extparam=1</td></tr>\n <tr><td>tporder_ip</td><td>IP address</td><td>Text</td><td>with-ip=1</td></tr>\n <tr><td>geoloc_name</td><td>Country</td><td>Coded on 2 ISO-3166-1 characters</td><td>with-geoloc=1</td></tr>\n <tr><td>browser_name</td><td>Browser</td><td>Text</td><td>with-browser=1</td></tr>\n <tr><td>lang_name</td><td>Browser language</td><td>Coded on 2 ISO-3166-1 characters</td><td>with-lang=1</td></tr>\n <tr><td>os_name</td><td>Operative system</td><td>Text</td><td>with-os=1</td></tr>\n <tr><td>isp_name</td><td>Internet access provider</td><td>Text</td><td>with-isp=1</td></tr>\n <tr><td>a_channel_sz</td><td>Total number of channels in the marketing history</td><td>Total</td><td>with-channel-count=1&with-channel-level=1</td></tr>\n <tr><td>channel_lvlX_P0</td><td>Field P0 of the channel on level X</td><td>Text</td><td>with-channel-level=1</td></tr>\n <tr><td>channel_lvlX_P1</td><td>Field P1 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=1</td></tr>\n <tr><td>channel_lvlX_P2</td><td>Field P2 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=1</td></tr>\n <tr><td>channel_lvlX_P3</td><td>Field P3 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=1</td></tr>\n <tr><td>channel_lvlX_P4</td><td>Field P4 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=1</td></tr>\n <tr><td>channel_lvlX_via</td><td>Type of interaction at X level for the channel: C: post-click/V: post-impression/R: out of session/Empty: none</td><td>Text</td><td>with-channel-level=1&with-channel-via=1</td></tr>\n <tr><td>channel_lvlX_date</td><td>Date from the interaction with the channel on X level</td><td>Epoch UNIX</td><td>with-channel-level=1&with-channel-date=1</td></tr>\n</table>\n",
            "operationId" : "downloadDatamining:thirdpartysales",
            "parameters" : [
               {
                  "description" : "id of the jobrun generating the report as provided by the `search` query",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If set to 1, the output will be formatted as a CSV file.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "output-as-csv",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "If set to 1, the output will be formatted as an array of key/value fields.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "output-as-kv",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "tporder_ref"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "REF-TPORDER-1777564990"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Download the report",
            "tags" : [
               "Datamining: third-party sales"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tporder/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tporder/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tporder/download.json?jobrun-id=1777564990&output-as-csv=1&output-as-kv=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564990&output-as-csv=1&output-as-kv=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tporder/download.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/tporder/get.json" : {
         "get" : {
            "description" : "This query will return a specific third-party sale.\n\nThe following fields are returned depending on the request parameters :\n<table>\n <tr><td>Field</td><td>Header</td><td>Format</td><td>Availability</td></tr>\n <tr><td>tporder_id</td><td>EA internal ID</td><td>Unsigned int</td><td>Always</td></tr>\n <tr><td>tporder_ref</td><td>Third-party sale reference</td><td>Text</td><td>Always</td></tr>\n <tr><td>tporder_date</td><td>Third-party sale date</td><td>Epoch UNIX</td><td>Always</td></tr>\n <tr><td>tporder_status</td><td>Status of the third-party sale</td><td>PENDING/VALID/INVALID</td><td>Always</td></tr>\n <tr><td>tporder_scartvalidamount</td><td>Third-party sale amount</td><td>Number</td><td>Always</td></tr>\n <tr><td>email_id</td><td>Email address</td><td>Text</td><td>with-email=1</td></tr>\n <tr><td>tporder_extparam</td><td>External parameter</td><td>Text</td><td>with-extparam=1</td></tr>\n <tr><td>tporder_ip</td><td>IP address</td><td>Text</td><td>with-ip=1</td></tr>\n <tr><td>geoloc_name</td><td>Country</td><td>Coded on 2 ISO-3166-1 characters</td><td>with-geoloc=1</td></tr>\n <tr><td>browser_name</td><td>Browser</td><td>Text</td><td>with-browser=1</td></tr>\n <tr><td>lang_name</td><td>Browser language</td><td>Coded on 2 ISO-3166-1 characters</td><td>with-lang=1</td></tr>\n <tr><td>os_name</td><td>Operative system</td><td>Text</td><td>with-os=1</td></tr>\n <tr><td>isp_name</td><td>Internet access provider</td><td>Text</td><td>with-isp=1</td></tr>\n <tr><td>a_channel_sz</td><td>Total number of channels in the marketing history</td><td>Total</td><td>with-channel-count=1&with-channel-level=1</td></tr>\n <tr><td>channel_lvlX_P0</td><td>Field P0 of the channel on level X</td><td>Text</td><td>with-channel-level=1</td></tr>\n <tr><td>channel_lvlX_P1</td><td>Field P1 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=1</td></tr>\n <tr><td>channel_lvlX_P2</td><td>Field P2 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=1</td></tr>\n <tr><td>channel_lvlX_P3</td><td>Field P3 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=1</td></tr>\n <tr><td>channel_lvlX_P4</td><td>Field P4 of the channel on level X</td><td>Text</td><td>with-channel-level=1&max-channel-info=1</td></tr>\n <tr><td>channel_lvlX_via</td><td>Type of interaction at X level for the channel: C: post-click/V: post-impression/R: out of session/Empty: none</td><td>Text</td><td>with-channel-level=1&with-channel-via=1</td></tr>\n <tr><td>channel_lvlX_date</td><td>Date from the interaction with the channel on X level</td><td>Epoch UNIX</td><td>with-channel-level=1&with-channel-date=1</td></tr>\n</table>\n",
            "operationId" : "getDatamining:thirdpartysales",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "tporder reference",
                  "example" : "ref-tporder-1777564990",
                  "in" : "query",
                  "name" : "tporder-ref",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: conversion tracking",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-action",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: browser",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-browser",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: CGI params",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-cgiparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: interaction date per channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-date",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: level of detail of the marketing channels",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-level",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Interaction type (post-clic/post-impression/revisit)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-via",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: conversion date (DD/MM/YYYY)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-dmy",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: conversion date (EPOCH)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date (HH:MM:SS)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-hms",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: outbound click date (EPOCH)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-dateout",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: outbound click date (hh:mm:ss)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-dateout-hms",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date of the visit",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-datevisit",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date of the visit (hh:mm:ss)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-datevisit-hms",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: email",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-email",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: external parameter",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-extparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: country",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-geoloc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: IP address",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-ip",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: ISP",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-isp",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: language",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-lang",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: operating system",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-os",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: delay since the outbound click (seconds)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-outlag",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: delay since the outbound click (hh:mm:ss)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-outlag-hms",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: product SKU",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-product",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: category",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-tpcategory",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: media",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-tpmedia",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: outbound campaign",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-tpope",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: name of the outbound click",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-tpopedataname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: publisher",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-tppublisher",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: length of the visit",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-visitlag",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: length of the visit (hh:mm:ss)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-visitlag-hms",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get a third-party sale.",
            "tags" : [
               "Datamining: third-party sales"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tporder/get.json?tporder-ref=ref-tporder-1777564990&with-action=1&with-browser=1&with-cgiparam=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-dateout=1&with-dateout-hms=1&with-datevisit=1&with-datevisit-hms=1&with-email=1&with-extparam=1&with-geoloc=1&with-ip=1&with-isp=1&with-lang=1&with-os=1&with-outlag=1&with-outlag-hms=1&with-product=1&with-tpcategory=1&with-tpmedia=1&with-tpope=1&with-tpopedataname=1&with-tppublisher=1&with-visitlag=1&with-visitlag-hms=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tporder/get.json?tporder-ref=ref-tporder-1777564990&with-action=1&with-browser=1&with-cgiparam=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-dateout=1&with-dateout-hms=1&with-datevisit=1&with-datevisit-hms=1&with-email=1&with-extparam=1&with-geoloc=1&with-ip=1&with-isp=1&with-lang=1&with-os=1&with-outlag=1&with-outlag-hms=1&with-product=1&with-tpcategory=1&with-tpmedia=1&with-tpope=1&with-tpopedataname=1&with-tppublisher=1&with-visitlag=1&with-visitlag-hms=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tporder/get.json?tporder-ref=ref-tporder-1777564990&with-action=1&with-browser=1&with-cgiparam=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-dateout=1&with-dateout-hms=1&with-datevisit=1&with-datevisit-hms=1&with-email=1&with-extparam=1&with-geoloc=1&with-ip=1&with-isp=1&with-lang=1&with-os=1&with-outlag=1&with-outlag-hms=1&with-product=1&with-tpcategory=1&with-tpmedia=1&with-tpope=1&with-tpopedataname=1&with-tppublisher=1&with-visitlag=1&with-visitlag-hms=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'tporder-ref=ref-tporder-1777564990&with-action=1&with-browser=1&with-cgiparam=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-dateout=1&with-dateout-hms=1&with-datevisit=1&with-datevisit-hms=1&with-email=1&with-extparam=1&with-geoloc=1&with-ip=1&with-isp=1&with-lang=1&with-os=1&with-outlag=1&with-outlag-hms=1&with-product=1&with-tpcategory=1&with-tpmedia=1&with-tpope=1&with-tpopedataname=1&with-tppublisher=1&with-visitlag=1&with-visitlag-hms=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tporder/get.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/tporder/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.\n\nPlease check the following [section](#section/Introduction/Asynchronous-calls) for more information about the download process.",
            "operationId" : "searchDatamining:thirdpartysales",
            "parameters" : [
               {
                  "description" : "date from which the data is requested, format: MM/DD/YYYY",
                  "example" : "01/15/2018",
                  "in" : "query",
                  "name" : "date-from",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "date from which the data is requested, format: MM/DD/YYYY",
                  "example" : "01/29/2018",
                  "in" : "query",
                  "name" : "date-to",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set this flag to 1 if you want the dates to be formatted according to a preset format, otherwise you will always have epoch format times.",
                  "example" : 1,
                  "in" : "query",
                  "name" : "ea-enable-datefmt",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Column: conversion tracking",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-action",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: browser",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-browser",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: CGI params",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-cgiparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: interaction date per channel",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-date",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: level of detail of the marketing channels",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-level",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: Interaction type (post-clic/post-impression/revisit)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-channel-via",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: conversion date (DD/MM/YYYY)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-dmy",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: conversion date (EPOCH)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-epoch",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date (HH:MM:SS)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-date-hms",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: outbound click date (EPOCH)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-dateout",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: outbound click date (hh:mm:ss)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-dateout-hms",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date of the visit",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-datevisit",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: date of the visit (hh:mm:ss)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-datevisit-hms",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: email",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-email",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: external parameter",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-extparam",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: country",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-geoloc",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: IP address",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-ip",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: ISP",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-isp",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: language",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-lang",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: operating system",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-os",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: delay since the outbound click (seconds)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-outlag",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: delay since the outbound click (hh:mm:ss)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-outlag-hms",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: product SKU",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-product",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: category",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-tpcategory",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: media",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-tpmedia",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: outbound campaign",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-tpope",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: name of the outbound click",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-tpopedataname",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: publisher",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-tppublisher",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: length of the visit",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-visitlag",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Column: length of the visit (hh:mm:ss)",
                  "example" : 1,
                  "in" : "query",
                  "name" : "with-visitlag-hms",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Datamining: third-party sales"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tporder/search.json?date-from=01%2F15%2F2018&date-to=01%2F29%2F2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&with-action=1&with-browser=1&with-cgiparam=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-dateout=1&with-dateout-hms=1&with-datevisit=1&with-datevisit-hms=1&with-email=1&with-extparam=1&with-geoloc=1&with-ip=1&with-isp=1&with-lang=1&with-os=1&with-outlag=1&with-outlag-hms=1&with-product=1&with-tpcategory=1&with-tpmedia=1&with-tpope=1&with-tpopedataname=1&with-tppublisher=1&with-visitlag=1&with-visitlag-hms=1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tporder/search.json?date-from=01/15/2018&date-to=01/29/2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&with-action=1&with-browser=1&with-cgiparam=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-dateout=1&with-dateout-hms=1&with-datevisit=1&with-datevisit-hms=1&with-email=1&with-extparam=1&with-geoloc=1&with-ip=1&with-isp=1&with-lang=1&with-os=1&with-outlag=1&with-outlag-hms=1&with-product=1&with-tpcategory=1&with-tpmedia=1&with-tpope=1&with-tpopedataname=1&with-tppublisher=1&with-visitlag=1&with-visitlag-hms=1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tporder/search.json?date-from=01/15/2018&date-to=01/29/2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&with-action=1&with-browser=1&with-cgiparam=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-dateout=1&with-dateout-hms=1&with-datevisit=1&with-datevisit-hms=1&with-email=1&with-extparam=1&with-geoloc=1&with-ip=1&with-isp=1&with-lang=1&with-os=1&with-outlag=1&with-outlag-hms=1&with-product=1&with-tpcategory=1&with-tpmedia=1&with-tpope=1&with-tpopedataname=1&with-tppublisher=1&with-visitlag=1&with-visitlag-hms=1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'date-from=01%2F15%2F2018&date-to=01%2F29%2F2018&dir=DESC&ea-enable-datefmt=1&limit=25&start=0&with-action=1&with-browser=1&with-cgiparam=1&with-channel-date=1&with-channel-level=1&with-channel-via=1&with-date-dmy=1&with-date-epoch=1&with-date-hms=1&with-dateout=1&with-dateout-hms=1&with-datevisit=1&with-datevisit-hms=1&with-email=1&with-extparam=1&with-geoloc=1&with-ip=1&with-isp=1&with-lang=1&with-os=1&with-outlag=1&with-outlag-hms=1&with-product=1&with-tpcategory=1&with-tpmedia=1&with-tpope=1&with-tpopedataname=1&with-tppublisher=1&with-visitlag=1&with-visitlag-hms=1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tporder/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/ea/{site}/report/tporder/status.json" : {
         "get" : {
            "description" : "When sending a `search` request, you can check the generation status of the report by querying this method.",
            "operationId" : "statusDatamining:thirdpartysales",
            "parameters" : [
               {
                  "description" : "id of the jobrun generating the report as provided by the `search` query",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "jobrun-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "jobrun_status"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "INPROGRESS"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get the generation status.",
            "tags" : [
               "Datamining: third-party sales"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tporder/status.json?jobrun-id=1777564990\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tporder/status.json?jobrun-id=1777564990',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tporder/status.json?jobrun-id=1777564990');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'jobrun-id=1777564990'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/ea/{site}/report/tporder/status.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/edw/jobs" : {
         "post" : {
            "description" : "Add and start a new Eulerian Data Warehouse Analysis on remote servers.",
            "operationId" : "jobsEDWJobs",
            "parameters" : [
               {
                  "description" : "JSON message used to create an Eulerian Data Warehouse Analysis.",
                  "in" : "query",
                  "name" : "message",
                  "required" : true,
                  "schema" : {
                     "$ref" : "#/definitions/edwRequestItem"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "description" : "Eulerian Data Warehouse Analysis was successfully created and started on remote servers.",
                  "schema" : {
                     "$ref" : "#/definitions/edwResponseItem"
                  }
               }
            },
            "summary" : "Add and start a new Eulerian Data Warehouse Analysis.",
            "tags" : [
               "EDW-Jobs"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST  https://{customer}.edw.eulerian.{datacenter}/edw/jobs"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.edw.eulerian.{datacenter}/edw/jobs',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.edw.eulerian.{datacenter}/edw/jobs');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n \n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/edw/jobs/{jobid}" : {
         "get" : {
            "description" : "Get the status of an existing Eulerian Data Warehouse Analysis on remote servers.",
            "operationId" : "jobs/{jobid}EDWJobs",
            "parameters" : [
               {
                  "description" : "Eulerian Data Warehouse Analysis identifier.",
                  "in" : "path",
                  "name" : "jobid",
                  "required" : true,
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "description" : "Successfully retrieved the status of an Eulerian Data Warehouse Analysis on remote servers",
                  "schema" : {
                     "$ref" : "#/definitions/edwResponseItem"
                  }
               }
            },
            "summary" : "Get the status of an existing Eulerian Data Warehouse Analysis.",
            "tags" : [
               "EDW-Jobs"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.edw.eulerian.{datacenter}/edw/jobs/{jobid}\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.edw.eulerian.{datacenter}/edw/jobs/{jobid}',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.edw.eulerian.{datacenter}/edw/jobs/{jobid}');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.edw.eulerian.{datacenter}/edw/jobs/{jobid}', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/edw/jobs/{jobid}/cancel" : {
         "get" : {
            "description" : "Cancel an existing Eulerian Data Warehouse Analysis on remote servers.",
            "operationId" : "jobs/{jobid}/cancelEDWJobs",
            "parameters" : [
               {
                  "description" : "Eulerian Data Warehouse Analysis identifier.",
                  "in" : "path",
                  "name" : "jobid",
                  "required" : true,
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "description" : "Successfully cancelled the Eulerian Data Warehouse Analysis on remote servers.",
                  "schema" : {
                     "$ref" : "#/definitions/edwResponseItem"
                  }
               }
            },
            "summary" : "Cancel an existing Eulerian Data Warehouse Analysis.",
            "tags" : [
               "EDW-Jobs"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.edw.eulerian.{datacenter}/edw/jobs/{jobid}/cancel\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.edw.eulerian.{datacenter}/edw/jobs/{jobid}/cancel',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.edw.eulerian.{datacenter}/edw/jobs/{jobid}/cancel');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.edw.eulerian.{datacenter}/edw/jobs/{jobid}/cancel', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/account/authtree.json" : {
         "get" : {
            "description" : "This API allows you to recover all the information from data sources to which you have access according to your user profile.\n\n```\n{\n  \"meta\" : {},\n  \"error\" : false,\n  \"data\" : {\n      \"1:509\" : {\n         \"view\" : [\n            {\n               \"view_id\" : 0,\n               \"view_dflt\" : \"Y\",\n               \"view_name\" : \"Last channel\"\n            }\n         ],\n         \"website_name\" : \"preprod-test1\",\n         \"report\" : [\n            {\n               \"id\" : \"rh-1\",\n               \"uuid\" : \"dashboard\",\n               \"children\" : [\n                  {\n                     \"text\" : \"acquisition\",\n                     \"type\" : \"report\",\n                     \"uuid\" : \"insummary\",\n                     \"id\" : \"29\"\n                  },\n                  {\n                     \"type\" : \"report\",\n                     \"id\" : \"30\",\n                     \"uuid\" : \"insales\",\n                     \"text\" : \"sales\"\n                  },\n                  {\n                     \"type\" : \"report\",\n                     \"id\" : \"31\",\n                     \"uuid\" : \"inaudience\",\n                     \"text\" : \"origin\"\n                  },\n                  {\n                     \"type\" : \"report\",\n                     \"id\" : \"56\",\n                     \"uuid\" : \"website\",\n                     \"text\" : \"website\"\n                  }\n               ],\n               \"type\" : \"reportheading\",\n               \"text\" : \"dashboards\"\n            },\n            {\n               \"type\" : \"reportheading\",\n               \"id\" : \"rh-2\",\n               \"uuid\" : \"in\",\n               \"children\" : [\n                  {\n                     \"text\" : \"display\",\n                     \"type\" : \"report\",\n                     \"uuid\" : \"inadvertising\",\n                     \"id\" : \"42\"\n                  },\n                  {\n                     \"uuid\" : \"inaffiliation\",\n                     \"id\" : \"43\",\n                     \"type\" : \"report\",\n                     \"text\" : \"affiliate\"\n                }\n            ]\n          }\n        ]\n      }\n    }\n}\n```\n\nThis reponse contains for each website you have access too :\n- the list of attribution rules in the **view** entry\n- the list of reports in the **report** entry\n- information of the current **website**\n\nThe content of the response contains :\n* **text**: the name of the report as it appears in the Eulerian reporting interface.\n* **type**: the two possible values are report and reportheading. Only the entries belonging to the report type correspond to reports containing data.\n* **id**: the internal id of the report as defined in our system (internal use only)\n* **uuid**: the internal key identifying the Eulerian report. It is the value that must replace $DATASOURCE in the examples provided in this [Analytics > Reporting: real-time](#tag/Reporting:-real-time).\n\n",
            "operationId" : "authtreeAccount",
            "parameters" : [],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Retrieve the authorization tree.",
            "tags" : [
               "Account"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/authtree.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/authtree.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/authtree.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/authtree.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/account/billing.json" : {
         "get" : {
            "description" : "This query returns the billing information linked to the webmaster account sending the request.",
            "operationId" : "billingAccount",
            "parameters" : [
               {
                  "description" : "date & year for which you want the billing, format=MM-YYYY.",
                  "example" : "04-2019",
                  "in" : "query",
                  "name" : "date",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "hit"
                                 },
                                 {
                                    "name" : "view"
                                 },
                                 {
                                    "name" : "bpromoclick"
                                 },
                                 {
                                    "name" : "adview_ec"
                                 },
                                 {
                                    "name" : "click"
                                 },
                                 {
                                    "name" : "heatmap"
                                 },
                                 {
                                    "name" : "rtd"
                                 },
                                 {
                                    "name" : "bpromoview"
                                 },
                                 {
                                    "name" : "clickout"
                                 },
                                 {
                                    "name" : "grid_id"
                                 },
                                 {
                                    "name" : "hit_click"
                                 },
                                 {
                                    "name" : "total"
                                 },
                                 {
                                    "name" : "multiview"
                                 },
                                 {
                                    "name" : "content"
                                 },
                                 {
                                    "name" : "website_name"
                                 },
                                 {
                                    "name" : "website_id"
                                 },
                                 {
                                    "name" : "grid_name"
                                 }
                              ],
                              "rows" : [
                                 [
                                    740706,
                                    0,
                                    0,
                                    0,
                                    164642,
                                    1,
                                    0,
                                    73192,
                                    1780,
                                    "1",
                                    905348,
                                    980320,
                                    6,
                                    0,
                                    "site1",
                                    "529",
                                    "fr"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Billing information for a given webmaster account.",
            "tags" : [
               "Account"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/billing.json?date=04-2019\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/billing.json?date=04-2019',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/billing.json?date=04-2019');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'date=04-2019'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/billing.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/account/get_dw_access_token.json" : {
         "get" : {
            "description" : "This query returns a static access_token to create calls to the Real-Time DataWareHouse API. The token is linked to the website that are authorized for your token. You will need to provide the IP that will be used to generate the requests on the Real-Time DataWareHouse, otherwise access will not be granted. To simplify dynamic IP management access, you can provide the IP following the format : DIGITS.DIGITS.DIGITS.X (eg: 165.23.65.X) or DIGITS.DIGITS.X.X (eg: 165.23.X.X), however we do not recommend this, in case you IP changes regurarly please use the ``get_dw_session_token`` method. To access the Real-Time DataWareHouse you will need to provide the Authorization HTTP Header, example: `Authorization: Bearer $SESSION_TOKEN`",
            "operationId" : "getDwAccessTokenAccount",
            "parameters" : [
               {
                  "description" : "list of IPs separated by commas.",
                  "example" : "152.18.1.1,137.5.7.1",
                  "in" : "query",
                  "name" : "ip",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "access_token"
                                 },
                                 {
                                    "name" : "ip"
                                 },
                                 {
                                    "name" : "websites"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "DEQwyRw987654dfsdfm_8YpRfjMNTih22j30BzNouDn0aEB4Sh9u8.AvI3s5KN8o1nElA1j.z6T.V7vJHRmnQ--",
                                    "^(152.18.1.1|137.5.7.1)$",
                                    "demo-fr,demo-en"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get an access token for realtime DW.",
            "tags" : [
               "Account"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/get_dw_access_token.json?ip=152.18.1.1%2C137.5.7.1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/get_dw_access_token.json?ip=152.18.1.1,137.5.7.1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/get_dw_access_token.json?ip=152.18.1.1,137.5.7.1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ip=152.18.1.1%2C137.5.7.1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/get_dw_access_token.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/account/get_dw_session_token.json" : {
         "get" : {
            "description" : "This query returns a temporary session_token to create calls to the Real-Time DataWareHouse API. The expiration value is provided in the response, the token is linked to the website that are authorized for your token. You will need to provide the IP that will be used to generate the requests on the Real-Time DataWareHouse, otherwise access will not be granted. To access the Real-Time DataWareHouse you will need to provide the Authorization HTTP Header, example: `Authorization: Bearer $SESSION_TOKEN`",
            "operationId" : "getDwSessionTokenAccount",
            "parameters" : [
               {
                  "description" : "list of IPs separated by commas.",
                  "example" : "17.1.1.1,132.128.1.1",
                  "in" : "query",
                  "name" : "ip",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "session_token"
                                 },
                                 {
                                    "name" : "expires_in"
                                 },
                                 {
                                    "name" : "ip"
                                 },
                                 {
                                    "name" : "websites"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "DEQwyRw987654dfsdfm_8YpRfjMNTih22j30BzNouDn0aEB4Sh9u8.AvI3s5KN8o1nElA1j.z6T.V7vJHRmnQ--",
                                    3600,
                                    "^(17.1.1.1|132.128.1.1)$",
                                    "demo-fr,demo-en"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get a session token with expire date for realtime DW.",
            "tags" : [
               "Account"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/get_dw_session_token.json?ip=17.1.1.1%2C132.128.1.1\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/get_dw_session_token.json?ip=17.1.1.1,132.128.1.1',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/get_dw_session_token.json?ip=17.1.1.1,132.128.1.1');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ip=17.1.1.1%2C132.128.1.1'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/get_dw_session_token.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/account/get_kafka_session_token.json" : {
         "get" : {
            "description" : "This query returns a temporary session_token to enable the injection of real-time userparam data from a Kafka server-side integration.",
            "operationId" : "getKafkaSessionTokenAccount",
            "parameters" : [
               {
                  "default" : "IP from the originating server making the current call.",
                  "description" : "list of IPs separated by commas.",
                  "example" : "212.80.181.11,58.65.1.130",
                  "in" : "query",
                  "name" : "ip",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the site you want to target for data-injection",
                  "example" : "eulerian-corp",
                  "in" : "query",
                  "name" : "website-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "session_token"
                                 },
                                 {
                                    "name" : "expires_in"
                                 },
                                 {
                                    "name" : "ip"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "DEQwyRw987654dfsdfm_8YpRfjMNTih22j30BzNouDn0aEB4Sh9u8.AvI3s5KN8o1nElA1j.z6T.V7vJHRmnQ--",
                                    3600,
                                    "^(212.80.181.11|58.65.1.130)$"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get a session token with expire date for realtime Kafka injection.",
            "tags" : [
               "Account"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/get_kafka_session_token.json?ip=212.80.181.11%2C58.65.1.130&website-name=eulerian-corp\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/get_kafka_session_token.json?ip=212.80.181.11,58.65.1.130&website-name=eulerian-corp',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/get_kafka_session_token.json?ip=212.80.181.11,58.65.1.130&website-name=eulerian-corp');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'ip=212.80.181.11%2C58.65.1.130&website-name=eulerian-corp'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/get_kafka_session_token.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/account/getallowedwebsite.json" : {
         "get" : {
            "description" : "This query returns the list of websites that your current API Token allows you to query. It also provides the grid_id that you could have to provide to the endpoint if you have access to multiple grids.",
            "operationId" : "getallowedwebsiteAccount",
            "parameters" : [],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "grid_id"
                                 },
                                 {
                                    "name" : "grid_name"
                                 },
                                 {
                                    "name" : "website_id"
                                 },
                                 {
                                    "name" : "website_name"
                                 },
                                 {
                                    "name" : "website_tzone"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "fr",
                                    "19",
                                    "demo-es",
                                    "Europe/Madrid"
                                 ],
                                 [
                                    "1",
                                    "fr",
                                    "28",
                                    "demo-fr",
                                    "Europe/Paris"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 2
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Return list of websites you are authorized to access with your current account.",
            "tags" : [
               "Account"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/getallowedwebsite.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/getallowedwebsite.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/getallowedwebsite.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/getallowedwebsite.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/account/getreplaytoken.json" : {
         "get" : {
            "description" : "The purpose of this query is to retrieve a replay token, allowing you to inject data for past events for specific event calls, like sales, estimates, etc ...\n\nThe token is to be provided to `ereplay-aes` parameter on corresponding calls.\n\n> Once the date specified in **expires** is passed no data will be injected.",
            "operationId" : "getreplaytokenAccount",
            "parameters" : [],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "token"
                                 },
                                 {
                                    "name" : "expires"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "fyeBdCM6QoBcs5K5Su.7wF.Pvy66544DFDF-85DF--",
                                    1777651390
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Retrieve the token for replay of data.",
            "tags" : [
               "Account"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/getreplaytoken.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/getreplaytoken.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/getreplaytoken.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/getreplaytoken.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/account/getuserapitoken.json" : {
         "get" : {
            "description" : "This query returns a API token for a specific user, so that the user can use it to make calls on his behalf.",
            "operationId" : "getuserapitokenAccount",
            "parameters" : [
               {
                  "description" : "account id for which you want the API token.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "account-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "token"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "fyeBdCM6QoBcs5K5Su.7wF.Pvy66544DFDFDF--"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Return the API token for a user account.",
            "tags" : [
               "Account"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/getuserapitoken.json?account-id=1777564990\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/getuserapitoken.json?account-id=1777564990',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/getuserapitoken.json?account-id=1777564990');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'account-id=1777564990'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/getuserapitoken.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/account/ping.json" : {
         "get" : {
            "description" : "This query will ping the API so that we know we have access to it. It is mostly used for the Microsoft Excel Plug-In.",
            "operationId" : "pingAccount",
            "parameters" : [
               {
                  "description" : "id of the account to be targeted & pinged.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "account-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Ping the API so that we know we have access to it.",
            "tags" : [
               "Account"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/ping.json?account-id=1777564990\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/ping.json?account-id=1777564990',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/ping.json?account-id=1777564990');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'account-id=1777564990'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/ping.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/account/pinguser.json" : {
         "get" : {
            "description" : "This query will ping the session of the provided user account. Authorization: webmaster only.",
            "operationId" : "pinguserAccount",
            "parameters" : [
               {
                  "description" : "id of the account to be targeted & pinged.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "account-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Ping the session of the provided user account.",
            "tags" : [
               "Account"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/pinguser.json?account-id=1777564990\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/pinguser.json?account-id=1777564990',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/pinguser.json?account-id=1777564990');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'account-id=1777564990'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/pinguser.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/account/setuseractive.json" : {
         "post" : {
            "description" : "The purpose of this request is to enable the given user account.",
            "operationId" : "setuseractiveAccount",
            "parameters" : [
               {
                  "description" : "account id for which you want to enable.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "account-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Enable a user account.",
            "tags" : [
               "Account"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"account-id=1777564990\" https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/setuseractive.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'account-id' => '1777564990'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/setuseractive.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/setuseractive.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('account-id=1777564990');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'account-id' : '1777564990'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/account/setuserapitoken.json" : {
         "post" : {
            "description" : "This query resets an API token for a specific user, so that the user can use it to make calls on his behalf.\n\n> This request cancels the old API token which becomes invalid , all new accesses generated with this old token will be refused.",
            "operationId" : "setuserapitokenAccount",
            "parameters" : [
               {
                  "description" : "account id for which you want the reset to be done.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "account-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "token"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "fyeBdCM6QoBcs5K5Su.7wF.Pvy66544DFDFDF--"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Reset the API token for a user account.",
            "tags" : [
               "Account"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"account-id=1777564990\" https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/setuserapitoken.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'account-id' => '1777564990'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/setuserapitoken.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/setuserapitoken.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('account-id=1777564990');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'account-id' : '1777564990'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/account/setuserinactive.json" : {
         "post" : {
            "description" : "The purpose of this request is to disable the given user account.",
            "operationId" : "setuserinactiveAccount",
            "parameters" : [
               {
                  "description" : "account id for which you want to disable.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "account-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Disable a user account.",
            "tags" : [
               "Account"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"account-id=1777564990\" https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/setuserinactive.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'account-id' => '1777564990'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/setuserinactive.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/er/account/setuserinactive.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('account-id=1777564990');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'account-id' : '1777564990'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/cookiepedia/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "operationId" : "searchCookiepedia",
            "parameters" : [
               {
                  "description" : "id of the cookiepedia",
                  "example" : 3,
                  "in" : "query",
                  "name" : "cookiepedia-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the cookiepedia cookie",
                  "example" : "__utma",
                  "in" : "query",
                  "name" : "cookiepedia-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "must match the regexp /^(exact|contain|end|start)$/ default=start",
                  "example" : "contain",
                  "in" : "query",
                  "name" : "cookiepedia-name-like",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the cookiepediacompanytool",
                  "example" : "1",
                  "in" : "query",
                  "name" : "cookiepediacompanytool-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cookiepedia_name"
                                 },
                                 {
                                    "name" : "cookiepedia_id"
                                 },
                                 {
                                    "name" : "cookiepediacompanytool_id"
                                 },
                                 {
                                    "name" : "cookiepedia_content"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "__utma",
                                    "1",
                                    "1",
                                    "{}"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Cookiepedia"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/er/cookiepedia/search.json?cookiepedia-id=3&cookiepedia-name=__utma&cookiepedia-name-like=contain&cookiepediacompanytool-id=1&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/cookiepedia/search.json?cookiepedia-id=3&cookiepedia-name=__utma&cookiepedia-name-like=contain&cookiepediacompanytool-id=1&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/cookiepedia/search.json?cookiepedia-id=3&cookiepedia-name=__utma&cookiepedia-name-like=contain&cookiepediacompanytool-id=1&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'cookiepedia-id=3&cookiepedia-name=__utma&cookiepedia-name-like=contain&cookiepediacompanytool-id=1&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/cookiepedia/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/cookiepediacompany/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "operationId" : "searchCookiepediaCompany",
            "parameters" : [
               {
                  "description" : "name of the cookiepediacompany",
                  "example" : 3,
                  "in" : "query",
                  "name" : "cookiepediacompany-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the cookiepediacompany",
                  "example" : "Facebook",
                  "in" : "query",
                  "name" : "cookiepediacompany-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "must match the regexp /^(exact|contain|end|start)$/ default=start",
                  "example" : "contain",
                  "in" : "query",
                  "name" : "cookiepediacompany-name-like",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cookiepediacompany_name"
                                 },
                                 {
                                    "name" : "cookiepediacompany_id"
                                 },
                                 {
                                    "name" : "cookiepediacompany_content"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "Facebook",
                                    "1",
                                    "{}"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Cookiepedia Company"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/er/cookiepediacompany/search.json?cookiepediacompany-id=3&cookiepediacompany-name=Facebook&cookiepediacompany-name-like=contain&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/cookiepediacompany/search.json?cookiepediacompany-id=3&cookiepediacompany-name=Facebook&cookiepediacompany-name-like=contain&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/cookiepediacompany/search.json?cookiepediacompany-id=3&cookiepediacompany-name=Facebook&cookiepediacompany-name-like=contain&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'cookiepediacompany-id=3&cookiepediacompany-name=Facebook&cookiepediacompany-name-like=contain&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/cookiepediacompany/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/cookiepediacompanytool/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "operationId" : "searchCookiepediaCompanyTool",
            "parameters" : [
               {
                  "description" : "id of the cookiepediacompany",
                  "example" : "1",
                  "in" : "query",
                  "name" : "cookiepediacompany-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the cookiepediacompanytool",
                  "example" : 3,
                  "in" : "query",
                  "name" : "cookiepediacompanytool-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the cookiepediacompanytool",
                  "example" : "Facebook",
                  "in" : "query",
                  "name" : "cookiepediacompanytool-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "must match the regexp /^(exact|contain|end|start)$/ default=start",
                  "example" : "contain",
                  "in" : "query",
                  "name" : "cookiepediacompanytool-name-like",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "cookiepediacompanytool_name"
                                 },
                                 {
                                    "name" : "cookiepediacompanytool_id"
                                 },
                                 {
                                    "name" : "cookiepediacompany_id"
                                 },
                                 {
                                    "name" : "cookiepediacompanytool_content"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "Facebook",
                                    "1",
                                    "1",
                                    "{}"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "Cookiepedia Company Tool"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/er/cookiepediacompanytool/search.json?cookiepediacompany-id=1&cookiepediacompanytool-id=3&cookiepediacompanytool-name=Facebook&cookiepediacompanytool-name-like=contain&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/cookiepediacompanytool/search.json?cookiepediacompany-id=1&cookiepediacompanytool-id=3&cookiepediacompanytool-name=Facebook&cookiepediacompanytool-name-like=contain&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/cookiepediacompanytool/search.json?cookiepediacompany-id=1&cookiepediacompanytool-id=3&cookiepediacompanytool-name=Facebook&cookiepediacompanytool-name-like=contain&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'cookiepediacompany-id=1&cookiepediacompanytool-id=3&cookiepediacompanytool-name=Facebook&cookiepediacompanytool-name-like=contain&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/cookiepediacompanytool/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/websitegrid-overridepo/create.json" : {
         "post" : {
            "description" : "This query allows for creating a new override for a given PO key in a given language. Authorization: webmaster only.",
            "operationId" : "createOverrideText",
            "parameters" : [
               {
                  "description" : "Id of the websitegrid you are working on.",
                  "example" : 19,
                  "in" : "path",
                  "name" : "websitegrid-id",
                  "required" : true,
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "po key of the text you want to check.",
                  "example" : "var.visit",
                  "in" : "query",
                  "name" : "overridepo-po",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new text to override for the given key in given language.",
                  "example" : "my new visit text",
                  "in" : "query",
                  "name" : "overridepo-txt",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "language key for the po key of the text you want to check.",
                  "example" : "fr",
                  "in" : "query",
                  "name" : "lang-key",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "overridepo_id"
                                 },
                                 {
                                    "name" : "overridepo_po"
                                 },
                                 {
                                    "name" : "overridepo_txt"
                                 }
                              ],
                              "rows" : [
                                 [
                                    32,
                                    "var.visit",
                                    "mes visites"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new override.",
            "tags" : [
               "Over-ride Text"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"lang-key=fr&overridepo-po=var.visit&overridepo-txt=my%20new%20visit%20text\" https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'lang-key' => 'fr',\n'overridepo-po' => 'var.visit',\n'overridepo-txt' => 'my new visit text'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('lang-key=fr&overridepo-po=var.visit&overridepo-txt=my%20new%20visit%20text');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'lang-key' : 'fr',\n'overridepo-po' : 'var.visit',\n'overridepo-txt' : 'my%20new%20visit%20text'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/websitegrid-overridepo/exists.json" : {
         "get" : {
            "description" : "This query will check if an overriden text exists for a given PO & language.",
            "operationId" : "existsOverrideText",
            "parameters" : [
               {
                  "description" : "language key for the po key of the text you want to check.",
                  "example" : "fr",
                  "in" : "query",
                  "name" : "lang-key",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "po key of the text you want to check.",
                  "example" : "var.visit",
                  "in" : "query",
                  "name" : "overridepo-po",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Id of the websitegrid you are working on.",
                  "example" : 19,
                  "in" : "path",
                  "name" : "websitegrid-id",
                  "required" : true,
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "overridepo_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    116
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Check if a override PO exists",
            "tags" : [
               "Over-ride Text"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/exists.json?lang-key=fr&overridepo-po=var.visit\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/exists.json?lang-key=fr&overridepo-po=var.visit',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/exists.json?lang-key=fr&overridepo-po=var.visit');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'lang-key=fr&overridepo-po=var.visit'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/exists.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/websitegrid-overridepo/get_mapping.json" : {
         "get" : {
            "description" : "Given a language key, this query will return all the allowed PO keys for override and will provide the existing overrides for each key.",
            "operationId" : "getMappingOverrideText",
            "parameters" : [
               {
                  "description" : "language key for which you want the full mapping.",
                  "example" : "fr",
                  "in" : "query",
                  "name" : "lang-key",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "Id of the websitegrid you are working on.",
                  "example" : 19,
                  "in" : "path",
                  "name" : "websitegrid-id",
                  "required" : true,
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "global_po"
                                 },
                                 {
                                    "name" : "global_txt"
                                 },
                                 {
                                    "name" : "overridepo_id"
                                 },
                                 {
                                    "name" : "overridepo_txt"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "var.tpclickext",
                                    "clics sortants étendus",
                                    456,
                                    "mes clics"
                                 ],
                                 [
                                    "var.ratio_kgoalrealestimatevalidmargin",
                                    "objectif marge devis réelle par type",
                                    "",
                                    ""
                                 ],
                                 [
                                    "var.vrvisit_visit.short",
                                    "tx revisite",
                                    "",
                                    ""
                                 ],
                                 [
                                    "var.vcoldvisitor",
                                    "anciens VU (post-clic)",
                                    "",
                                    ""
                                 ],
                                 [
                                    "var.vcrpropertyduration.short",
                                    "prop. temps passé (pi/pc/rv)",
                                    "",
                                    ""
                                 ],
                                 [
                                    "var.vrnewcustomer.short",
                                    "nvx cli. (rv)",
                                    "",
                                    ""
                                 ],
                                 [
                                    "var.click.short",
                                    "clics",
                                    "",
                                    ""
                                 ],
                                 [
                                    "var.vrvisitpprofile",
                                    "visites par profil (revisite)",
                                    "",
                                    ""
                                 ],
                                 [
                                    "var.realscartvalidamount_visit.short",
                                    "CA réel/vis.",
                                    "",
                                    ""
                                 ],
                                 [
                                    "var.visitin.short",
                                    "vis. Entrantes",
                                    "",
                                    ""
                                 ],
                                 [
                                    "global.media.paidinclusion",
                                    "paid inclusion",
                                    8965,
                                    "New Paid Inclusion Channel"
                                 ],
                                 [
                                    "var.vcrestimatevalidamount",
                                    "CA devis (post-impression/post-clic/revisite)",
                                    "",
                                    ""
                                 ],
                                 [
                                    "var.scartvalidunique_scartvalid",
                                    "% de vente réacheteurs",
                                    "",
                                    ""
                                 ],
                                 [
                                    "var.vcrscartvalidamount.short",
                                    "CA (pi/pc/rv)",
                                    "",
                                    ""
                                 ],
                                 [
                                    "var.clickoutsession_viewoutsession",
                                    "clics sortants/impressions sortantes session",
                                    "",
                                    ""
                                 ],
                                 [
                                    "var.durationpvisit",
                                    "visites par temps passé",
                                    "",
                                    ""
                                 ],
                                 [
                                    "global.media.sponsoredlinkwobs",
                                    "liens sponsorisés (hors branding)",
                                    "",
                                    ""
                                 ],
                                 [
                                    "var.vcrhitpvisit",
                                    "nombre de visites par nombre minimum de pages vues (post-impression/post-clic/revisite)",
                                    "",
                                    ""
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 18
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get the mapping for a language",
            "tags" : [
               "Over-ride Text"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/get_mapping.json?lang-key=fr\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/get_mapping.json?lang-key=fr',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/get_mapping.json?lang-key=fr');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'lang-key=fr'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/get_mapping.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/websitegrid-overridepo/purge.json" : {
         "delete" : {
            "description" : "This query will purge all entries for all the languages. Authorization: webmaster only.",
            "operationId" : "purgeOverrideText",
            "parameters" : [
               {
                  "description" : "Id of the websitegrid you are working on.",
                  "example" : 19,
                  "in" : "path",
                  "name" : "websitegrid-id",
                  "required" : true,
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Purge all the overridden PO keys for all languages.",
            "tags" : [
               "Over-ride Text"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X DELETE \"https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/purge.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/purge.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/purge.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/purge.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/websitegrid-overridepo/remove.json" : {
         "delete" : {
            "description" : "This query allows for deleting an existing override key. Authorization: webmaster only.",
            "operationId" : "removeOverrideText",
            "parameters" : [
               {
                  "description" : "id of the override PO you want to remove.",
                  "example" : 563,
                  "in" : "query",
                  "name" : "overridepo-id",
                  "required" : true,
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Id of the websitegrid you are working on.",
                  "example" : 19,
                  "in" : "path",
                  "name" : "websitegrid-id",
                  "required" : true,
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [],
                              "rows" : []
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 0
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Remove an existing overriden PO key.",
            "tags" : [
               "Over-ride Text"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X DELETE \"https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/remove.json?overridepo-id=563\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/remove.json?overridepo-id=563',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/remove.json?overridepo-id=563');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'overridepo-id=563'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/remove.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/er/websitegrid-overridepo/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing override key. Authorization: webmaster only.",
            "operationId" : "updateOverrideText",
            "parameters" : [
               {
                  "description" : "Id of the websitegrid you are working on.",
                  "example" : 19,
                  "in" : "path",
                  "name" : "websitegrid-id",
                  "required" : true,
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "id of the override PO you want to update.",
                  "example" : 563,
                  "in" : "query",
                  "name" : "overridepo-id",
                  "required" : true,
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "new text to override for the given key in given language.",
                  "example" : "my new visit text",
                  "in" : "query",
                  "name" : "overridepo-txt",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "overridepo_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    116
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Update an existing overriden PO key.",
            "tags" : [
               "Over-ride Text"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"overridepo-id=563&overridepo-txt=my%20new%20visit%20text\" https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'overridepo-id' => '563',\n'overridepo-txt' => 'my new visit text'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/er/websitegrid-overridepo/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('overridepo-id=563&overridepo-txt=my%20new%20visit%20text');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'overridepo-id' : '563',\n'overridepo-txt' : 'my%20new%20visit%20text'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/marketplace/datamember/get_me.json" : {
         "get" : {
            "description" : "This query will retrieve all the information related to the current datamember.",
            "operationId" : "getMeDataMember",
            "parameters" : [],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "datamember_id"
                                 },
                                 {
                                    "name" : "datamember_name"
                                 },
                                 {
                                    "name" : "datamember_provider"
                                 },
                                 {
                                    "name" : "datamember_subscriber"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "11",
                                    "My DataMember",
                                    "Y",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Get information about current datamember.",
            "tags" : [
               "DataMember"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamember/get_me.json\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamember/get_me.json',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamember/get_me.json');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = ''\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamember/get_me.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/marketplace/datamember/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing datamember. Authorization: webmaster only.",
            "operationId" : "updateDataMember",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the datamember for which you want to modify attributes",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "datamember-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new datamember name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "datamember-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the subscriber attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "datamember-subscriber",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the provider attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "datamember-provider",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "datamember_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Update an existing datamember.",
            "tags" : [
               "DataMember"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"datamember-id=1777564990&datamember-name=New%20name&datamember-provider=Y&datamember-subscriber=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamember/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'datamember-id' => '1777564990',\n'datamember-name' => 'New name',\n'datamember-provider' => 'Y',\n'datamember-subscriber' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamember/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamember/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('datamember-id=1777564990&datamember-name=New%20name&datamember-provider=Y&datamember-subscriber=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'datamember-id' : '1777564990',\n'datamember-name' : 'New%20name',\n'datamember-provider' : 'Y',\n'datamember-subscriber' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/marketplace/datamemberwebsitegrid/create.json" : {
         "post" : {
            "description" : "This query allows for the current datamember to set-up a new datamember website either has a provider, subscriber or both. Afterwards the specified website will be able to provide or subscribe to shared segments. Authorization: webmaster only.",
            "operationId" : "createDataMemberWebsite",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the website to create",
                  "example" : "my-website-name",
                  "in" : "query",
                  "name" : "website-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "datamemberwebsitegrid name, by default will be the name of the website.",
                  "example" : "my-dmwg-name",
                  "in" : "query",
                  "name" : "datamemberwebsitegrid-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the subscriber attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "datamemberwebsitegrid-subscriber",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the provider attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "datamemberwebsitegrid-provider",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "datamemberwebsitegrid_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Create a new datamember website.",
            "tags" : [
               "DataMember Website"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"datamemberwebsitegrid-name=my-dmwg-name&datamemberwebsitegrid-provider=Y&datamemberwebsitegrid-subscriber=Y&website-name=my-website-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamemberwebsitegrid/create.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'datamemberwebsitegrid-name' => 'my-dmwg-name',\n'datamemberwebsitegrid-provider' => 'Y',\n'datamemberwebsitegrid-subscriber' => 'Y',\n'website-name' => 'my-website-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamemberwebsitegrid/create.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamemberwebsitegrid/create.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('datamemberwebsitegrid-name=my-dmwg-name&datamemberwebsitegrid-provider=Y&datamemberwebsitegrid-subscriber=Y&website-name=my-website-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'datamemberwebsitegrid-name' : 'my-dmwg-name',\n'datamemberwebsitegrid-provider' : 'Y',\n'datamemberwebsitegrid-subscriber' : 'Y',\n'website-name' : 'my-website-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/marketplace/datamemberwebsitegrid/make_ebmdbreqshared_available_for_subscriber.json" : {
         "post" : {
            "description" : "This query allows for initiating the sharing process of a provider shared segment to a target subscriber. Authorization: webmaster only.",
            "operationId" : "makeEbmdbreqsharedAvailableForSubscriberDataMemberWebsite",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the provider website owning the shared segment. The datamember must have access to this website.",
                  "example" : "my-provider-website-name",
                  "in" : "query",
                  "name" : "provider-website-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the shared segment from the provider website.",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "ebmdbreqshared-id",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "name of the subscriber website to which the segment is going to be shared.",
                  "example" : "my-subscriber-website-name",
                  "in" : "query",
                  "name" : "subscriber-website-name",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "if the subscriber is not the same as the provider, for example another site on another grid, you need to specify the source of the subscriber.",
                  "example" : 2,
                  "in" : "query",
                  "name" : "subscriber-datamember-id",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "ebmdbreqsharedtarget_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Share a segment to a subscriber website.",
            "tags" : [
               "DataMember Website"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"ebmdbreqshared-id=1777564990&provider-website-name=my-provider-website-name&subscriber-datamember-id=2&subscriber-website-name=my-subscriber-website-name\" https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamemberwebsitegrid/make_ebmdbreqshared_available_for_subscriber.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'ebmdbreqshared-id' => '1777564990',\n'provider-website-name' => 'my-provider-website-name',\n'subscriber-datamember-id' => '2',\n'subscriber-website-name' => 'my-subscriber-website-name'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamemberwebsitegrid/make_ebmdbreqshared_available_for_subscriber.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamemberwebsitegrid/make_ebmdbreqshared_available_for_subscriber.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('ebmdbreqshared-id=1777564990&provider-website-name=my-provider-website-name&subscriber-datamember-id=2&subscriber-website-name=my-subscriber-website-name');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'ebmdbreqshared-id' : '1777564990',\n'provider-website-name' : 'my-provider-website-name',\n'subscriber-datamember-id' : '2',\n'subscriber-website-name' : 'my-subscriber-website-name'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      },
      "/marketplace/datamemberwebsitegrid/search.json" : {
         "get" : {
            "description" : "This query allows for searching through filtering parameters & pagination.",
            "operationId" : "searchDataMemberWebsite",
            "parameters" : [
               {
                  "description" : "name of the datamemberwebsitegrid",
                  "example" : "my-test-datamemberwebsitegrid",
                  "in" : "query",
                  "name" : "datamemberwebsitegrid-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to 1 if you want it to be exact, otherwise it is \"start by\"",
                  "example" : 1,
                  "in" : "query",
                  "name" : "datamemberwebsitegrid-name-exact",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on provider flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "datamemberwebsitegrid-provider",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to filter on subscriber flag",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "datamemberwebsitegrid-subscriber",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "direction for sorting : ASC or DESC",
                  "enum" : [
                     "ASC",
                     "DESC"
                  ],
                  "example" : "DESC",
                  "in" : "query",
                  "name" : "dir",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the numbers of items to return",
                  "example" : 25,
                  "in" : "query",
                  "name" : "limit",
                  "schema" : {
                     "type" : "integer"
                  }
               },
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "the number of items to skip before starting to collect the result set",
                  "example" : 0,
                  "in" : "query",
                  "name" : "start",
                  "schema" : {
                     "type" : "integer"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "datamemberwebsitegrid_id"
                                 },
                                 {
                                    "name" : "datamemberwebsitegrid_name"
                                 },
                                 {
                                    "name" : "datamemberwebsitegrid_provider"
                                 },
                                 {
                                    "name" : "datamemberwebsitegrid_subscriber"
                                 }
                              ],
                              "rows" : [
                                 [
                                    "1",
                                    "my-website",
                                    "Y",
                                    "N"
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK"
               }
            },
            "summary" : "Search & filter through all available entries.",
            "tags" : [
               "DataMember Website"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X GET \"https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamemberwebsitegrid/search.json?datamemberwebsitegrid-name=my-test-datamemberwebsitegrid&datamemberwebsitegrid-name-exact=1&datamemberwebsitegrid-provider=Y&datamemberwebsitegrid-subscriber=Y&dir=DESC&limit=25&start=0\""
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamemberwebsitegrid/search.json?datamemberwebsitegrid-name=my-test-datamemberwebsitegrid&datamemberwebsitegrid-name-exact=1&datamemberwebsitegrid-provider=Y&datamemberwebsitegrid-subscriber=Y&dir=DESC&limit=25&start=0',\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\nmy $response = $ua->get('https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamemberwebsitegrid/search.json?datamemberwebsitegrid-name=my-test-datamemberwebsitegrid&datamemberwebsitegrid-name-exact=1&datamemberwebsitegrid-provider=Y&datamemberwebsitegrid-subscriber=Y&dir=DESC&limit=25&start=0');\n\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\n\npayload = 'datamemberwebsitegrid-name=my-test-datamemberwebsitegrid&datamemberwebsitegrid-name-exact=1&datamemberwebsitegrid-provider=Y&datamemberwebsitegrid-subscriber=Y&dir=DESC&limit=25&start=0'\nresponse = requests.get('https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamemberwebsitegrid/search.json', params=payload)\nprint(response.json())\n"
               }
            ]
         }
      },
      "/marketplace/datamemberwebsitegrid/update.json" : {
         "post" : {
            "description" : "This query allows for updating an existing datamemberwebsitegrid. Authorization: webmaster only.",
            "operationId" : "updateDataMemberWebsite",
            "parameters" : [
               {
                  "description" : "Site you are working on",
                  "example" : "my-website",
                  "in" : "path",
                  "name" : "site",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "id of the datamemberwebsitegrid for which you want to modify attributes",
                  "example" : 1777564990,
                  "in" : "query",
                  "name" : "datamemberwebsitegrid-id",
                  "required" : true,
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "new datamemberwebsitegrid name",
                  "example" : "New name",
                  "in" : "query",
                  "name" : "datamemberwebsitegrid-name",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the subscriber attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "datamemberwebsitegrid-subscriber",
                  "schema" : {
                     "type" : "string"
                  }
               },
               {
                  "description" : "set to Y or N to modify the provider attribute",
                  "example" : "Y",
                  "in" : "query",
                  "name" : "datamemberwebsitegrid-provider",
                  "schema" : {
                     "type" : "string"
                  }
               }
            ],
            "responses" : {
               "200" : {
                  "content" : {
                     "application/json" : {
                        "example" : {
                           "data" : {
                              "fields" : [
                                 {
                                    "name" : "datamemberwebsitegrid_id"
                                 }
                              ],
                              "rows" : [
                                 [
                                    1777564990
                                 ]
                              ]
                           },
                           "error" : false,
                           "error_code" : "ERROR_CODE",
                           "error_msg" : "ERROR_MSG",
                           "meta" : {
                              "elapsed" : "0.235",
                              "host" : "er11",
                              "pid" : 10847,
                              "reqid" : "1777564990108471777564990",
                              "start" : 0,
                              "tm" : 1777564990,
                              "total" : 1
                           }
                        },
                        "schema" : {
                           "$ref" : "#/components/schemas/StandardAPIResponse"
                        }
                     }
                  },
                  "description" : "OK",
                  "links" : {
                     "searchDataMemberWebsite" : {
                        "description" : "Use the value of datamemberwebsitegrid_id entry to update a datamemberwebsitegrid through datamemberwebsitegrid-id parameter.",
                        "operationId" : "searchDataMemberWebsite",
                        "parameters" : {
                           "datamemberwebsitegrid-id" : "$response.body#/data/rows/0/0"
                        }
                     }
                  }
               }
            },
            "summary" : "Update an existing datamemberwebsitegrid.",
            "tags" : [
               "DataMember Website"
            ],
            "x-codeSamples" : [
               {
                  "lang" : "curl",
                  "source" : "curl -H 'Authorization: Bearer {apitoken}' -X POST -d \"datamemberwebsitegrid-id=1777564990&datamemberwebsitegrid-name=New%20name&datamemberwebsitegrid-provider=Y&datamemberwebsitegrid-subscriber=Y\" https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamemberwebsitegrid/update.json"
               },
               {
                  "lang" : "php",
                  "source" : "<?php\n$curl = curl_init();\n\n$params= [\n'datamemberwebsitegrid-id' => '1777564990',\n'datamemberwebsitegrid-name' => 'New name',\n'datamemberwebsitegrid-provider' => 'Y',\n'datamemberwebsitegrid-subscriber' => 'Y'\n];\n$defaults = array(\n  CURLOPT_URL            => 'https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamemberwebsitegrid/update.json',\n  CURLOPT_POST           => 1,\n  CURLOPT_POSTFIELDS     => http_build_query($params),\n  CURLOPT_RETURNTRANSFER => 1,\n  CURLOPT_HTTPHEADER     => array('Authorization: Bearer {apitoken}')\n);\ncurl_setopt_array($curl, $defaults);\n$resp = curl_exec($curl);\ncurl_close($curl);\n?>\n"
               },
               {
                  "lang" : "perl",
                  "source" : "require LWP::UserAgent;\nrequire HTTP::Request;\nmy $ua = LWP::UserAgent->new;\n$ua->timeout(10);\nmy $req = new HTTP::Request('POST','https://{customer}.api.eulerian.{datacenter}/ea/v2/marketplace/datamemberwebsitegrid/update.json');\n$ua->default_headers( 'Authorization' => 'Bearer {apitoken}' );\n$req->content_type('application/x-www-form-urlencoded');\n$req->content('datamemberwebsitegrid-id=1777564990&datamemberwebsitegrid-name=New%20name&datamemberwebsitegrid-provider=Y&datamemberwebsitegrid-subscriber=Y');\nmy $response = $ua->request( $req );\nif ($response->is_success) {\n  print $response->decoded_content;\n} else {\n  die $response->status_line;\n}\n"
               },
               {
                  "lang" : "python",
                  "source" : "import requests\npayload = {\n 'datamemberwebsitegrid-id' : '1777564990',\n'datamemberwebsitegrid-name' : 'New%20name',\n'datamemberwebsitegrid-provider' : 'Y',\n'datamemberwebsitegrid-subscriber' : 'Y'\n\n}\nresponse = requests.post(endpoint, json=payload, headers ={'content-type': 'application/json', 'authorization':'Bearer {apitoken}'})\nprint(response.json())\n"
               }
            ]
         }
      }
   },
   "security" : [
      {
         "BearerAuth" : []
      }
   ],
   "servers" : [
      {
         "description" : "API host for issuing requests to",
         "url" : "https://{customer}.api.eulerian.{datacenter}/ea/v2",
         "variables" : {
            "customer" : {
               "default" : "$YOUR_CUSTOMER_DOMAIN",
               "description" : "Your customer reporting domain name"
            },
            "datacenter" : {
               "default" : "com",
               "description" : "The platform/datacenter you must target",
               "enum" : [
                  "com",
                  "ca"
               ]
            }
         }
      }
   ],
   "tags" : [
      {
         "description" : "API for managing information about your account.",
         "name" : "Account"
      },
      {
         "description" : "This API allows you to manage the list of actionlabel1\"s that can be linked to any given action.",
         "name" : "ActionLabel1"
      },
      {
         "description" : "This API allows you to manage the list of actionlabel2\"s that can be linked to any given action.",
         "name" : "ActionLabel2"
      },
      {
         "description" : "This API allows you to manage the list of actionlabel3\"s that can be linked to any given action.",
         "name" : "ActionLabel3"
      },
      {
         "description" : "This API allows you to manage the list of actionlabel4\"s that can be linked to any given action.",
         "name" : "ActionLabel4"
      },
      {
         "description" : "This API allows you to manage the list of actionlabel5\"s that can be linked to any given action.",
         "name" : "ActionLabel5"
      },
      {
         "description" : "This API allows you to manage the adhoc jobs for a given website.",
         "name" : "Adhoc"
      },
      {
         "description" : "This API allows you to manage the audiences in which you'll be able to create clustervalues. You'll be able to access analytics reports and use the cluster for DMP activation.",
         "name" : "Audience"
      },
      {
         "description" : "This API allows you to work with the audience engine and provides methods for requesting data generated by the audience engine.",
         "name" : "Audience Engine"
      },
      {
         "description" : "This API allows you to manage the autoreports for a given website.",
         "name" : "AutoReport"
      },
      {
         "description" : "This API allows you to send batch reporting request to the reporting engine. Depending on the `kind` of the report the query `request` and response will be different. Below is explained the real-time type of query.\n\n\nYou can check the Postman examples - https://documenter.getpostman.com/view/15399981/2s93JqSQgY.\n\n### Specific cases\n\n#### Dimension Explorer\n\n**WARNING** : data for the **current day** is never available.\n\nWhen you want to request data from the Dimension Explorer feature you need :\n* to know which dimensions you want to query it is provided in the `field` property which is the exact name of the dimension\n* to use the specific `rt#dewebsite` kind\n\nYou can provide multiple dimensions to deduplicate the data and thus have access to very granular information as long as the dimension have been declared.\n```\n\"dimensions\" : [\n  { \"name\" : \"dimension pagegroup\", \"field\" : \"PageGroup\" },\n  { \"name\" : \"dimension actionlabel1\", \"field\" : \"ActionLabel1\" },\n  { \"name\" : \"dimension pagelabel5\", \"field\" : \"PageLabel5\" },\n  { \"name\" : \"dimension ordertype\", \"field\" : \"OrderType\" },\n],\n```\nWill deduplicate all the entries between them.\n\n#### Segmenting\n\nFor specific metrics you can have the ability to segment the metric in subsets.\nYou can segment :\n* sales metrics for `kind` providing sales metrics per `ordertype`, `orderpayment`, `geoloc`, `shop`\n* estimates metrics for `kind` providing estimates metrics per `estimatetype`, `geoloc`, `shop`\n* action metrics for `kind` providing action metrics per `action`\n* landing page for `kind = \"rt#landing\"` metrics per `pagegroup`, `pageinfo`\n\n",
         "name" : "Batch Reporting"
      },
      {
         "description" : "This API allows you to manage the campaigns sending trafic to your website.\n\n\n### Third-party data import: click, impression, cost/adspend\n\nIt is possible to import the clicks, impressions and budgets data for any paid campaign declared in Eulerian.\nThe file structure will vary depending on the context and the channel. You will find below a sample CSV file structure :\n\n```\nea:date;ea:ope;ea:clickthruurl;ea:location;ea:creative;ea:product;ea:external_view;ea:external_click;ea:external_cost\n2016-12-25;nom_de_la_campagne1;http://site-de-destination.com;generic;clearpix;ABC123;2000;500;120.54\n2016-04-08;nom_de_la_campagne2;http://site-de-destination.com;homepage;banniere;produit1;1500;250;89.45\n```\n#### File specification\n* the file has `.csv` extension\n* the fils is a CSV file format\n* the file must be sent via a `POST` call to the appropriate URL.\n* the separator to be used is the **semi-colon (;)**.\n* the columns `ea:ope` / `ea:location` / `ea:creative` / `ea:product` must exist to be applied\n* the file's first line must contain the columns according to the type of upload.\n* the file must be encoded in **UTF-8**.\n* the file size limit is set to **5Mo**.\n* the data will not be distributed throughout the day but injected at midday according to the time zone of the site.\n\n#### Columns specifications\n<table>\n <tr><td><strong>Field</strong></td><td><strong>Description</strong></td><td><strong>Type</strong></td><td><strong>Mandatory</strong></td></tr>\n <tr><td>ea:date</td><td>date in YYYY-MM-DD format</td><td>text</td><td><strong>yes</strong></td></tr>\n <tr><td>ea:ope </td><td>campaign name</td><td>text</td><td><strong>yes</strong></td></tr>\n <tr><td>ea:clickthruurl</td><td>redirect url</td><td>text</td><td>only for <a href=\"#tag/Campaign/paths/~1ea~1{site}~1db~1ope~1externaldataupload_partnership.json/post\">externaldataupload_partnership</a></td></tr>\n <tr><td>ea:location</td><td>location name</td><td>text</td><td>only for <a href=\"#tag/Campaign/paths/~1ea~1{site}~1db~1ope~1externaldataupload_advertising.json/post\">externaldataupload_advertising</a></td></tr>\n <tr><td>ea:creative</td><td>creative name</td><td>text</td><td>only for <a href=\"#tag/Campaign/paths/~1ea~1{site}~1db~1ope~1externaldataupload_advertising.json/post\">externaldataupload_advertising</a> & <a href=\"#tag/Campaign/paths/~1ea~1{site}~1db~1ope~1externaldataupload_affiliation.json/post\">externaldataupload_affiliation</a></td></tr>\n <tr><td>ea:product</td><td>product SKU reference</td><td>text</td><td>only for <a href=\"#tag/Campaign/paths/~1ea~1{site}~1db~1ope~1externaldataupload_product.json/post\">externaldataupload_product</a></td></tr>\n <tr><td>ea:external_view</td><td>impressions</td><td>integer</td><td>no</td></tr>\n <tr><td>ea:external_click</td><td>clicks</td><td>integer</td><td>no</td></tr>\n <tr><td>ea:external_cost</td><td>cost / adspend</td><td>float</td><td>no</td></tr>\n</table>\n\n#### Data processing\n\nEulerian recommends waiting until the end of the day to upload third-party data added throughout the previous day.\nThis API has been developed to upload data added daily, and not incremental intra-day data.\nEulerian also recommends to upload the data all at once and not in several imports during the day. However, if you choose this option or you do not have another choice, you must treat these data before uploading it. Every file import during the day will add up previous click, impression and budget data to the metrics.\n\nYou will find below an example of 3 files with incremental data uploaded throughout a given day:\n\n<table>\n <tr>\n  <td><strong>Date the intra-day data was injected</strong></td>\n  <td><strong>Added data</strong></td>\n  <td><strong>Incremental values to upload</strong></td>\n </tr>\n <tr>\n  <td> Beginning of the day </td>\n  <td>  cost = 0 EUR, clicks = 0, impressions = 0 </td>\n  <td> cost = 0 EUR, clicks = 0, impressions = 0 </td>\n </tr>\n <tr>\n  <td> Middle of the day </td>\n  <td>  cost = 2 EUR, clicks = 2, impressions = 10 </td>\n  <td> cost = 2 EUR, clicks = 2, impressions = 10 </td>\n </tr>\n <tr>\n  <td> End of the day </td>\n  <td> cost = 5 EUR, clicks = 6, impressions = 60 </td>\n  <td> cost = 3 EUR, clicks = 4, impressions = 50 </td>\n </tr>\n</table>\n\n\n**Total of the day**: cost = 5 EUR, clicks = 6, impressions = 60\n\nIf you wish to add intra-day data but you cannot easily upload incremental data, you can always call the externaldata_reset function for a given period before every new upload.\n\n#### Cumulative with existing economic models\n\nWhen the campaign to which you import the costs already has an economic model declared in the interface, these data will be automatically uploaded.\nFor example, if you have declared on the concerned period: a CPC of EUR 0.2 when the campaign has had 200 clicks you have imported a cost of EUR 25, the sum shown in the reports will be a total of EUR 65.\n\n#### Tax management\n\nPlease note that while importing the costs data, no taxes will be added. You must import the most relevant values to calculate the profit that will be displayed in the interface reportings.\n\n\n#### Granularity\n\nThe level of granularity varies depending on the type of channel. If you do not have all the details required by the API when uploading the costs data to the interface, you must replace the missing entries with generic information.\nFor example, thanks to the impression and click links, the details displayed in the display channel will include: campaigns > locations > creatives :\n\nThe file should be as the example below:\n```\nea:date;ea:ope;ea:location;ea:creative;ea:external_view;ea:external_click;ea:external_cost\n2014-01-01;Campaign_name_1;Location_1;Creative_1;12510;21;0.23\n2014-01-01;Campaign_name_1;Location_1;Creative_2;123;2;0\n2014-01-02;Campaign_name_1;Location_1;Creative_1;5;0;0.12\n2014-01-03;Campaign_name_1;Location_1;Creative_1;500;12;15.2\n2014-01-04;Campaign_name_1;Location_1;Creative_1;0;2;1.2\n```\n\nWhen the third-party system cannot provide the details of the creative, you will have to enter a generic creative by adding entries including campaign/location:\n```\nea:date;ea:ope;ea:location;ea:creative;ea:external_view;ea:external_click;ea:external_cost\n2014-01-01;Campaign_name_1;Location_1;clearpix;12633;23;0.23\n2014-01-02;Campaign_name_1;Location_1;clearpix;5;0;0.12\n2014-01-03;Campaign_name_1;Location_1;clearpix;500;12;15.2\n2014-01-04;Campaign_name_1;Location_1;clearpix;0;2;1.2\n ```\n\nIn the reports, the Campaign and Location data will be coherent, but if you segment the Creative data you will have:\n* Creative_1 with impressions and clicks uploaded by Eulerian.\n* Creative_2 with impressions and clicks uploaded by Eulerian.\n* New clearpix entry that will only include external impressions, clicks and costs data.\n\n> You must ensure the clearpix creative you will force will be properly associated with the campaign/location, either by generating a faux click or impression, either by associating it via a technical media plan upload or via the interface. The API does not automatically create the entry.\n\n\n",
         "name" : "Campaign"
      },
      {
         "description" : "This API allows you to manage the categories to which you can link ETM TMS tags a be able to retrieve customer consent.",
         "name" : "Category"
      },
      {
         "description" : "This API allows you to manage the text describing categories per language.",
         "name" : "Category Language"
      },
      {
         "description" : "This API allows you to manage the context-flags linked to specific content consumption of your site. You'll be able to use the context-flag for data activation.",
         "name" : "ContextFlag"
      },
      {
         "description" : "This API allows you to manage the categories of context-flags linked to specific content consumption of your site. You'll be able to use the context-flag category for data activation.",
         "name" : "ContextFlag Category"
      },
      {
         "description" : "This API allows you to manage your 1st party cookies ",
         "name" : "CookieControl"
      },
      {
         "description" : "This API allows you to manage your first party cookies groups known as families ",
         "name" : "CookieControlFamily"
      },
      {
         "description" : "This API allows you to manage your cookies rules",
         "name" : "CookieControlRules"
      },
      {
         "description" : "This API allows you to manage some of the values stored in your 1st party cookies. **The value is as hash of the raw value recovered through the 1st party cookies, we do not store the raw value to avoid any security & privacy & confidentiality issues**. We only store a limited subset of hashed values to monitor the way they change & evolve other time.",
         "name" : "CookieControlValueExample"
      },
      {
         "description" : "This API allows you to search through the listed cookiepedia cookies",
         "name" : "Cookiepedia"
      },
      {
         "description" : "This API allows you to search through the listed cookiepedia companies",
         "name" : "Cookiepedia Company"
      },
      {
         "description" : "This API allows you to search through the listed cookiepedia company tools",
         "name" : "Cookiepedia Company Tool"
      },
      {
         "description" : "This API allows you to manage the creative for which you have inbound trafic linked to.",
         "name" : "Creative"
      },
      {
         "description" : "This API allows you to manage the CRM parameters linked to identified users.\n\n\nYou can provide the value of the CRM parameters for a given uid either through the on-site dataLayer and/or through an async file upload of CRM data.\n\n\nThe dtype or typing of the parameter (`iduserparam_dtype`) is linked to the kind of data that constitutes the values of the parameter : \n* 0 - it is text.\n* 1 - it is an unsigned 32 bits integer.\n* 2 - it is an unsigned float.\n* 3 - it is a boolean.\n\n\nYou can provide a modification time linked to a CRM parameter allowing to know for a given user, when the value linked to it has last been updated, this is useful when you want to work on the freshness of the data. It is done through the `iduserparam_wmtime` flag optionnaly you can provide an `iduserparam_expiredays` number of days that will tell the system when the data must be purged.\n\n\nIf you want to make sure the historical data is hashed by the system, you can provide `iduserparam_hashalgo` and `iduserparam_hashdelay` to tell the system when the data must be hashed when extracting historical information.",
         "name" : "CRM Parameters"
      },
      {
         "description" : "This API allows you to manage the custom parameters linked to sales, estimates, etc ... They can be sometimes refered as [CGI](https://en.wikipedia.org/wiki/Common_Gateway_Interface) parameters as they are passed through URL parameters.\n\nUsually these custom parameters are provided through the on-site DataLayer, however they can also be captured and stored through a click and/or pixel tracking tag for further re-use.\n\nOnce the data is captured it can be stored for shopping carts, estimates, transactions, etc ... and re-used in the activation modules.",
         "name" : "Custom Parameters"
      },
      {
         "description" : "This API allows you to manage the values linked to custom parameters linked to sales, estimates, etc ... They can be sometimes refered as [CGI](https://en.wikipedia.org/wiki/Common_Gateway_Interface) parameters as they are passed through URL parameters.",
         "name" : "Custom Parameters Value"
      },
      {
         "description" : "This API allows you to interact with Eulerian's Customer Journey engine.\n\nIt uses the [Batch Reporting](#tag/Batch-Reporting) service for sending reporting request, yuo need to :\n* build the request you want to send depending on the report you are asking for\n* send the request through the [query](#tag/Batch-Reporting%2Fpaths%2F~1ea~1{site}~1report~1batch~1query.json%2Fpost) call of the [Batch Reporting](#tag/Batch-Reporting) service\n* wait for the `COMPLETED` status by polling [status](#tag/Batch-Reporting%2Fpaths%2F~1ea~1{site}~1report~1batch~1status.json%2Fget) of the [Batch Reporting](#tag/Batch-Reporting) service\n* once the report is completed [download](#tag/Batch-Reporting%2Fpaths%2F~1ea~1{site}~1report~1batch~1download.json%2Fget) the reporting data through the [Batch Reporting](#tag/Batch-Reporting) service\n\nThings to know :\n* Customer Journey service is only available for webmaster type of accounts.\n* You cannot request data on the last 48 hours\n* You cannot request multiple date ranges in a single call\n\nFull documentation is available in our [wiki](https://eulerian.wiki/doku.php?id=en:modules:attribution:mediatrend:start)\n\nAvailable filters are documented [here](https://eulerian.wiki/doku.php?id=en:modules:attribution:mediatrend:filters)\n\n",
         "name" : "Customer Journey"
      },
      {
         "description" : "This API allows you to manage the data providers for syncing data either in real-time or through batch uploads. You will need to manager data providers so that you can manage afterwards the [Data Provider Parameters](#tag/Data-Provider-Parameters).",
         "name" : "Data Provider"
      },
      {
         "description" : "This API allows you to manage the data provider parameters, it can also be refered to as data provider parameters. It is used to augment data linked to users stored in the database.\n\n\nThe depth of a data provider parameter (`partneruserparam_depth`) indicates at which level the parameter is considered to be, usually we use this categorization but it is up to you :\n* 1 - first party data: usually generated by you.\n* 2 - second party data: usually generated by a second party based on your first party data.\n* 3 - third party data: usually generated by a third party, used to enhance your own data.\n\n\nThe dtype or typing of the parameter (`partneruserparam_dtype`) is linked to the kind of data that constitutes the values of the parameter : \n* 0 - it is text.\n* 1 - it is an unsigned 32 bits integer.\n* 2 - it is an unsigned float.\n* 3 - it is a boolean.\n\n\nThe collector flag (`partneruserparam_collector`) indicates if the data is collected through a real-time tag (`Y`) or if the data is synced through an asynchronous file (`N`).\n\n\nYou can provide a modification time linked to a data provider parameter allowing to know for a given user, when the value linked to it has last been updated, this is useful when you want to work on the freshness of the data. It is done through the `partneruserparam_wmtime` flag optionnaly you can provide an `partneruserparam_expiredays` number of days that will tell the system when the data must be purged.\n\n\nIf you want to make sure the historical data is hashed by the system, you can provide `partneruserparam_hashalgo` and `partneruserparam_hashdelay` to tell the system when the data must be hashed when extracting historical information.",
         "name" : "Data Provider Parameters"
      },
      {
         "description" : "This API allows you to manage the datamember profile of a customer wanting to participate in the Data Marketplace. Only Eulerian can make a customer becoming a datamember of the marketplace.",
         "name" : "DataMember"
      },
      {
         "description" : "This API allows you to manage the data sharing authorizations for website you have access too.",
         "name" : "DataMember Website"
      },
      {
         "description" : "This API allows the query of the estimates logs available in the report datamining â list of estimates.\n\n**Specific information regarding status modifications**\n* if the current status is **PENDING** : you can update to **VALID** and provide a partial amount, through the [valid](#tag/Datamining:-estimates/paths/~1ea~1{site}~1report~1estimate~1valid.json/post) method.\n* if the current status is **PENDING** : you can update to **INVALID** through the [cancel](#tag/Datamining:-estimates/paths/~1ea~1{site}~1report~1estimate~1cancel.json/post) method.\n* if the current status is **VALID** : you can update to **INVALID** through the [cancel](#tag/Datamining:-estimates/paths/~1ea~1{site}~1report~1estimate~1cancel.json/post) method, except if the estimate has already been partially validated with a partial amount.\n* if the current status is **INVALID** : you can update to **VALID** through the [valid](#tag/Datamining:-estimates/paths/~1ea~1{site}~1report~1estimate~1valid.json/post) method, except if the estimate has already been partially validated with a partial amount, you cannot partially validate the amount of an esimate for a previously canceled estimate.\n\n> If you are providing the `ea-apiasync` parameter you need to check that the intended modifications have been made, the async nature of the call will not allow us to provide you with the error that can occur.",
         "name" : "Datamining: estimates"
      },
      {
         "description" : "This API allows the query of the goal logs (actionlog) available in the report datamining â list of goals.",
         "name" : "Datamining: goals"
      },
      {
         "description" : "API Eulerian allows the query of the internal searchengine request logs available in the report datamining â list of internal searchengine request.",
         "name" : "Datamining: internal searchengine request"
      },
      {
         "description" : "API Eulerian allows the query of the outbound clics logs available in the report datamining â list of outbound clicks.",
         "name" : "Datamining: outbound clicks"
      },
      {
         "description" : "This API allows the query of the sales logs available in the report datamining â list of sales.  It also allows you to carry out actions on your sales and to validate or cancel them automatically. Last, you can even inject offline sales in the system in order to associate them an online marketing history collected via Eulerian.\n\n**Specific information regarding status modifications**\n* if the current status is **PENDING** : you can update to **VALID** and provide a partial amount, through the [valid](#tag/Datamining:-sales/paths/~1ea~1{site}~1report~1order~1valid.json/post) method.\n* if the current status is **PENDING** : you can update to **INVALID** through the [cancel](#tag/Datamining:-sales/paths/~1ea~1{site}~1report~1order~1cancel.json/post) method.\n* if the current status is **VALID** : you can update to **INVALID** through the [cancel](#tag/Datamining:-sales/paths/~1ea~1{site}~1report~1order~1cancel.json/post) method, except if the sale has already been partially validated with a partial amount.\n* if the current status is **INVALID** : you can update to **VALID** through the [valid](#tag/Datamining:-sales/paths/~1ea~1{site}~1report~1order~1valid.json/post) method, except if the sale has already been partially validated with a partial amount, you cannot partially validate the amount of a previsouly canceled sale.\n\n> If you are providing the `ea-apiasync` parameter you need to check that the intended modifications have been made, the async nature of the call will not allow us to provide you with the error that can occur.",
         "name" : "Datamining: sales"
      },
      {
         "description" : "API Eulerian allows the query of the shopping carts logs available in the report datamining â list of shopping carts.",
         "name" : "Datamining: shopping carts"
      },
      {
         "description" : "API Eulerian allows the query of the third-party sales logs available in the report datamining â list of third-party sales.",
         "name" : "Datamining: third-party sales"
      },
      {
         "description" : "This API allows you to manage the dedimension generated by the users consuming your website. You'll be able to access analytics reports.",
         "name" : "DEDimension"
      },
      {
         "description" : "This API allows you to manage the deny IP & domain for which you want data-collection to be blocked.",
         "name" : "Deny"
      },
      {
         "description" : "This API allows you to check the type of devices available on your site.",
         "name" : "Device Type"
      },
      {
         "description" : "This API allow calls to Eulerian DataWareHouse",
         "name" : "EDW-Jobs"
      },
      {
         "description" : "This API allows you to replay missing or incomplete empdb generation for a given date.",
         "name" : "EMPDB"
      },
      {
         "description" : "This API allows you to test encryptiong & decryption payloads when you want to send an encrypted param to the data-collection service.\n\n The allowed format for encrypting / decrypting are provided through the ``format`` parameter and are held on the first character of an encrypted payload, allowed format are :\n\nFormat: **0**\n - alogithm: AES-256 - SHA256\n - magic: Salted__\n - salt: PKCS5\n - Padding: PKCS7\n - Key SZ: 32\n - IV SZ: 16\n - Password to Key/Iv - sha256 EVP_BytesToKey\n\n\n\n> **WARNING**: this is **not** to be used in production, it is only to for **testing** purposes.",
         "name" : "Encrypt/Decrypt"
      },
      {
         "description" : "This API allows you to manage the syncpartner EPC for a given website.",
         "name" : "EPC"
      },
      {
         "description" : "This API allows you to manage the type of an estimate / quote.",
         "name" : "EstimateType"
      },
      {
         "description" : "This API allows you to manage the custom estimate type by grouping multiple estimate type in one.",
         "name" : "EstimateTypeCustom"
      },
      {
         "description" : "This API allow you to use Eulerian URL shortener.\n\n> You can define a custom domain name for the shortening domain. For this, you will need:\n\n> To configure the option custom shortening domain (this must be done by your AM).\n\n> To declare the site in our platform: in case you define a custom domain, the **HTTPS** links on this domain will not be managed.",
         "name" : "ETrim"
      },
      {
         "description" : "This API allows you to manage the expandlimit rules for dynamic data ingestion.",
         "name" : "ExpandLimit"
      },
      {
         "description" : "This API allows you to manage the shared segments sent by a datamember website. You can only see these segments if you are a subscriber to a datamember provider.",
         "name" : "External Segment"
      },
      {
         "description" : "This API allows you to manage the funnel generated by the users consuming your website. You'll be able to access analytics reports.",
         "name" : "Funnel"
      },
      {
         "description" : "This API allows you to manage the action/goal generated by the users consuming your website. You'll be able to access analytics reports.",
         "name" : "Goal"
      },
      {
         "description" : "This API allows you to interact with Eulerian's Incrementality engine.",
         "name" : "Incrementality"
      },
      {
         "description" : "This API allows you to manage the insights for a given website.",
         "name" : "Insight"
      },
      {
         "description" : "This API allows you to manage the IPs that you want to whitelist for your current site. This can come from your own systems and avoid therefore the fraud-mechanisms to be triggered. The solution works by IP ranges so that you do not need to specificy each IP one by one.",
         "name" : "IP Whitelist"
      },
      {
         "description" : "This API allows you to manage the labels to group specific entries.",
         "name" : "Label"
      },
      {
         "description" : "This API allows you to manage the location for which you have inbound trafic linked to.",
         "name" : "Location"
      },
      {
         "description" : "This API allows you to manage the mediacategory for creating custom media groups.",
         "name" : "MediaCategory"
      },
      {
         "description" : "This API allows you to manage the MMM jobs for a given website.",
         "name" : "MMM"
      },
      {
         "description" : "This API allows you to manage the mmmdatasource.",
         "name" : "MMM DataSource"
      },
      {
         "description" : "This API allows you to interact with Eulerian's Multi-Touch Attribution engine, MTA.",
         "name" : "Multi-Touch Attribution"
      },
      {
         "description" : "This API allows you to manage the list of omnichannelgroup1\"s that can be linked to any given shop.",
         "name" : "OmniChannelGroup1"
      },
      {
         "description" : "This API allows you to manage the list of omnichannelgroup2\"s that can be linked to any given shop.",
         "name" : "OmniChannelGroup2"
      },
      {
         "description" : "This API allows you to manage the list of omnichannelgroup3\"s that can be linked to any given shop.",
         "name" : "OmniChannelGroup3"
      },
      {
         "description" : "This API allows you to manage the list of omnichannelgroup4\"s that can be linked to any given shop.",
         "name" : "OmniChannelGroup4"
      },
      {
         "description" : "This API allows you to manage the list of omnichannelgroup5\"s that can be linked to any given shop.",
         "name" : "OmniChannelGroup5"
      },
      {
         "description" : "This API allows you to manage the type of an payments linked to a transaction / sale.",
         "name" : "OrderPayment"
      },
      {
         "description" : "This API allows you to manage the custom order payment by grouping multiple order payment in one.",
         "name" : "OrderPaymentCustom"
      },
      {
         "description" : "This API allows you to manage the type of a transaction / sale.",
         "name" : "OrderType"
      },
      {
         "description" : "This API allows you to manage the custom order type by grouping multiple order type in one.",
         "name" : "OrderTypeCustom"
      },
      {
         "description" : "This API allows you to manage the specific settings for outbound campaigns.\nCurrently you will be able to manage the cookie attribution window for specific campaigns:\n* vccookieage : allows you to manage post-clic attribution window.\n* vvcookieage : allows you to manage post-impression attribution window.\n> If you define a cookie attribution window at outbound campaign level, these parameters will be used.\n> If you do not have a cookie attribution window at outbound campaign level, the system will check at publisher level.\n> If you do not have a cookie attribution window at publisher level, then the global outbound campaign settings will be used.",
         "name" : "Outbound Campaigns Parameters"
      },
      {
         "description" : "This API allows you to manage the specific settings for outbound publishers, these settings will be applied on all the outbound campaigns linked to the current publisher.\nCurrently you will be able to manage the cookie attribution window for specific publishers:\n* vccookieage : allows you to manage post-clic attribution window.\n* vvcookieage : allows you to manage post-impression attribution window.\n> If you define a cookie attribution window at outbound campaign level, these parameters will be used.\n> If you do not have a cookie attribution window at outbound campaign level, the system will check at publisher level.\n> If you do not have a cookie attribution window at publisher level, then the global outbound campaign settings will be used.",
         "name" : "Outbound Publishers Parameters"
      },
      {
         "description" : "This API allows you to manage the override keys per language for a given website, you will be able to customize the name of the metrics & the name of the channels in the user-interface for all of your users. It will be global for all the website, it is not bound to an account.",
         "name" : "Over-ride Text"
      },
      {
         "description" : "This API allows you to manage the pagegroup aggregating trafic for all the pages of your website. You'll be able to access analytics reports and use the pagegroup for DMP activation.",
         "name" : "PageGroup"
      },
      {
         "description" : "This API allows you to manage the page collected by the platform.",
         "name" : "PageInfo"
      },
      {
         "description" : "This API allows you to manage the list of pagelabel1\"s that can be linked to any given page.",
         "name" : "PageLabel1"
      },
      {
         "description" : "This API allows you to manage the list of pagelabel2\"s that can be linked to any given page.",
         "name" : "PageLabel2"
      },
      {
         "description" : "This API allows you to manage the list of pagelabel3\"s that can be linked to any given page.",
         "name" : "PageLabel3"
      },
      {
         "description" : "This API allows you to manage the list of pagelabel4\"s that can be linked to any given page.",
         "name" : "PageLabel4"
      },
      {
         "description" : "This API allows you to manage the list of pagelabel5\"s that can be linked to any given page.",
         "name" : "PageLabel5"
      },
      {
         "description" : "This API allows you to check if a partner publisher exists or not. The goal of a partner publisher is to provide the ability for our solution to link 3rd party identifies provided by a partner so that we can later use it in activation and/or attribution processes :\n\n* activation: we use this process to store the cookie-matching table in our solutions for s2s activation.\n\n* attribution: we use this process to store the clickid or userid so that we can send data-feeds to publishers following specific attribution rules",
         "name" : "Partner Publisher"
      },
      {
         "description" : "This API allows you to manage the partner segments, the one that are populated either by real-time dataconnector calls and/or via async file upload.",
         "name" : "Partner Segments"
      },
      {
         "description" : "This API allows you to manage the products.",
         "name" : "Product"
      },
      {
         "description" : "This API allows you to manage the parameters linked to products so that you can provide information about your product catalog.",
         "name" : "Product Parameters"
      },
      {
         "description" : "This API allows you to manage the profile generated by the users consuming your website. You'll be able to access analytics reports and use the profile for DMP activation.",
         "name" : "Profile"
      },
      {
         "description" : "This API allows you to manage the publisher for whom you have inbound trafic linked to.",
         "name" : "Publisher"
      },
      {
         "description" : "This API allow you to manage user data purge processing. The data is stored per month, so you will always need to provide the month on which you are working.\nYou can purge the data linked to different type of identifiers :\n * `etuix`: value of the cookie stored in 1st party cookies.\n * `eauidh` : internal Eulerian id.\n * `wsuid` : CRM id existing in your CRM system.\n * `altuid:\\\\d+` : alternate CRM id, example: altuid:34, You can check the available list by querying the [get identifiers API](#tag%2FWebsite%2Fpaths%2F~1ea~1{site}~1db~1website~1get_identifiers.json%2Fget).\n * `rpub:\\\\d+`: partner publisher id, for example can be a device id (idfa or androidid), or DSP id (appnexus), etc .. You can check the available list by querying the [get identifiers API](#tag%2FWebsite%2Fpaths%2F~1ea~1{site}~1db~1website~1get_identifiers.json%2Fget).\nThe purge process will remove if available all the CRM identifiers link to stored data, remove all CRM parameters data (including email) and all data providers data.",
         "name" : "Purge"
      },
      {
         "description" : "This API allows you to manage the real-time attribution models that impacts all of you reporting, it can work on Single Touch or Multi-Touch Data Driven rules.",
         "name" : "Real-Time Attribution Models"
      },
      {
         "description" : "This API allows you to manage the redirectdomainallow allowed when following a click or dynclick redirect. The domains must be declared in this table to handle redirect whitelist.",
         "name" : "RedirectDomainAllow"
      },
      {
         "description" : "This API allows you to access the latest run-time errors of TMS or S2S calls. For a given month and in case you have multiple errors for the same entry, you will have the last generated error.",
         "name" : "RunTimeError"
      },
      {
         "description" : "This API allows you to manage the S2S Connector solution.",
         "name" : "S2S"
      },
      {
         "description" : "This API allows you to query the tags triggered by the Tag Management Solution when an estimate is made. Data is stored month per month and we only keep the last 2 months.",
         "name" : "S2S-Estimate"
      },
      {
         "description" : "This API allows you to query the tags triggered by the Tag Management Solution when an order is made. Data is stored month per month and we only keep the last 2 months.",
         "name" : "S2S-Order"
      },
      {
         "description" : "This API allows you to manage the saved queries created in the Audience Engine",
         "name" : "Saved Queries"
      },
      {
         "description" : "This API allows you to manage the scheduled EDW jobs for a given website.",
         "name" : "Scheduled Job"
      },
      {
         "description" : "This API allows you to manage the segments (clustervalue) linked to audiences (cluster). You'll be able to access analytics reports and use the audience for DMP activation.",
         "name" : "Segment"
      },
      {
         "description" : "This API allows you to manage the sem accounts for whom you have inbound PPC trafic linked to.",
         "name" : "SEM Account"
      },
      {
         "description" : "This API allows you to manage the semadgroup for whom you have inbound PPC trafic linked to.",
         "name" : "SEM AdGroup"
      },
      {
         "description" : "This API allows you to manage the semcampaign for whom you have inbound PPC trafic linked to.",
         "name" : "SEM Campaign"
      },
      {
         "description" : "This API allows you to manage the semcreative for whom you have inbound PPC trafic linked to.",
         "name" : "SEM Creative"
      },
      {
         "description" : "This API allows you to manage the grouping of semcreative for whom you have inbound PPC trafic linked to.",
         "name" : "SEM CreativeGroup"
      },
      {
         "description" : "This API allows you to manage links between dataconnectors and CMP categories.",
         "name" : "Server2Server DataConnector"
      },
      {
         "description" : "This API allows you to manage the sharing status of segment from saved queries created in the Audience Engine. You'll then be able to share these segments to as a private Marketplace or through the Eulerian Coop Marketplace.",
         "name" : "Shared Segment"
      },
      {
         "description" : "This API allows you to manage the list of shops that exists for a given brand.",
         "name" : "Shop"
      },
      {
         "description" : "This API allows you to manage the subkey2 generated by the users consuming your website. This feature will allow you to split all of your traffic per this new set of keys. You'll be able to access analytics reports and use the subkey2 for DMP activation.",
         "name" : "SubKey2"
      },
      {
         "description" : "This API allows you to manage the tag generated by the users set up on your website.",
         "name" : "Tag"
      },
      {
         "description" : "This API allows you to manage the tcfv2 custom vendors in case this feature is implemented by your CMP.",
         "name" : "TCFV2 Custom Vendor"
      },
      {
         "description" : "This API allows you to send an EDW request based on an existing template.",
         "name" : "Templated Job"
      },
      {
         "description" : "This API allows you to manage the tpredirectdomainallow allowed when following a tpclick or tpdynclick redirect. The domains must be declared in this table to handle redirect whitelist.",
         "name" : "ThirdParty RedirectDomainAllow"
      },
      {
         "description" : "This API allows you to manage the Tag Management Solution.",
         "name" : "TMS"
      },
      {
         "description" : "This API allows you to manage links between tags and CMP categories.",
         "name" : "TMS Tags"
      },
      {
         "description" : "This API allows you to query the tags triggered by the Tag Management Solution when an estimate is made. Data is stored month per month and we only keep the last 2 months.",
         "name" : "TMS-Estimate"
      },
      {
         "description" : "This API allows you to query the tags triggered by the Tag Management Solution when an order is made. Data is stored month per month and we only keep the last 2 months.",
         "name" : "TMS-Order"
      },
      {
         "description" : "This API allows you to manage the tracking hostname defined for customers.",
         "name" : "TrackingHostname"
      },
      {
         "description" : "This API allows you to check the tracking hostname log.",
         "name" : "TrackingHostnameLog"
      },
      {
         "description" : "This API allows you to access the generate the tracking templates for click & impression tracking for a given set of partners.",
         "name" : "Trafficking"
      },
      {
         "description" : "This API allows you to manage the uidsticky, alternates ids used to merge & identify volatile data payloads. This will be useful for re-importing offline data in the solution or use it as an alternative id graph.\n\nCheck the wiki page about the way these ids are taken in acccount in the system, depending if you set the **merge** flag to **Y** that will have an **impact on data collected**.\n\nWhen using an uidsticky, you need to prefix the name with **euid-**, for example my-phone-id becomes euid-my-phone-id when used in the datalayer.",
         "name" : "UIDSticky"
      },
      {
         "description" : "This API allows you to manage the CRM sync jobs (dynamicuparaminject/uparaminject) for a given website.",
         "name" : "UParamInject"
      },
      {
         "description" : "This API allows you to upload content to then provide it to other API services.\n\n> The files on the service for more than 5 days are automatically removed.",
         "name" : "Upload"
      },
      {
         "description" : "This API allows you to interact with the list of users uid stored in the platform.",
         "name" : "User"
      },
      {
         "description" : "This API allows you to manage the templates available for real-time\n server2server request, allowing you to retrieve user information in\n a given data-format for consumption by your own applications.\nThe API is hosted on the real-time data collection infrastructure,\nmeaning that the response time are in milliseconds.\n> You **cannot** use this API on website which are DMP Group websites.",
         "name" : "UserData ServerSide"
      },
      {
         "description" : "This API allows you to manage the data-driven augmented models linked to attribution models.",
         "name" : "ViewAugmented"
      },
      {
         "description" : "This API allows you to manage the virtual sub-channel for campaign aggregation.",
         "name" : "Virtual SubChannel"
      },
      {
         "description" : "This API allow you to manage specific settings for the targeted website.",
         "name" : "Website"
      },
      {
         "description" : "This API allows is only available to **Eulerian** and allow for managing the website categories.",
         "name" : "Website Category"
      },
      {
         "description" : "This API allows you to manage the workflows for a given website.",
         "name" : "Workflow"
      }
   ],
   "x-tagGroups" : [
      {
         "name" : "Activation",
         "tags" : [
            "RunTimeError",
            "S2S",
            "S2S-Estimate",
            "S2S-Order",
            "TMS",
            "TMS-Estimate",
            "TMS-Order"
         ]
      },
      {
         "name" : "Analytics",
         "tags" : [
            "AutoReport",
            "Batch Reporting",
            "Datamining: estimates",
            "Datamining: goals",
            "Datamining: internal searchengine request",
            "Datamining: outbound clicks",
            "Datamining: sales",
            "Datamining: shopping carts",
            "Datamining: third-party sales",
            "DEDimension",
            "Insight"
         ]
      },
      {
         "name" : "Attribution",
         "tags" : [
            "Customer Journey",
            "EMPDB",
            "Incrementality",
            "MediaCategory",
            "MMM",
            "MMM DataSource",
            "Multi-Touch Attribution",
            "Real-Time Attribution Models",
            "ViewAugmented"
         ]
      },
      {
         "name" : "CMP",
         "tags" : [
            "Category",
            "Category Language",
            "Server2Server DataConnector",
            "TCFV2 Custom Vendor",
            "TMS Tags"
         ]
      },
      {
         "name" : "Collect",
         "tags" : [
            "ActionLabel1",
            "ActionLabel2",
            "ActionLabel3",
            "ActionLabel4",
            "ActionLabel5",
            "Adhoc",
            "Campaign",
            "ContextFlag",
            "ContextFlag Category",
            "Creative",
            "CRM Parameters",
            "Custom Parameters",
            "Custom Parameters Value",
            "Data Provider",
            "Data Provider Parameters",
            "Deny",
            "Device Type",
            "Encrypt/Decrypt",
            "EPC",
            "EstimateType",
            "EstimateTypeCustom",
            "ETrim",
            "ExpandLimit",
            "Funnel",
            "Goal",
            "IP Whitelist",
            "Label",
            "Location",
            "OmniChannelGroup1",
            "OmniChannelGroup2",
            "OmniChannelGroup3",
            "OmniChannelGroup4",
            "OmniChannelGroup5",
            "OrderPayment",
            "OrderPaymentCustom",
            "OrderType",
            "OrderTypeCustom",
            "Outbound Campaigns Parameters",
            "Outbound Publishers Parameters",
            "PageGroup",
            "PageInfo",
            "PageLabel1",
            "PageLabel2",
            "PageLabel3",
            "PageLabel4",
            "PageLabel5",
            "Partner Publisher",
            "Product",
            "Product Parameters",
            "Profile",
            "Publisher",
            "Purge",
            "RedirectDomainAllow",
            "SEM Account",
            "SEM AdGroup",
            "SEM Campaign",
            "SEM Creative",
            "SEM CreativeGroup",
            "Shop",
            "SubKey2",
            "Tag",
            "ThirdParty RedirectDomainAllow",
            "TrackingHostname",
            "TrackingHostnameLog",
            "Trafficking",
            "UIDSticky",
            "UParamInject",
            "Upload",
            "User",
            "Virtual SubChannel",
            "Website",
            "Website Category"
         ]
      },
      {
         "name" : "CookieControl",
         "tags" : [
            "CookieControl",
            "CookieControlFamily",
            "CookieControlRules",
            "CookieControlValueExample",
            "Cookiepedia"
         ]
      },
      {
         "name" : "CoookieControl",
         "tags" : [
            "Cookiepedia Company",
            "Cookiepedia Company Tool"
         ]
      },
      {
         "name" : "DMP",
         "tags" : [
            "Audience",
            "Audience Engine",
            "External Segment",
            "Partner Segments",
            "Saved Queries",
            "Segment",
            "Shared Segment",
            "UserData ServerSide",
            "Workflow"
         ]
      },
      {
         "name" : "EDW",
         "tags" : [
            "EDW-Jobs",
            "Scheduled Job",
            "Templated Job"
         ]
      },
      {
         "name" : "Marketplace",
         "tags" : [
            "DataMember",
            "DataMember Website"
         ]
      },
      {
         "name" : "User Interface",
         "tags" : [
            "Account",
            "Over-ride Text"
         ]
      }
   ]
}
