Update reference
Rename the environment variable a reference injects, or switch which value it pulls from the same provider.
Request & response examples
curl --fail-with-body --request PATCH \ 'https://app.helicarrier.xyz/api/references/YOUR_ID' \ -H "Authorization: Bearer $HELI_API_KEY"const response = await fetch( "https://app.helicarrier.xyz/api/references/YOUR_ID", { method: "PATCH", headers: { Authorization: `Bearer ${process.env.HELI_API_KEY}` } });const data = await response.json();if (!response.ok) { throw new Error(`HTTP ${response.status}: ${data.error}`);}// Inspect data; avoid logging secret responses.import osimport requests
response = requests.request( "PATCH", "https://app.helicarrier.xyz/api/references/YOUR_ID", headers={ "Authorization": f"Bearer {os.environ['HELI_API_KEY']}" }, timeout=30,)response.raise_for_status()data = response.json()# Inspect data; avoid logging secret responses.{ "reference": { "id": "ref_example", "consumerId": "svc_example", "providerId": "svc_database", "sourceKind": "url", "varKey": "MONGODB_URI" }, "redeployRequired": true}Illustrative values · selected fields
Path parameters
idstringrequiredReference id (from list_references) — not a service id.
Request body
varKeystringoptionalNew env var name. Optional.
sourceKindstringoptionalNew value to pull: "url", "host", "host-port", "public-url" (web-facing services only), or "var:NAME". Optional.
Response 200
Returns the updated reference. Redeploy the consumer to receive the renamed or changed value. The id is a reference id from list_references, not a service id.
Examples show selected response fields with illustrative values. Your response can contain additional fields.
referenceobjectNew reference linking a consumer to a provider.
Child fields
idstringUnique identifier of this resource.
consumerIdstringproviderIdstringsourceKindstringvarKeystring
redeployRequiredbooleanWhether another service deployment is required.
Errors
400Invalid parameters. Check the required fields, types, and resource configuration.
401The API key is missing, invalid, or revoked.
403The caller or key scope does not permit this operation.
404The resource does not exist or is not visible to this caller.
409The current resource state prevents the operation. Inspect it before retrying.
500The operation could not be completed. Check resource state before retrying a write.
update_reference
Required MCP arguments: id. Send path, query, and body fields together as tool arguments.