Skip to main content

projects_members

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

Overview

Nameprojects_members
TypeResource
Idvercel.project_members.projects_members

Fields

The following fields are returned by SELECT queries:

Paginated list of members for the project.

NameDatatypeDescription

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_project_membersselectidOrName, teamIdlimit, since, until, searchLists all members of a project.
remove_project_memberdeleteidOrName, uid, teamIdRemove a member from a specific project
_get_project_membersexecidOrName, teamIdlimit, since, until, searchLists all members of a project.
add_project_memberexecidOrName, teamId, uidAdds a new member to the 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
idOrNamestringThe ID or name of the Project.
teamIdstringThe Team identifier or slug to perform the request on behalf of.
uidstringThe user ID of the member.
limitintegerLimit how many project members should be returned
sinceintegerTimestamp in milliseconds to only include members added since then.
untilintegerTimestamp in milliseconds to only include members added until then.

SELECT examples

Lists all members of a project.

SELECT
*
FROM vercel.project_members.projects_members
WHERE idOrName = '{{ idOrName }}' -- required
AND teamId = '{{ teamId }}' -- required
AND limit = '{{ limit }}'
AND since = '{{ since }}'
AND until = '{{ until }}'
AND search = '{{ search }}'
;

DELETE examples

Remove a member from a specific project

DELETE FROM vercel.project_members.projects_members
WHERE idOrName = '{{ idOrName }}' --required
AND uid = '{{ uid }}' --required
AND teamId = '{{ teamId }}' --required
;

Lifecycle Methods

Lists all members of a project.

EXEC vercel.project_members.projects_members._get_project_members 
@idOrName='{{ idOrName }}' --required,
@teamId='{{ teamId }}' --required,
@limit='{{ limit }}',
@since='{{ since }}',
@until='{{ until }}',
@search='{{ search }}'
;