Skip to main content

schema

Creates, updates, deletes, gets or lists a schema resource.

Overview​

Nameschema
TypeResource
Idvercel.edge_config.schema

Fields​

The following fields are returned by SELECT queries:

Wrapper for non-JSON response bodies (jsonl, ndjson, streamed json, octet-stream): one row carrying the raw body text.

NameDatatypeDescription
contentsstringRaw response body.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectedge_config_idteam_id, slugReturns the schema of a Global Config.
updateupdateedge_config_id, definitiondry_run, team_id, slugUpdate a Global Config's schema.
deletedeleteedge_config_idteam_id, slugDeletes the schema of existing Global Config.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
edge_config_idstring
dry_runstring (wire: dryRun)
slugstringThe Team slug to perform the request on behalf of.
team_idstringThe Team identifier to perform the request on behalf of. (wire: teamId)

SELECT examples​

Returns the schema of a Global Config.

SELECT
contents
FROM vercel.edge_config.schema
WHERE edge_config_id = '{{ edge_config_id }}' -- required
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;

UPDATE examples​

Update a Global Config's schema.

UPDATE vercel.edge_config.schema
SET
definition = '{{ definition }}'
WHERE
edge_config_id = '{{ edge_config_id }}' --required
AND definition = '{{ definition }}' --required
AND dry_run = '{{ dry_run}}'
AND team_id = '{{ team_id}}'
AND slug = '{{ slug}}';

DELETE examples​

Deletes the schema of existing Global Config.

DELETE FROM vercel.edge_config.schema
WHERE edge_config_id = '{{ edge_config_id }}' --required
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;