> For the complete documentation index, see [llms.txt](https://docs.truedat.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.truedat.io/v8.8/api-integrations/link-manager-apis/relations.md).

# Relations

## List all relations

> Retrieves a paginated list of all relations, optionally filtered by status. Default status is 'approved'.

```json
{"openapi":"3.0.0","info":{"title":"td-lm","version":"Truedat 8.8.0"},"paths":{"/api/relations":{"get":{"description":"Retrieves a paginated list of all relations, optionally filtered by status. Default status is 'approved'.","operationId":"TdLmWeb.RelationController.index","parameters":[{"description":"Filter by status. Default: 'approved'","in":"query","name":"status","required":false,"schema":{"enum":["approved","pending","rejected","nil"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationListResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmUnauthorizedResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmForbiddenResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmInternalServerErrorResponse"}}},"description":"Internal Server Error"}},"summary":"List all relations","tags":["Relations"]}}},"components":{"schemas":{"RelationListResponse":{"additionalProperties":false,"properties":{"_actions":{"additionalProperties":{"properties":{"href":{"description":"Action URL","type":"string"},"input":{"additionalProperties":true,"description":"Expected input data","type":"object"},"method":{"description":"HTTP method","type":"string"}},"required":["href","method"],"type":"object"},"description":"Available actions (hypermedia)","type":"object"},"data":{"description":"List of relations","items":{"$ref":"#/components/schemas/RelationResponse"},"type":"array"},"hypermedia":{"additionalProperties":true,"description":"Hypermedia data for navigation","nullable":true,"type":"object"}},"required":["data"],"title":"RelationListResponse","type":"object"},"RelationResponse":{"additionalProperties":false,"properties":{"context":{"additionalProperties":true,"description":"Additional context for the relation","type":"object"},"deleted_at":{"description":"Soft deletion timestamp","format":"date-time","nullable":true,"type":"string"},"disabled_at":{"description":"Disable timestamp","format":"date-time","nullable":true,"type":"string"},"disabled_reason":{"description":"Disable reason","nullable":true,"type":"string"},"id":{"description":"Relation ID","type":"integer"},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string"},"origin":{"description":"Relation origin","nullable":true,"type":"string"},"source_id":{"description":"Source resource ID","type":"integer"},"source_type":{"description":"Source resource type","type":"string"},"status":{"description":"Relation status (nil, approved, pending, rejected)","nullable":true,"type":"string"},"tag":{"$ref":"#/components/schemas/TagOrNull"},"tag_id":{"description":"Associated tag ID","nullable":true,"type":"integer"},"tag_type":{"description":"Tag type (derived from tag.value.type)","nullable":true,"type":"string"},"tags":{"description":"List of associated tags (legacy)","items":{"$ref":"#/components/schemas/TagObject"},"type":"array"},"target_id":{"description":"Target resource ID","type":"integer"},"target_type":{"description":"Target resource type","type":"string"},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string"}},"required":["id","source_id","source_type","target_id","target_type","context","updated_at","inserted_at"],"title":"RelationResponse","type":"object"},"TagOrNull":{"additionalProperties":false,"nullable":true,"properties":{"id":{"description":"Tag ID","type":"integer"},"value":{"$ref":"#/components/schemas/TagValue"}},"required":["id","value"],"title":"TagOrNull","type":"object"},"TagValue":{"additionalProperties":true,"description":"Dynamic value of a tag","properties":{"expandable":{"description":"Optional expandable flag","nullable":true,"type":"string"},"target_type":{"description":"Target resource type","type":"string"},"type":{"description":"Tag type","type":"string"}},"required":["target_type","type"],"title":"TagValue","type":"object"},"TagObject":{"additionalProperties":false,"properties":{"id":{"description":"Tag ID","type":"integer"},"value":{"$ref":"#/components/schemas/TagValue"}},"required":["id","value"],"title":"TagObject","type":"object"},"TdLmUnauthorizedResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmUnauthorizedResponse","type":"object"},"TdLmForbiddenResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmForbiddenResponse","type":"object"},"TdLmInternalServerErrorResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmInternalServerErrorResponse","type":"object"}}}}
```

## Create a new relation

> Creates a new relation between two resources. The relation can include context, tags, origin, and status information.

```json
{"openapi":"3.0.0","info":{"title":"td-lm","version":"Truedat 8.8.0"},"paths":{"/api/relations":{"post":{"description":"Creates a new relation between two resources. The relation can include context, tags, origin, and status information.","operationId":"TdLmWeb.RelationController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationRequest"}}},"description":"Relation","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationShowResponse"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmBadRequestResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmUnauthorizedResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmForbiddenResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmUnprocessableEntityResponse"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmInternalServerErrorResponse"}}},"description":"Internal Server Error"}},"summary":"Create a new relation","tags":["Relations"]}}},"components":{"schemas":{"RelationRequest":{"additionalProperties":false,"properties":{"relation":{"additionalProperties":false,"description":"Relation data","properties":{"context":{"additionalProperties":true,"description":"Additional context for the relation","nullable":true,"type":"object"},"origin":{"description":"Relation origin (defaults to nil)","nullable":true,"type":"string"},"source_id":{"description":"Source resource ID","type":"integer"},"source_type":{"description":"Source resource type","enum":["business_concept","data_field","data_structure","ingest","implementation_ref","quality_control"],"type":"string"},"status":{"description":"Relation status (only 'pending' or nil)","enum":["pending"],"nullable":true,"type":"string"},"tag_ids":{"description":"List of tag IDs (currently only one is supported)","items":{"type":"integer"},"type":"array"},"tags":{"description":"Legacy field for compatibility (not used in creation)","items":{"$ref":"#/components/schemas/TagObject"},"type":"array"},"target_id":{"description":"Target resource ID","type":"integer"},"target_type":{"description":"Target resource type","enum":["business_concept","data_field","data_structure","ingest","implementation_ref","quality_control"],"type":"string"}},"required":["source_id","source_type","target_id","target_type"],"type":"object"}},"required":["relation"],"title":"RelationRequest","type":"object"},"TagObject":{"additionalProperties":false,"properties":{"id":{"description":"Tag ID","type":"integer"},"value":{"$ref":"#/components/schemas/TagValue"}},"required":["id","value"],"title":"TagObject","type":"object"},"TagValue":{"additionalProperties":true,"description":"Dynamic value of a tag","properties":{"expandable":{"description":"Optional expandable flag","nullable":true,"type":"string"},"target_type":{"description":"Target resource type","type":"string"},"type":{"description":"Tag type","type":"string"}},"required":["target_type","type"],"title":"TagValue","type":"object"},"RelationShowResponse":{"additionalProperties":false,"properties":{"data":{"$ref":"#/components/schemas/RelationResponse"}},"required":["data"],"title":"RelationShowResponse","type":"object"},"RelationResponse":{"additionalProperties":false,"properties":{"context":{"additionalProperties":true,"description":"Additional context for the relation","type":"object"},"deleted_at":{"description":"Soft deletion timestamp","format":"date-time","nullable":true,"type":"string"},"disabled_at":{"description":"Disable timestamp","format":"date-time","nullable":true,"type":"string"},"disabled_reason":{"description":"Disable reason","nullable":true,"type":"string"},"id":{"description":"Relation ID","type":"integer"},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string"},"origin":{"description":"Relation origin","nullable":true,"type":"string"},"source_id":{"description":"Source resource ID","type":"integer"},"source_type":{"description":"Source resource type","type":"string"},"status":{"description":"Relation status (nil, approved, pending, rejected)","nullable":true,"type":"string"},"tag":{"$ref":"#/components/schemas/TagOrNull"},"tag_id":{"description":"Associated tag ID","nullable":true,"type":"integer"},"tag_type":{"description":"Tag type (derived from tag.value.type)","nullable":true,"type":"string"},"tags":{"description":"List of associated tags (legacy)","items":{"$ref":"#/components/schemas/TagObject"},"type":"array"},"target_id":{"description":"Target resource ID","type":"integer"},"target_type":{"description":"Target resource type","type":"string"},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string"}},"required":["id","source_id","source_type","target_id","target_type","context","updated_at","inserted_at"],"title":"RelationResponse","type":"object"},"TagOrNull":{"additionalProperties":false,"nullable":true,"properties":{"id":{"description":"Tag ID","type":"integer"},"value":{"$ref":"#/components/schemas/TagValue"}},"required":["id","value"],"title":"TagOrNull","type":"object"},"TdLmBadRequestResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmBadRequestResponse","type":"object"},"TdLmUnauthorizedResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmUnauthorizedResponse","type":"object"},"TdLmForbiddenResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmForbiddenResponse","type":"object"},"TdLmUnprocessableEntityResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmUnprocessableEntityResponse","type":"object"},"TdLmInternalServerErrorResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmInternalServerErrorResponse","type":"object"}}}}
```

## Hard delete multiple relations

> Permanently removes multiple relations from the database based on a list of IDs. This operation is irreversible and requires administrative privileges.

```json
{"openapi":"3.0.0","info":{"title":"td-lm","version":"Truedat 8.8.0"},"paths":{"/api/relations/hard_delete":{"delete":{"description":"Permanently removes multiple relations from the database based on a list of IDs. This operation is irreversible and requires administrative privileges.","operationId":"TdLmWeb.RelationController.hard_delete","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HardDeleteRequest"}}},"description":"IDs","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HardDeleteResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmUnauthorizedResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmForbiddenResponse"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmUnprocessableEntityResponse"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmInternalServerErrorResponse"}}},"description":"Internal Server Error"}},"summary":"Hard delete multiple relations","tags":["Relations"]}}},"components":{"schemas":{"HardDeleteRequest":{"additionalProperties":false,"properties":{"ids":{"description":"List of relation IDs to permanently delete","items":{"type":"integer"},"type":"array"}},"required":["ids"],"title":"HardDeleteRequest","type":"object"},"HardDeleteResponse":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"deleted":{"description":"IDs of successfully deleted relations","items":{"type":"integer"},"type":"array"},"errors":{"description":"Errors encountered during deletion","items":{"type":"string"},"type":"array"}},"required":["deleted"],"type":"object"}},"required":["data"],"title":"HardDeleteResponse","type":"object"},"TdLmUnauthorizedResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmUnauthorizedResponse","type":"object"},"TdLmForbiddenResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmForbiddenResponse","type":"object"},"TdLmUnprocessableEntityResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmUnprocessableEntityResponse","type":"object"},"TdLmInternalServerErrorResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmInternalServerErrorResponse","type":"object"}}}}
```

## Search relations

> Searches for relations based on resource IDs and types, with optional status filtering. Supports both resource-based and parameter-based search modes.

```json
{"openapi":"3.0.0","info":{"title":"td-lm","version":"Truedat 8.8.0"},"paths":{"/api/relations/search":{"post":{"description":"Searches for relations based on resource IDs and types, with optional status filtering. Supports both resource-based and parameter-based search modes.","operationId":"TdLmWeb.RelationController.search","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationSearchRequest"}}},"description":"Search parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationListResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmUnauthorizedResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmForbiddenResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmInternalServerErrorResponse"}}},"description":"Internal Server Error"}},"summary":"Search relations","tags":["Relations"]}}},"components":{"schemas":{"RelationSearchRequest":{"additionalProperties":false,"properties":{"related_to_type":{"description":"Related resource type (required for resource-based search)","type":"string"},"resource_id":{"description":"Root resource ID for search (required for resource-based search)","type":"integer"},"resource_type":{"description":"Root resource type (required for resource-based search)","type":"string"},"source_id":{"description":"Source ID (alternative search)","type":"integer"},"source_type":{"description":"Source type (alternative search)","type":"string"},"status":{"description":"Status filter (defaults to 'approved')","enum":["approved","pending","rejected","nil"],"nullable":true,"type":"string"}},"title":"RelationSearchRequest","type":"object"},"RelationListResponse":{"additionalProperties":false,"properties":{"_actions":{"additionalProperties":{"properties":{"href":{"description":"Action URL","type":"string"},"input":{"additionalProperties":true,"description":"Expected input data","type":"object"},"method":{"description":"HTTP method","type":"string"}},"required":["href","method"],"type":"object"},"description":"Available actions (hypermedia)","type":"object"},"data":{"description":"List of relations","items":{"$ref":"#/components/schemas/RelationResponse"},"type":"array"},"hypermedia":{"additionalProperties":true,"description":"Hypermedia data for navigation","nullable":true,"type":"object"}},"required":["data"],"title":"RelationListResponse","type":"object"},"RelationResponse":{"additionalProperties":false,"properties":{"context":{"additionalProperties":true,"description":"Additional context for the relation","type":"object"},"deleted_at":{"description":"Soft deletion timestamp","format":"date-time","nullable":true,"type":"string"},"disabled_at":{"description":"Disable timestamp","format":"date-time","nullable":true,"type":"string"},"disabled_reason":{"description":"Disable reason","nullable":true,"type":"string"},"id":{"description":"Relation ID","type":"integer"},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string"},"origin":{"description":"Relation origin","nullable":true,"type":"string"},"source_id":{"description":"Source resource ID","type":"integer"},"source_type":{"description":"Source resource type","type":"string"},"status":{"description":"Relation status (nil, approved, pending, rejected)","nullable":true,"type":"string"},"tag":{"$ref":"#/components/schemas/TagOrNull"},"tag_id":{"description":"Associated tag ID","nullable":true,"type":"integer"},"tag_type":{"description":"Tag type (derived from tag.value.type)","nullable":true,"type":"string"},"tags":{"description":"List of associated tags (legacy)","items":{"$ref":"#/components/schemas/TagObject"},"type":"array"},"target_id":{"description":"Target resource ID","type":"integer"},"target_type":{"description":"Target resource type","type":"string"},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string"}},"required":["id","source_id","source_type","target_id","target_type","context","updated_at","inserted_at"],"title":"RelationResponse","type":"object"},"TagOrNull":{"additionalProperties":false,"nullable":true,"properties":{"id":{"description":"Tag ID","type":"integer"},"value":{"$ref":"#/components/schemas/TagValue"}},"required":["id","value"],"title":"TagOrNull","type":"object"},"TagValue":{"additionalProperties":true,"description":"Dynamic value of a tag","properties":{"expandable":{"description":"Optional expandable flag","nullable":true,"type":"string"},"target_type":{"description":"Target resource type","type":"string"},"type":{"description":"Tag type","type":"string"}},"required":["target_type","type"],"title":"TagValue","type":"object"},"TagObject":{"additionalProperties":false,"properties":{"id":{"description":"Tag ID","type":"integer"},"value":{"$ref":"#/components/schemas/TagValue"}},"required":["id","value"],"title":"TagObject","type":"object"},"TdLmUnauthorizedResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmUnauthorizedResponse","type":"object"},"TdLmForbiddenResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmForbiddenResponse","type":"object"},"TdLmInternalServerErrorResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmInternalServerErrorResponse","type":"object"}}}}
```

## Get a relation by ID

> Retrieves the full details of a single relation by its unique identifier, including associated tags and enriched attributes.

```json
{"openapi":"3.0.0","info":{"title":"td-lm","version":"Truedat 8.8.0"},"paths":{"/api/relations/{id}":{"get":{"description":"Retrieves the full details of a single relation by its unique identifier, including associated tags and enriched attributes.","operationId":"TdLmWeb.RelationController.show","parameters":[{"description":"Relation ID","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationShowResponse"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmUnauthorizedResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmForbiddenResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmNotFoundResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmInternalServerErrorResponse"}}},"description":"Internal Server Error"}},"summary":"Get a relation by ID","tags":["Relations"]}}},"components":{"schemas":{"RelationShowResponse":{"additionalProperties":false,"properties":{"data":{"$ref":"#/components/schemas/RelationResponse"}},"required":["data"],"title":"RelationShowResponse","type":"object"},"RelationResponse":{"additionalProperties":false,"properties":{"context":{"additionalProperties":true,"description":"Additional context for the relation","type":"object"},"deleted_at":{"description":"Soft deletion timestamp","format":"date-time","nullable":true,"type":"string"},"disabled_at":{"description":"Disable timestamp","format":"date-time","nullable":true,"type":"string"},"disabled_reason":{"description":"Disable reason","nullable":true,"type":"string"},"id":{"description":"Relation ID","type":"integer"},"inserted_at":{"description":"Creation timestamp","format":"date-time","type":"string"},"origin":{"description":"Relation origin","nullable":true,"type":"string"},"source_id":{"description":"Source resource ID","type":"integer"},"source_type":{"description":"Source resource type","type":"string"},"status":{"description":"Relation status (nil, approved, pending, rejected)","nullable":true,"type":"string"},"tag":{"$ref":"#/components/schemas/TagOrNull"},"tag_id":{"description":"Associated tag ID","nullable":true,"type":"integer"},"tag_type":{"description":"Tag type (derived from tag.value.type)","nullable":true,"type":"string"},"tags":{"description":"List of associated tags (legacy)","items":{"$ref":"#/components/schemas/TagObject"},"type":"array"},"target_id":{"description":"Target resource ID","type":"integer"},"target_type":{"description":"Target resource type","type":"string"},"updated_at":{"description":"Update timestamp","format":"date-time","type":"string"}},"required":["id","source_id","source_type","target_id","target_type","context","updated_at","inserted_at"],"title":"RelationResponse","type":"object"},"TagOrNull":{"additionalProperties":false,"nullable":true,"properties":{"id":{"description":"Tag ID","type":"integer"},"value":{"$ref":"#/components/schemas/TagValue"}},"required":["id","value"],"title":"TagOrNull","type":"object"},"TagValue":{"additionalProperties":true,"description":"Dynamic value of a tag","properties":{"expandable":{"description":"Optional expandable flag","nullable":true,"type":"string"},"target_type":{"description":"Target resource type","type":"string"},"type":{"description":"Tag type","type":"string"}},"required":["target_type","type"],"title":"TagValue","type":"object"},"TagObject":{"additionalProperties":false,"properties":{"id":{"description":"Tag ID","type":"integer"},"value":{"$ref":"#/components/schemas/TagValue"}},"required":["id","value"],"title":"TagObject","type":"object"},"TdLmUnauthorizedResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmUnauthorizedResponse","type":"object"},"TdLmForbiddenResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmForbiddenResponse","type":"object"},"TdLmNotFoundResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmNotFoundResponse","type":"object"},"TdLmInternalServerErrorResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmInternalServerErrorResponse","type":"object"}}}}
```

## Soft delete a relation

> Performs a soft delete of a relation by setting its deleted\_at timestamp, making it invisible in search results but retaining the data for auditing.

```json
{"openapi":"3.0.0","info":{"title":"td-lm","version":"Truedat 8.8.0"},"paths":{"/api/relations/{id}":{"delete":{"description":"Performs a soft delete of a relation by setting its deleted_at timestamp, making it invisible in search results but retaining the data for auditing.","operationId":"TdLmWeb.RelationController.delete","parameters":[{"description":"Relation ID","in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"responses":{"204":{"description":"Relation deleted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmUnauthorizedResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmForbiddenResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmNotFoundResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TdLmInternalServerErrorResponse"}}},"description":"Internal Server Error"}},"summary":"Soft delete a relation","tags":["Relations"]}}},"components":{"schemas":{"TdLmUnauthorizedResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmUnauthorizedResponse","type":"object"},"TdLmForbiddenResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmForbiddenResponse","type":"object"},"TdLmNotFoundResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmNotFoundResponse","type":"object"},"TdLmInternalServerErrorResponse":{"properties":{"errors":{"properties":{"detail":{"type":"string"}},"type":"object"}},"title":"TdLmInternalServerErrorResponse","type":"object"}}}}
```
