Skip to main content

team_flags

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

Overview

Nameteam_flags
TypeResource
Idvercel.feature_flags.team_flags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectteam_idstate, limit, cursor, search, kind, tags, created_by, maintainer_ids, include_marketplace_flags, slugRetrieve all feature flags for a team across all projects. Returns an opaque cursor for pagination.
list_v1execteam_idstate, withMetadata, limit, cursor, search, kind, tags, slugRetrieve all feature flags for a team across all projects. The list can be filtered by state and supports pagination.

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
team_idstringThe Team identifier to perform the request on behalf of.
created_bystringFilter flags by the id of the entity that created them (a user or team id). (wire: createdBy)
cursorstringPagination cursor to continue from.
include_marketplace_flagsbooleanWhether to include Marketplace experimentation items in the paginated response. Defaults to false. (wire: includeMarketplaceFlags)
kindstringThe kind of flags to retrieve.
limitintegerMaximum number of flags to return.
maintainer_idsarrayFilter flags by maintainer user id. Repeat the parameter for multiple maintainers (any may match). (wire: maintainerIds)
slugstringThe Team slug to perform the request on behalf of.
statestringThe state of the flags to retrieve. Defaults to active.
tagsarrayFilter flags by tag. Repeat the parameter for multiple tags (all must match).
withMetadatabooleanDeprecated. Whether to include creator metadata in each flag in the response. Resolve creator identity client-side (e.g. via the team members endpoint) instead; this parameter will be removed in a future release.

SELECT examples

Retrieve all feature flags for a team across all projects. Returns an opaque cursor for pagination.

SELECT
*
FROM vercel.feature_flags.team_flags
WHERE team_id = '{{ team_id }}' -- required
AND state = '{{ state }}'
AND limit = '{{ limit }}'
AND cursor = '{{ cursor }}'
AND search = '{{ search }}'
AND kind = '{{ kind }}'
AND tags = '{{ tags }}'
AND created_by = '{{ created_by }}'
AND maintainer_ids = '{{ maintainer_ids }}'
AND include_marketplace_flags = '{{ include_marketplace_flags }}'
AND slug = '{{ slug }}'
;

Lifecycle Methods

EXEC variables use wire (API) names.

Retrieve all feature flags for a team across all projects. The list can be filtered by state and supports pagination.

EXEC vercel.feature_flags.team_flags.list_v1
@team_id='{{ team_id }}' --required,
@state='{{ state }}',
@withMetadata={{ withMetadata }},
@limit='{{ limit }}',
@cursor='{{ cursor }}',
@search='{{ search }}',
@kind='{{ kind }}',
@tags='{{ tags }}',
@slug='{{ slug }}'
;