---
title: "Publish every environment and variable of the org to the other regions again"
method: POST
path: "/api/{org_id}/synthetics/environments/_resync"
tags: ["Synthetics"]
---

# Publish every environment and variable of the org to the other regions again

`POST /api/{org_id}/synthetics/environments/_resync`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/synthetics/environments/_resync`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/synthetics/environments/_resync/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `org_id` string, required

## Response `200`

Counts of what was enqueued, and environments whose batch failed

- ResyncSummary: What `_resync` actually enqueued, and the environments whose batch could not be built.
  - `environments` integer, required
  - `failed` string[], required
  - `variables` integer, required

## Other responses

- `400`: Super cluster is not enabled
- `500`: Error

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
