> 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/bulk-updates.md).

# Bulk Updates

## Bulk update status of relations

> Updates the status of multiple relations in a single request.

```json
{"openapi":"3.0.0","info":{"title":"td-lm","version":"Truedat 8.8.0"},"paths":{"/api/relations/status":{"post":{"description":"Updates the status of multiple relations in a single request.","operationId":"TdLmWeb.BulkUpdateStatusController.update","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUpdateStatusRequest"}}},"description":"Update parameters","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUpdateStatusResponse"}}},"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":"Bulk update status of relations","tags":["Bulk Updates"]}}},"components":{"schemas":{"BulkUpdateStatusRequest":{"additionalProperties":false,"description":"Request to update status of multiple relations","properties":{"relation_ids":{"description":"List of relation IDs","items":{"type":"integer"},"type":"array"},"status":{"description":"New status to apply (e.g., 'approved', 'rejected', 'pending')","enum":["approved","rejected","pending"],"type":"string"}},"required":["relation_ids","status"],"title":"BulkUpdateStatusRequest","type":"object"},"BulkUpdateStatusResponse":{"additionalProperties":false,"properties":{"data":{"additionalProperties":false,"properties":{"errors":{"additionalProperties":{"$ref":"#/components/schemas/ErrorDetail"},"description":"Errors grouped by reason","type":"object"},"relations":{"description":"List of successfully updated relations","items":{"$ref":"#/components/schemas/RelationSuccessResult"},"type":"array"}},"required":["relations","errors"],"type":"object"}},"required":["data"],"title":"BulkUpdateStatusResponse","type":"object"},"ErrorDetail":{"additionalProperties":false,"description":"Details of errors for a specific reason","properties":{"message":{"description":"Error message","type":"string"},"reason":{"description":"Error reason code","type":"string"},"relations":{"description":"List of relations that failed with this error","items":{"$ref":"#/components/schemas/RelationErrorResult"},"type":"array"}},"required":["message","reason","relations"],"title":"ErrorDetail","type":"object"},"RelationErrorResult":{"additionalProperties":false,"description":"Relation details for error responses (status omitted)","properties":{"id":{"type":"integer"},"source_id":{"type":"integer"},"source_name":{"type":"string"},"source_type":{"type":"string"},"tag_type":{"nullable":true,"type":"string"},"target_id":{"type":"integer"},"target_name":{"type":"string"},"target_type":{"type":"string"}},"required":["id","source_id","source_type","source_name","target_id","target_type","target_name"],"title":"RelationErrorResult","type":"object"},"RelationSuccessResult":{"additionalProperties":false,"description":"Relation details for successful updates (includes status)","properties":{"id":{"description":"Relation ID","type":"integer"},"source_id":{"description":"Source resource ID","type":"integer"},"source_name":{"description":"Source resource name","type":"string"},"source_type":{"description":"Source resource type","type":"string"},"status":{"description":"Updated status","type":"string"},"tag_type":{"description":"Tag type if present","nullable":true,"type":"string"},"target_id":{"description":"Target resource ID","type":"integer"},"target_name":{"description":"Target resource name","type":"string"},"target_type":{"description":"Target resource type","type":"string"}},"required":["id","source_id","source_type","source_name","target_id","target_type","target_name","status"],"title":"RelationSuccessResult","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"}}}}
```
