POST
/
v1
/
relationship
/
resource-to-resource
curl --request POST \
  --url https://api.ctrlplane.dev/api/v1/relationship/resource-to-resource \
  --header 'Authorization: Bearer <token>' \
  --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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json
Relationship created

The response is of type object.