Menu

Push data into a user-provided Edge Config

PUThttps://api.vercel.com/v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/edge-config
When the user enabled Edge Config syncing, then this endpoint can be used by the partner to push their configuration data into the relevant Edge Config.
https://api.vercel.com/v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/edge-config
const response = await fetch('https://api.vercel.com/v1/installations/string/resources/string/experimentation/edge-config', {
method: 'PUT',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"data": "value"
}),
});
const data = await response.json();
console.log(data);
Response
{
"items": "value",
"updatedAt": "123",
"digest": "string",
"purpose": "flags"
}
AuthorizationbearerToken

Default authentication mechanism

integrationConfigurationIdstringRequired
resourceIdstringRequired

This endpoint expects an object.

dataobjectRequired
The Edge Config was updated
itemsobjectRequired
updatedAtnumberRequired
digeststringRequired
purposestringOptional
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
412Error
Push data into a user-provided Edge Config | Vercel API