Menu

Patch an existing experimentation item

PATCHhttps://api.vercel.com/v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/items/{itemId}
Patch an existing experimentation item
https://api.vercel.com/v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/items/{itemId}
const response = await fetch('https://api.vercel.com/v1/installations/string/resources/string/experimentation/items/string', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"slug": "string",
"origin": "string",
"name": "string",
"category": "experiment",
"description": "string",
"isArchived": "true",
"createdAt": "123",
"updatedAt": "123"
}),
});
const data = await response.json();
console.log(data);
Response
{}
AuthorizationbearerToken

Default authentication mechanism

integrationConfigurationIdstringRequired
resourceIdstringRequired
itemIdstringRequired

This endpoint expects an object.

slugstringRequired
originstringRequired
namestringOptional
categorystringOptional
descriptionstringOptional
isArchivedbooleanOptional
createdAtnumberOptional
updatedAtnumberOptional
The item was updated

No response body

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
Patch an existing experimentation item | Vercel API