Skip to main content
POST
/
edges
/
types
Register an edge type
curl --request POST \
  --url https://api.example.com/edges/types \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "label": "<string>",
  "description": "<string>",
  "source_type_constraints": [
    "<string>"
  ],
  "target_type_constraints": [
    "<string>"
  ],
  "property_schema": {}
}
'
{
  "edge_type": {
    "id": "<string>",
    "source_type_constraints": [
      "<string>"
    ],
    "target_type_constraints": [
      "<string>"
    ],
    "property_schema": {},
    "label": "<string>",
    "description": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.myme.so/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Pass an API key (marfa_k1_...) or OAuth access token (marfa_at_...)

Body

application/json
id
string
required
Minimum string length: 1
cardinality
enum<string>
required
Available options:
one-to-one,
one-to-many,
many-to-one,
many-to-many
label
string
description
string
source_type_constraints
string[]
target_type_constraints
string[]
cascade_on_delete
enum<string>
Available options:
cascade,
orphan,
block
property_schema
object

Response

Edge type registered

edge_type
object
required