cURL
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" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Relationship created
The response is of type object.
object