Provision Resource
/v1/installations/{installationId}/resourcesconst response = await fetch('/v1/installations/string/resources', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN', 'Content-Type': 'application/json', }, body: JSON.stringify({ "productId": "string", "name": "string", "metadata": "value", "billingPlanId": "string", "externalId": "string", "protocolSettings": { "experimentation": { "edgeConfigId": "string" } } }),});
const data = await response.json();console.log(data);{ "id": "string", "productId": "string", "protocolSettings": { "experimentation": { "edgeConfigSyncingEnabled": "true", "edgeConfigId": "string", "edgeConfigTokenId": "string" } }, "billingPlan": { "id": "string", "type": "prepayment", "name": "string", "scope": "installation", "description": "string", "paymentMethodRequired": "true", "preauthorizationAmount": "123", "initialCharge": "string", "minimumAmount": "string", "maximumAmount": "string", "maximumAmountAutoPurchasePerPeriod": "string", "cost": "string", "details": [], "highlightedDetails": [], "quote": [], "effectiveDate": "string", "disabled": "true" }, "name": "string", "metadata": "value", "status": "ready", "notification": { "level": "info", "title": "string", "message": "string", "href": "string" }, "secrets": []}Default authentication mechanism
This endpoint expects an object.
externalId will equal the external-id query parameter.