---
updatedAt: 2026-05-29T12:25:24.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# Update network settings

Update the Yield Forecast settings of a network.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Forecast API",
    "description": "The Kevel Forecast API",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.kevel.co/v1"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/forecaster/network-settings": {
      "post": {
        "summary": "Update network settings",
        "description": "Update the Yield Forecast settings of a network.",
        "tags": [
          "Yield Forecast"
        ],
        "requestBody": {
          "description": "The JSON object with the network settings.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "Network Settings",
                "type": "object",
                "properties": {
                  "sampling": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 3,
                    "description": "The level of sampling to use (between 0 and 3). 3 provides the quickest response and 0 the highest accuracy.\n"
                  },
                  "dateRange": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "The default number of days for which forecasts will be calculated and results shown, starting from the current day.",
                    "example": 90
                  },
                  "dateAggregation": {
                    "type": "string",
                    "enum": [
                      "date",
                      "week",
                      "month"
                    ],
                    "description": "The default date aggregation in the `groupBy` of the inventory results forecasts."
                  },
                  "groupBy": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Break the forecast results down by the given `GroupBy` keys. Some caution should be used when choosing the `GroupBy` keys, as some keys may have thousands of possible values and can produce very large responses. For more details and the list of [available keys](ref:kevel-forecast-overview#group-by-fields), see this [section](ref:kevel-forecast-overview#grouping-by-and-time-zone-considerations).\nWhen grouping by fields that are arrays, the default behavior is to group by the whole set. Alternatively, it is possible to expand the elements of the array and group by each of them by suffixing the field name with `[]`, or by using the singular of the field (if it is one of the known array fields).\nIt's also possible to expand the key-value pairs of `$user.custom` by suffixing the field name with `{}`.\n",
                    "example": [
                      "$adTypes",
                      "$zone.id"
                    ]
                  },
                  "filterGroupBy": {
                    "type": "string",
                    "nullable": true,
                    "description": "Filter the forecast grouped results breakdown by the given rule (Zerkel query) at the ad level.\nThis rule operates on the following set of numeric fields for all forecast types: `impressions`, `clicks`\nand `uniqueUsers`. Additionally, the Available forecast supports the `bookedImpressions`, `bookedClicks`\nand `bookedUniqueUsers` fields, and the Deliverable and Existing forecasts the `adId`, `flightId`,\n`campaignId`, `advertiserId`, `reservedAdId`, `reservedFlightId` and `reservedCampaignId` fields.\nAn extra key, `groupedFiltered`, is added to the forecast result containing all the results that were\nfiltered out by the rule. If used in combination with the `ResultsBy` parameter, the `advertiser`,\n`campaign` and `flight` levels won't include the `uniqueUsers` count.\n",
                    "example": "bookedImpressions < 100 and bookedUniqueUsers < 100 or impressions >= 1000"
                  },
                  "inventoryPriorities": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "The priority IDs to be considered as the first paid priority of each channel. It should be set one per channel.",
                    "example": [
                      1111,
                      12345
                    ]
                  },
                  "salesProbabilityWeight": {
                    "type": "integer",
                    "nullable": true,
                    "minimum": 0,
                    "maximum": 100,
                    "description": "The minimum sales probability weight threshold used to filter reserved campaigns. Reserved campaigns with a `salesProbabilityWeight` below this value will be excluded from forecasts. Set to `0` to include all reserved campaigns regardless of their sales probability.\n",
                    "example": 50
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The JSON object of the network settings, if successful.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1forecaster~1network-settings/post/requestBody/content/application~1json/schema"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidBody"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Adzerk-ApiKey"
      }
    },
    "responses": {
      "InvalidBody": {
        "description": "The entity in the body is invalid.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ValidationErrorResponse"
            }
          }
        }
      }
    },
    "schemas": {
      "ErrorFields": {
        "title": "Error entry",
        "type": "object",
        "properties": {
          "fieldName": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Descriptive message of the error"
            }
          }
        }
      },
      "ValidationErrorResponse": {
        "type": "object",
        "description": "Response when the object has validation issues.",
        "oneOf": [
          {
            "type": "object",
            "title": "General validation error",
            "description": "Occurs when there is a general validation error",
            "properties": {
              "errorType": {
                "type": "string",
                "enum": [
                  "GeneralValidationError"
                ]
              },
              "message": {
                "type": "string",
                "description": "Descriptive message of the error"
              }
            }
          },
          {
            "type": "object",
            "title": "Field validation error",
            "description": "Occurs when there are validation issues with specific fields",
            "properties": {
              "errorType": {
                "type": "string",
                "enum": [
                  "FieldValidationError"
                ]
              },
              "message": {
                "type": "string",
                "description": "Descriptive message of the error"
              },
              "fields": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/ErrorFields"
                }
              }
            }
          }
        ]
      }
    }
  }
}
```