---
title: "Update a Global Config"
method: PUT
path: "/v1/global-config/{edgeConfigId}"
tags: ["global-config"]
---

# Update a Global Config

`PUT /v1/global-config/{edgeConfigId}`

Updates a Global Config.

## Path parameters

- `edgeConfigId` string, required

## Query parameters

- `teamId` string
- `slug` string

## Request body

- object
  - `slug` string, required

## Response `200`

- object — An Edge Config
  - `id` string, required
  - `createdAt` number, required
  - `createdBy` string — The ID of the user who created the Edge Config, optional because it is not always set.
  - `ownerId` string, required
  - `slug` string, required — Name for the Edge Config Names are not unique. Must start with an alphabetic character and can contain only alphanumeric characters and underscores).
  - `updatedAt` number, required
  - `digest` string, required
  - `purpose` union
    - object
      - `type` 'flags', required
      - `projectId` string, required
    - object
      - `type` 'experimentation', required
      - `resourceId` string, required
  - `deletedAt` number, nullable
  - `transfer` object — Keeps track of the current state of the Edge Config while it gets transferred.
    - `fromAccountId` string, required
    - `startedAt` number, required
    - `doneAt` number, nullable, required
  - `schema` object
  - `syncedToDynamoAt` number — Timestamp of when the Edge Config was synced to DynamoDB initially. It is only set when syncing the entire Edge Config, not when updating.
  - `sizeInBytes` number, required
  - `itemCount` number, required

## Other responses

- `400` — One of the provided values in the request body is invalid. One of the provided values in the request query is invalid.
- `401` — The request is not authorized.
- `402` — The account is missing a payment so payment method must be updated
- `403` — You do not have permission to access this resource.
- `404`
- `409`
- `410`

---

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