{
 "openapi": "3.1.0",
 "info": {
  "title": "Assets Held (Accounting)",
  "version": "20261030b",
  "description": "What each person is holding right now — the no-dues list. A holder who has left or is leaving is flagged, which is the only thing that turns a list into an action."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "assets-held": {
    "type": "object",
    "required": [],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "asset_no": {
      "type": "string",
      "description": "Asset no",
      "readOnly": true
     },
     "asset_name": {
      "type": "string",
      "description": "Asset name",
      "readOnly": true
     },
     "asset_class": {
      "type": "string",
      "description": "Asset class",
      "readOnly": true
     },
     "serial_no": {
      "type": "string",
      "description": "Serial no",
      "readOnly": true
     },
     "barcode": {
      "type": "string",
      "description": "Barcode",
      "readOnly": true
     },
     "cost": {
      "type": "string",
      "format": "decimal",
      "description": "Cost",
      "readOnly": true
     },
     "currency": {
      "type": "string",
      "description": "Currency",
      "readOnly": true
     },
     "issued_on": {
      "type": "string",
      "format": "date",
      "description": "Issued on",
      "readOnly": true
     },
     "status": {
      "type": "string",
      "description": "Status",
      "readOnly": true
     },
     "employee_id": {
      "type": "string",
      "format": "uuid",
      "description": "Employee id",
      "readOnly": true
     },
     "employee_no": {
      "type": "string",
      "description": "Employee no",
      "readOnly": true
     },
     "employee_status": {
      "type": "string",
      "description": "Employee status",
      "readOnly": true
     },
     "termination_date": {
      "type": "string",
      "format": "date",
      "description": "Termination date",
      "readOnly": true
     },
     "holder_name": {
      "type": "string",
      "description": "Holder name",
      "readOnly": true
     },
     "department": {
      "type": "string",
      "description": "Department",
      "readOnly": true
     },
     "location_name": {
      "type": "string",
      "description": "Location name",
      "readOnly": true
     },
     "days_held": {
      "type": "integer",
      "description": "Days held",
      "readOnly": true
     },
     "holder_is_leaving": {
      "type": "boolean",
      "description": "Holder is leaving",
      "readOnly": true
     },
     "last_movement": {
      "type": "string",
      "format": "date",
      "description": "Last movement",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/accounting/assets-held": {
   "get": {
    "summary": "list assets-held",
    "operationId": "list_assets_held_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post assets held",
    "operationId": "action_assets_held_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/assets-held/{id}": {
   "get": {
    "summary": "get assets-held",
    "operationId": "get_assets_held_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "Put assets held",
    "operationId": "action_assets_held_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete assets held",
    "operationId": "action_assets_held_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/assets-held/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_assets_held_0_6",
    "description": "Body keys: overrides, preview, withLines",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}