Skip to main content

transfer_requests

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

Overview

Nametransfer_requests
TypeResource
Idvercel.projects.transfer_requests

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertid_or_nameteam_id, slugInitiates a project transfer request from one team to another. <br /> Returns a code that remains valid for 24 hours and can be used to accept the transfer request by another team using the PUT /projects/transfer-request/:code endpoint. <br /> Users can also accept the project transfer request using the claim URL: https:​//vercel.com/claim-deployment?code=&lt;code&gt;&returnUrl=&lt;returnUrl&gt;. <br /> The code parameter specifies the project transfer request code generated using this endpoint. <br /> The returnUrl parameter redirects users to a specific page of the application if the claim URL is invalid or expired.
acceptexeccodeteamId, slugAccept a project transfer request initated by another team. <br /> The code is generated using the POST /projects/:idOrName/transfer-request endpoint.

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
codestringThe code of the project transfer request.
id_or_namestringThe ID or name of the project to transfer.
slugstringThe Team slug to perform the request on behalf of.
teamIdstringThe Team identifier to perform the request on behalf of.
team_idstringThe Team identifier to perform the request on behalf of. (wire: teamId)

INSERT examples

Initiates a project transfer request from one team to another. <br /> Returns a code that remains valid for 24 hours and can be used to accept the transfer request by another team using the PUT /projects/transfer-request/:code endpoint. <br /> Users can also accept the project transfer request using the claim URL: https:​//vercel.com/claim-deployment?code=&lt;code&gt;&returnUrl=&lt;returnUrl&gt;. <br /> The code parameter specifies the project transfer request code generated using this endpoint. <br /> The returnUrl parameter redirects users to a specific page of the application if the claim URL is invalid or expired.

INSERT INTO vercel.projects.transfer_requests (
callback_url,
callback_secret,
id_or_name,
team_id,
slug
)
SELECT
'{{ callback_url }}',
'{{ callback_secret }}',
'{{ id_or_name }}',
'{{ team_id }}',
'{{ slug }}'
RETURNING
code
;

Lifecycle Methods

EXEC variables use wire (API) names.

Accept a project transfer request initated by another team. <br /> The code is generated using the POST /projects/:idOrName/transfer-request endpoint.

EXEC vercel.projects.transfer_requests.accept
@code='{{ code }}' --required,
@teamId='{{ teamId }}',
@slug='{{ slug }}'
@@json=
'{
"newProjectName": "{{ newProjectName }}",
"paidFeatures": "{{ paidFeatures }}",
"acceptedPolicies": "{{ acceptedPolicies }}"
}'
;