Create Resources Transfer Request
POST
/v1/installations/{installationId}/resource-transfer-requestsPrepares to transfer resources from the current installation to a new one. The target installation to transfer resources to will not be known until the verify & accept steps.
/v1/installations/{installationId}/resource-transfer-requests
const response = await fetch('/v1/installations/installationId/resource-transfer-requests', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN', 'Content-Type': 'application/json', }, body: JSON.stringify({ "resourceIds": [], "expiresAt": "123" }),});
const data = await response.json();console.log(data);Response
{ "providerClaimId": "example_id"}Errors
{ "error": { "code": "validation_error", "message": "string", "user": { "message": "string", "url": "https://example.com" }, "fields": [ { "key": "string", "message": "string" } ] }}AuthorizationSystem Authentication
Default authentication mechanism
installationIdstringRequired
X-Vercel-AuthstringOptional
The auth style used in the request (system, user, etc)
Idempotency-KeystringOptional
A unique key to identify a request across multiple retries
This endpoint expects an object.
resourceIdsarrayRequired
The IDs of the resources owned by the source installation that will be transferred to the target installation.
expiresAtnumberRequired
The timestamp in milliseconds when the transfer claim expires. After this time, the transfer cannot be claimed.
200Claim created successfully
providerClaimIdstringRequired
The provider-specific claim ID for the resource transfer.
400Input has failed validation
errorobjectRequired
403Operation failed because the authentication is not allowed to perform this operation
errorobjectRequired
409Operation failed because of a conflict with the current state of the resource
errorobjectRequired
422Operation is well-formed, but cannot be executed due to semantic errors
errorobjectRequired