{ "operationId": "deleteEntity", "method": "DELETE", "path": "/v3/entities/{id}", "summary": "Delete entity profile", "description": "Deletes an entity profile row. Requires a platform-admin session and CSRF token.", "tags": [ "Entities" ], "parameters": [ { "name": "id", "in": "path", "required": true, "example": "string" } ], "responses": { "200": { "description": "Entity profile was deleted.", "schema": { "type": "object", "required": [ "data", "meta" ], "properties": { "data": { "$ref": "#/components/schemas/Entity" }, "meta": { "$ref": "#/components/schemas/PaginationMeta" } } } }, "401": { "description": "Missing, invalid, or expired platform-admin session.", "schema": { "$ref": "#/components/schemas/ErrorResponse" } }, "403": { "description": "Inactive platform-admin access, missing CSRF token, or mismatched CSRF token.", "schema": { "$ref": "#/components/schemas/ErrorResponse" } }, "404": { "description": "Entity profile was not found.", "schema": { "$ref": "#/components/schemas/ErrorResponse" } }, "409": { "description": "Entity profile is still referenced by dependent resources.", "schema": { "$ref": "#/components/schemas/ErrorResponse" } }, "422": { "description": "Invalid entity id.", "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }