vcr
Add a repository permission
Changed onGrant a team access to a VCR repository. Sharing applies to the whole repository.
post/v1/vcr/repository/{idOrName}/permissions
Request
- Base URL: https://api.vercel.com
- URL: https://api.vercel.com/v1/vcr/repository/{idOrName}/permissions
- Auth: HTTP bearer
Path parameters
idOrNamestring required
Query parameters
projectIdstring required
Project ID or name (slug) within the authenticated team. IDs take precedence over names. Missing or empty values return HTTP 400.
teamIdstring
Example:team_1a2b3c4d5e6f7g8h9i0j1k2l
The Team identifier to perform the request on behalf of.
slugstring
Example:my-team-url-slug
The Team slug to perform the request on behalf of.
Request body
Example request
{
"teamId": "team_LLHUOMOoDlqOp8wPE4kFo9pE",
"teamSlug": "my-team"
}Response
Example response
{
"permission": {
"createdAt": "2026-06-30T10:00:00.000Z",
"repositoryId": "repo_a1b2c3d4e5f6",
"teamId": "team_a1b2c3d4e5f6",
"teamSlug": "my-team"
}
}Changes
- info
endpoint added
- info