Skip to content
Docs

Create one or multiple experimentation items

POSThttps://api.vercel.com/v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/items
Create one or multiple experimentation items
https://api.vercel.com/v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/items
const response = await fetch('https://api.vercel.com/v1/installations/integrationConfigurationId/resources/resourceId/experimentation/items', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"items": [
{
"id": "icfg_1234567890",
"slug": "string",
"origin": "string",
"category": "experiment",
"name": "Example Name",
"description": "string",
"isArchived": "true",
"createdAt": "123",
"updatedAt": "123"
}
]
}),
});
const data = await response.json();
console.log(data);
Response
{}
AuthorizationbearerToken

Default authentication mechanism

integrationConfigurationIdstringRequired
resourceIdstringRequired
application/json
itemsarrayRequired
204The items were created
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
410Error