The Asset Repair object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
Default: draft
Default: Pending
Default: 0
Default: false
{
"id": "asset-repair_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"failure_date": "2024-01-15",
"completion_date": "2024-01-15",
"repair_status": "Pending",
"description": "description_example",
"actions_performed": "actions_performed_example",
"downtime": "downtime_example",
"repair_cost": 0,
"asset": "asset_example",
"asset_name": "asset_name_example",
"capitalize_repair_cost": false,
"cost_center": "cost_center_example",
"project": "project_example",
"total_repair_cost": 0,
"increase_in_asset_life": 0,
"company": "Example Corp",
"consumed_items_cost": 0
} /api/assets/asset-repair/{id} Retrieve a asset repair
Retrieves the details of an existing asset repair. Supply the unique asset repair ID that was returned from a previous request.
Path parameters
The identifier of the asset repair to retrieve.
Returns
Returns the asset repair object if a valid identifier was provided.
curl https://api.overplane.dev/api/assets/asset-repair/asset-repair_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "asset-repair_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"failure_date": "2024-01-15",
"completion_date": "2024-01-15",
"repair_status": "Pending",
"description": "description_example",
"actions_performed": "actions_performed_example",
"downtime": "downtime_example",
"repair_cost": 0,
"asset": "asset_example",
"asset_name": "asset_name_example",
"capitalize_repair_cost": false,
"cost_center": "cost_center_example",
"project": "project_example",
"total_repair_cost": 0,
"increase_in_asset_life": 0,
"company": "Example Corp",
"consumed_items_cost": 0
} /api/assets/asset-repair List all asset repairs
Returns a list of asset repairs. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of asset repair objects.
curl https://api.overplane.dev/api/assets/asset-repair \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "asset-repair_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"failure_date": "2024-01-15",
"completion_date": "2024-01-15",
"repair_status": "Pending",
"description": "description_example",
"actions_performed": "actions_performed_example",
"downtime": "downtime_example",
"repair_cost": 0,
"asset": "asset_example",
"asset_name": "asset_name_example",
"capitalize_repair_cost": false,
"cost_center": "cost_center_example",
"project": "project_example",
"total_repair_cost": 0,
"increase_in_asset_life": 0,
"company": "Example Corp",
"consumed_items_cost": 0
}
],
"has_more": false,
"total": 1
} /api/assets/asset-repair Create a asset repair
Creates a new asset repair object.
Body parameters
Default: draft
Default: Pending
Default: 0
Default: false
Returns
Returns the newly created asset repair object if the call succeeded.
curl https://api.overplane.dev/api/assets/asset-repair \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"failure_date":"2024-01-15","asset":"asset_example"}' {
"id": "asset-repair_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"failure_date": "2024-01-15",
"completion_date": "2024-01-15",
"repair_status": "Pending",
"description": "description_example",
"actions_performed": "actions_performed_example",
"downtime": "downtime_example",
"repair_cost": 0,
"asset": "asset_example",
"asset_name": "asset_name_example",
"capitalize_repair_cost": false,
"cost_center": "cost_center_example",
"project": "project_example",
"total_repair_cost": 0,
"increase_in_asset_life": 0,
"company": "Example Corp",
"consumed_items_cost": 0
} /api/assets/asset-repair/{id} Update a asset repair
Updates the specified asset repair by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the asset repair to update.
Body parameters
Default: draft
Default: Pending
Default: 0
Default: false
Returns
Returns the updated asset repair object.
curl https://api.overplane.dev/api/assets/asset-repair/asset-repair_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","failure_date":"2024-01-15"}' {
"id": "asset-repair_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"failure_date": "2024-01-15",
"completion_date": "2024-01-15",
"repair_status": "Pending",
"description": "description_example",
"actions_performed": "actions_performed_example",
"downtime": "downtime_example",
"repair_cost": 0,
"asset": "asset_example",
"asset_name": "asset_name_example",
"capitalize_repair_cost": false,
"cost_center": "cost_center_example",
"project": "project_example",
"total_repair_cost": 0,
"increase_in_asset_life": 0,
"company": "Example Corp",
"consumed_items_cost": 0
} /api/assets/asset-repair/{id} Delete a asset repair
Permanently deletes a asset repair. This cannot be undone.
Path parameters
The identifier of the asset repair to delete.
Returns
Returns a confirmation that the asset repair has been deleted.
curl https://api.overplane.dev/api/assets/asset-repair/asset-repair_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "asset-repair_abc123",
"deleted": true
} /api/assets/asset-repair/{id}/submit Submit a asset repair
Submits a draft asset repair, transitioning its status from draft to submitted.
Path parameters
The identifier of the asset repair to act on.
Returns
Returns the asset repair object with updated status.
curl https://api.overplane.dev/api/assets/asset-repair/asset-repair_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "asset-repair_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"failure_date": "2024-01-15",
"completion_date": "2024-01-15",
"repair_status": "Pending",
"description": "description_example",
"actions_performed": "actions_performed_example",
"downtime": "downtime_example",
"repair_cost": 0,
"asset": "asset_example",
"asset_name": "asset_name_example",
"capitalize_repair_cost": false,
"cost_center": "cost_center_example",
"project": "project_example",
"total_repair_cost": 0,
"increase_in_asset_life": 0,
"company": "Example Corp",
"consumed_items_cost": 0
} /api/assets/asset-repair/{id}/cancel Cancel a asset repair
Cancels a submitted asset repair, transitioning its status to cancelled.
Path parameters
The identifier of the asset repair to act on.
Returns
Returns the asset repair object with updated status.
curl https://api.overplane.dev/api/assets/asset-repair/asset-repair_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "asset-repair_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"failure_date": "2024-01-15",
"completion_date": "2024-01-15",
"repair_status": "Pending",
"description": "description_example",
"actions_performed": "actions_performed_example",
"downtime": "downtime_example",
"repair_cost": 0,
"asset": "asset_example",
"asset_name": "asset_name_example",
"capitalize_repair_cost": false,
"cost_center": "cost_center_example",
"project": "project_example",
"total_repair_cost": 0,
"increase_in_asset_life": 0,
"company": "Example Corp",
"consumed_items_cost": 0
} Line items
Child objects that belong to this asset repair. These are accessed via the parent's ID.
Asset Repair Consumed Item
Attributes
Endpoints
/api/assets/asset-repair-consumed-item?parent_id={id} /api/assets/asset-repair-consumed-item /api/assets/asset-repair-consumed-item/{id} /api/assets/asset-repair-consumed-item/{id} /api/assets/asset-repair-consumed-item/reorder {
"id": "asset-repair-consumed-item_abc123",
"idx": 1,
"asset_repair_id": "asset_repair_id_example",
"valuation_rate": 0,
"consumed_quantity": "consumed_quantity_example",
"total_value": 0,
"serial_no": "serial_no_example",
"item_code": "item_code_example",
"serial_and_batch_bundle": "serial_and_batch_bundle_example",
"warehouse": "warehouse_example"
} Asset Repair Purchase Invoice
Attributes
Endpoints
/api/assets/asset-repair-purchase-invoice?parent_id={id} /api/assets/asset-repair-purchase-invoice /api/assets/asset-repair-purchase-invoice/{id} /api/assets/asset-repair-purchase-invoice/{id} /api/assets/asset-repair-purchase-invoice/reorder {
"id": "asset-repair-purchase-invoice_abc123",
"idx": 1,
"asset_repair_id": "asset_repair_id_example",
"purchase_invoice": "purchase_invoice_example",
"expense_account": "expense_account_example",
"repair_cost": 0
}