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

# Update forecast

`PATCH /forecasts/{companyId}/{id}`

Updates the synchronization status or additional info of a forecast identified by `id`. Fields omitted from the request, or sent as `null`, are left unchanged. Updating an `id` that does not match any forecast also returns `200` without applying any change — no `404` is raised.

## Path parameters

- `id` string, required
- `companyId` string, required

## Request body

- PatchForecastsRequestSchema
  - `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.

## Response `200`

Successful Response

- ModifyForecastsResponseSchema
  - `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)
