Create a Global Config | Vercel REST API

Create a Global Config

POST https://api.vercel.com/v1/global-config

Creates a Global Config.

Request Example

const response = await fetch('https://api.vercel.com/v1/global-config?teamId=string&slug=string', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "slug": "string",
    "items": "value"
  }),
});

const data = await response.json();
console.log(data);

Response Example

{
  "createdAt": "123",
  "createdBy": "string",
  "deletedAt": "123",
  "digest": "string",
  "id": "icfg_1234567890",
  "ownerId": "example_id",
  "purpose": {
    "projectId": "example_id",
    "type": "flags"
  },
  "schema": "value",
  "slug": "string",
  "syncedToDynamoAt": "123",
  "transfer": {
    "doneAt": "123",
    "fromAccountId": "example_id",
    "startedAt": "123"
  },
  "updatedAt": "123",
  "itemCount": "123",
  "sizeInBytes": "123"
}

Authentication

Authorization

Bearer Token

Default authentication mechanism.

Query Parameters

Body

Response

201 Success

Response Fields

Errors