Menu

Update Resource

PATCHhttps://api.vercel.com/v1/installations/{integrationConfigurationId}/resources/{resourceId}
This endpoint updates an existing resource in the installation. All parameters are optional, allowing partial updates.
https://api.vercel.com/v1/installations/{integrationConfigurationId}/resources/{resourceId}
const response = await fetch('https://api.vercel.com/v1/installations/string/resources/string', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"ownership": "owned",
"name": "string",
"status": "ready",
"metadata": "value",
"billingPlan": {
"id": "string",
"type": "prepayment",
"name": "string",
"description": "string",
"paymentMethodRequired": "true",
"cost": "string",
"details": [],
"highlightedDetails": [],
"effectiveDate": "string"
},
"notification": "value",
"extras": "value",
"secrets": "value"
}),
});
const data = await response.json();
console.log(data);
Response
{
"name": "string"
}
AuthorizationbearerToken

Default authentication mechanism

integrationConfigurationIdstringRequired
resourceIdstringRequired

This endpoint expects an object.

ownershipstringOptional
namestringOptional
statusstringOptional
metadataobjectOptional
billingPlanobjectOptional
notificationobjectOptional
extrasobjectOptional
secretsobjectOptional
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
Update Resource | Vercel API