Skip to main content

access_group_projects

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

Overview

Nameaccess_group_projects
TypeResource
Idvercel.access_groups.access_group_projects

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
access_group_idstring (wire: accessGroupId)
project_idstring (wire: projectId)
team_idstring (wire: teamId)
created_atstring (wire: createdAt)
rolestring (ADMIN, PROJECT_DEVELOPER, PROJECT_GUEST, PROJECT_VIEWER)
updated_atstring (wire: updatedAt)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccess_group_id_or_name, project_idteam_id, slugAllows reading an access group project
listselectid_or_namelimit, next, team_id, slugList projects of an access group
createinsertaccess_group_id_or_name, role, project_idteam_id, slugAllows creation of an access group project
updateupdateaccess_group_id_or_name, project_id, roleteam_id, slugAllows update of an access group project
deletedeleteaccess_group_id_or_name, project_idteam_id, slugAllows deletion of an access group project

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
access_group_id_or_namestring
id_or_namestringThe ID or name of the Access Group.
project_idstring (example: prj_ndlgr43fadlPyCtREAqxxdyFK)
limitintegerLimit how many access group projects should be returned.
nextstringContinuation cursor to retrieve the next page of results.
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

Allows reading an access group project

SELECT
access_group_id,
project_id,
team_id,
created_at,
role,
updated_at
FROM vercel.access_groups.access_group_projects
WHERE access_group_id_or_name = '{{ access_group_id_or_name }}' -- required
AND project_id = '{{ project_id }}' -- required
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;

INSERT examples

Allows creation of an access group project

INSERT INTO vercel.access_groups.access_group_projects (
project_id,
role,
access_group_id_or_name,
team_id,
slug
)
SELECT
'{{ project_id }}' /* required */,
'{{ role }}' /* required */,
'{{ access_group_id_or_name }}',
'{{ team_id }}',
'{{ slug }}'
RETURNING
access_group_id,
project_id,
team_id,
created_at,
role,
updated_at
;

UPDATE examples

Allows update of an access group project

UPDATE vercel.access_groups.access_group_projects
SET
role = '{{ role }}'
WHERE
access_group_id_or_name = '{{ access_group_id_or_name }}' --required
AND project_id = '{{ project_id }}' --required
AND role = '{{ role }}' --required
AND team_id = '{{ team_id}}'
AND slug = '{{ slug}}'
RETURNING
access_group_id,
project_id,
team_id,
created_at,
role,
updated_at;

DELETE examples

Allows deletion of an access group project

DELETE FROM vercel.access_groups.access_group_projects
WHERE access_group_id_or_name = '{{ access_group_id_or_name }}' --required
AND project_id = '{{ project_id }}' --required
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;