The Asset Movement 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
{
"id": "asset-movement_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"purpose": "purpose_example",
"transaction_date": "2024-01-15",
"reference_doctype": "reference_doctype_example",
"reference_name": "reference_name_example"
} /api/assets/asset-movement/{id} Retrieve a asset movement
Retrieves the details of an existing asset movement. Supply the unique asset movement ID that was returned from a previous request.
Path parameters
The identifier of the asset movement to retrieve.
Returns
Returns the asset movement object if a valid identifier was provided.
curl https://api.overplane.dev/api/assets/asset-movement/asset-movement_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "asset-movement_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"purpose": "purpose_example",
"transaction_date": "2024-01-15",
"reference_doctype": "reference_doctype_example",
"reference_name": "reference_name_example"
} /api/assets/asset-movement List all asset movements
Returns a list of asset movements. 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 movement objects.
curl https://api.overplane.dev/api/assets/asset-movement \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "asset-movement_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"purpose": "purpose_example",
"transaction_date": "2024-01-15",
"reference_doctype": "reference_doctype_example",
"reference_name": "reference_name_example"
}
],
"has_more": false,
"total": 1
} /api/assets/asset-movement Create a asset movement
Creates a new asset movement object.
Body parameters
Default: draft
Returns
Returns the newly created asset movement object if the call succeeded.
curl https://api.overplane.dev/api/assets/asset-movement \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"company":"Example Corp","purpose":"purpose_example","transaction_date":"2024-01-15"}' {
"id": "asset-movement_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"purpose": "purpose_example",
"transaction_date": "2024-01-15",
"reference_doctype": "reference_doctype_example",
"reference_name": "reference_name_example"
} /api/assets/asset-movement/{id} Update a asset movement
Updates the specified asset movement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the asset movement to update.
Body parameters
Default: draft
Returns
Returns the updated asset movement object.
curl https://api.overplane.dev/api/assets/asset-movement/asset-movement_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","company":"Example Corp"}' {
"id": "asset-movement_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"purpose": "purpose_example",
"transaction_date": "2024-01-15",
"reference_doctype": "reference_doctype_example",
"reference_name": "reference_name_example"
} /api/assets/asset-movement/{id} Delete a asset movement
Permanently deletes a asset movement. This cannot be undone.
Path parameters
The identifier of the asset movement to delete.
Returns
Returns a confirmation that the asset movement has been deleted.
curl https://api.overplane.dev/api/assets/asset-movement/asset-movement_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "asset-movement_abc123",
"deleted": true
} /api/assets/asset-movement/{id}/submit Submit a asset movement
Submits a draft asset movement, transitioning its status from draft to submitted.
Path parameters
The identifier of the asset movement to act on.
Returns
Returns the asset movement object with updated status.
curl https://api.overplane.dev/api/assets/asset-movement/asset-movement_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "asset-movement_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"purpose": "purpose_example",
"transaction_date": "2024-01-15",
"reference_doctype": "reference_doctype_example",
"reference_name": "reference_name_example"
} /api/assets/asset-movement/{id}/cancel Cancel a asset movement
Cancels a submitted asset movement, transitioning its status to cancelled.
Path parameters
The identifier of the asset movement to act on.
Returns
Returns the asset movement object with updated status.
curl https://api.overplane.dev/api/assets/asset-movement/asset-movement_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "asset-movement_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"purpose": "purpose_example",
"transaction_date": "2024-01-15",
"reference_doctype": "reference_doctype_example",
"reference_name": "reference_name_example"
} Line items
Child objects that belong to this asset movement. These are accessed via the parent's ID.
Asset Movement Item
Attributes
Endpoints
/api/assets/asset-movement-item?parent_id={id} /api/assets/asset-movement-item /api/assets/asset-movement-item/{id} /api/assets/asset-movement-item/{id} /api/assets/asset-movement-item/reorder {
"id": "asset-movement-item_abc123",
"idx": 1,
"asset_movement_id": "asset_movement_id_example",
"asset": "asset_example",
"asset_name": "asset_name_example",
"source_location": "source_location_example",
"target_location": "target_location_example",
"from_employee": "from_employee_example",
"to_employee": "to_employee_example",
"company": "Example Corp"
}