POST
/
v1
/
relationship
/
resource-to-resource
curl --request POST \
  --url https://api.ctrlplane.dev/api/v1/relationship/resource-to-resource \
  --header 'Content-Type: application/json' \
  --data '{
  "workspaceId": "123e4567-e89b-12d3-a456-426614174000",
  "fromIdentifier": "my-resource",
  "toIdentifier": "my-resource",
  "type": "depends_on"
}'
{
  "message": "Relationship created successfully"
}

Body

application/json
workspaceId
string
required

The workspace ID

fromIdentifier
string
required

The identifier of the resource to connect

toIdentifier
string
required

The identifier of the resource to connect to

type
string
required

The type of relationship

Response

200
application/json
Relationship created
message
string