Skip to main content

items

Creates, updates, deletes, gets or lists an items resource.

Overview​

Nameitems
TypeResource
Idvercel.edge_config.items

Fields​

The following fields are returned by SELECT queries:

The Global Config.

NameDatatypeDescription
edge_config_idstring (wire: edgeConfigId)
created_atnumber (wire: createdAt)
descriptionstring
keystring
updated_atnumber (wire: updatedAt)
valuestring (false, true)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectedge_config_id, edge_config_item_keyteam_id, slugReturns a specific Global Config Item.
listselectedge_config_idteam_id, slugReturns all items of a Global Config.
updateupdateedge_config_id, itemsteam_id, slugUpdate multiple Global Config Items in batch.

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
edge_config_item_keystring
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 a specific Global Config Item.

SELECT
edge_config_id,
created_at,
description,
key,
updated_at,
value
FROM vercel.edge_config.items
WHERE edge_config_id = '{{ edge_config_id }}' -- required
AND edge_config_item_key = '{{ edge_config_item_key }}' -- required
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;

UPDATE examples​

Update multiple Global Config Items in batch.

UPDATE vercel.edge_config.items
SET
items = '{{ items }}'
WHERE
edge_config_id = '{{ edge_config_id }}' --required
AND items = '{{ items }}' --required
AND team_id = '{{ team_id}}'
AND slug = '{{ slug}}'
RETURNING
status;