Storage

Create an Edge Config / Global Config for a project: unchanged @vercel/edge-config code reads it with the connection string (shown once)

post/global-configs

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/global-configs
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Query parameters

orgIdstring

Organization id (when the project could be in several of your teams)

Request body

projectIdstring uuid required

the project whose app reads the config

itemsobject

items as {key: value}; keys are letters, digits, "_" and "-"

legacyIdstring

the Vercel Edge Config it replaces

Response

Created

idstring required
organizationIdstring uuid required
projectIdstring uuid nullable required
legacyIdstring nullable required
itemCountinteger required
sizeBytesinteger required
digeststring required
createdAtstring required

ISO-8601 timestamp

updatedAtstring required

ISO-8601 timestamp

connectionStringstring required

EDGE_CONFIG / GLOBAL_CONFIG for the app (holds a read token): shown only in this response

Changes

No recorded changes to this operation across all 1 revision of this API.