Menu

Import Resource

PUThttps://api.vercel.com/v1/installations/{integrationConfigurationId}/resources/{resourceId}
This endpoint imports (upserts) a resource to Vercel's installation. This may be needed if resources can be independently created on the partner's side and need to be synchronized to Vercel.
https://api.vercel.com/v1/installations/{integrationConfigurationId}/resources/{resourceId}
const response = await fetch('https://api.vercel.com/v1/installations/string/resources/string', {
method: 'PUT',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"ownership": "owned",
"productId": "string",
"name": "string",
"status": "ready",
"metadata": "value",
"billingPlan": {
"id": "string",
"type": "prepayment",
"name": "string",
"description": "string",
"paymentMethodRequired": "true",
"cost": "string",
"details": [],
"highlightedDetails": [],
"effectiveDate": "string"
},
"notification": {
"level": "info",
"title": "string",
"message": "string",
"href": "string"
},
"extras": "value",
"secrets": []
}),
});
const data = await response.json();
console.log(data);
Response
{
"name": "string"
}
AuthorizationbearerToken

Default authentication mechanism

integrationConfigurationIdstringRequired
resourceIdstringRequired

This endpoint expects an object.

ownershipstringOptional
productIdstringRequired
namestringRequired
statusstringRequired
metadataobjectOptional
billingPlanobjectOptional
notificationobjectOptional
extrasobjectOptional
secretsarrayOptional
namestringRequired
400One of the provided values in the request body is invalid. One of the provided values in the request query is invalid.
401The request is not authorized.
403You do not have permission to access this resource.
404Error
409Error
422Error
429Error
Import Resource | Vercel API