---
title: "Api Create Edge"
method: POST
path: "/v1/edges"
tags: ["edges", "edges"]
---

# Api Create Edge

`POST /v1/edges`

## Request

- Base URL: `https://api.branchly.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.branchly.io/v1/edges`
- Auth: HTTP bearer

## Request body

- EdgeAPICreate
  - `pk` string, uuid, required
  - `_vertexId` string, uuid, required
  - `_sink` string, uuid, required
  - `label` 'has' | 'next' | 'next_node' | 'reference'
  - `weight` number
  - `weight_manual` number, nullable
  - `weight_rolling_30` number, nullable
  - `weight_rolling_60` number, nullable
  - `weight_rolling_alltime` number, nullable

## Response `201`

Successful Response

- EdgeAPI
  - `id` string, uuid, required
  - `pk` string, uuid, required
  - `label` 'has' | 'next' | 'next_node' | 'reference'
  - `_vertexId` string, uuid, nullable
  - `_vertexLabel` string, nullable
  - `_sink` string, uuid, nullable
  - `_sinkLabel` string, nullable
  - `weight` number, nullable
  - `weight_manual` number, nullable
  - `weight_rolling_30` number, nullable
  - `weight_rolling_60` number, nullable
  - `weight_rolling_alltime` number, nullable
  - `created_at` string, nullable
  - `updated_at` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/branchly/apis/branchly-io-api.md) · [All operations](https://skmtc.dev/branchly/apis/branchly-io-api/llms.txt) · [OpenAPI document](https://skmtc.dev/branchly/apis/branchly-io-api/revisions/9ffb024f8ec8?raw)
