---
title: "Update forecasts in bulk"
method: PATCH
path: "/forecasts/{companyId}"
tags: ["Forecasts"]
---

# Update forecasts in bulk

`PATCH /forecasts/{companyId}`

Updates the synchronization status or additional info of several forecasts in a single call, identified by `id`. Follows the same rules as the single-forecast update endpoint: fields omitted from the request, or sent as `null`, are left unchanged, and entries whose `id` does not match any forecast are silently skipped — the call still returns `200` for the whole batch.

## Path parameters

- `companyId` string, required

## Request body

- BulkPatchForecastsRequestSchema
  - `data` AuxBulkPatchForecastsRequestSchema[], required — Forecasts to update, identified by `id`.
    - `additionalInfo` object — Free-form key/value metadata to attach to the forecast.
    - `sync` boolean, nullable — Marks the forecast as synchronized with your systems. Fields omitted from the request, or sent as `null`, are left unchanged.
    - `id` string, required — Embat forecast ID to update.

## Response `200`

Successful Response

- BulkModifyForecastsResponseSchema
  - `data` ModifyForecastsResponseSchema[], required — Result of the bulk update, one entry per forecast.
    - `id` string, required — Embat forecast ID.

## Other responses

- `401` — Unauthorized. The bearer token is missing, invalid or expired.
- `404` — Not found. The requested resource or `companyId` does not exist.
- `422` — Validation Error
- `500` — Unexpected error. Contact support if it persists.

---

[API](https://skmtc.net/embat/apis/embat-api.md) · [All operations](https://skmtc.net/embat/apis/embat-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/embat/embat-api/versions/36ca48bf4489/schema)
