The Asset Shift Allocation 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-shift-allocation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"asset": "asset_example",
"finance_book": "finance_book_example"
} /api/assets/asset-shift-allocation/{id} Retrieve a asset shift allocation
Retrieves the details of an existing asset shift allocation. Supply the unique asset shift allocation ID that was returned from a previous request.
Path parameters
The identifier of the asset shift allocation to retrieve.
Returns
Returns the asset shift allocation object if a valid identifier was provided.
curl https://api.overplane.dev/api/assets/asset-shift-allocation/asset-shift-allocation_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "asset-shift-allocation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"asset": "asset_example",
"finance_book": "finance_book_example"
} /api/assets/asset-shift-allocation List all asset shift allocations
Returns a list of asset shift allocations. 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 shift allocation objects.
curl https://api.overplane.dev/api/assets/asset-shift-allocation \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "asset-shift-allocation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"asset": "asset_example",
"finance_book": "finance_book_example"
}
],
"has_more": false,
"total": 1
} /api/assets/asset-shift-allocation Create a asset shift allocation
Creates a new asset shift allocation object.
Body parameters
Default: draft
Returns
Returns the newly created asset shift allocation object if the call succeeded.
curl https://api.overplane.dev/api/assets/asset-shift-allocation \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"asset":"asset_example"}' {
"id": "asset-shift-allocation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"asset": "asset_example",
"finance_book": "finance_book_example"
} /api/assets/asset-shift-allocation/{id} Update a asset shift allocation
Updates the specified asset shift allocation by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the asset shift allocation to update.
Body parameters
Default: draft
Returns
Returns the updated asset shift allocation object.
curl https://api.overplane.dev/api/assets/asset-shift-allocation/asset-shift-allocation_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","asset":"asset_example"}' {
"id": "asset-shift-allocation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"asset": "asset_example",
"finance_book": "finance_book_example"
} /api/assets/asset-shift-allocation/{id} Delete a asset shift allocation
Permanently deletes a asset shift allocation. This cannot be undone.
Path parameters
The identifier of the asset shift allocation to delete.
Returns
Returns a confirmation that the asset shift allocation has been deleted.
curl https://api.overplane.dev/api/assets/asset-shift-allocation/asset-shift-allocation_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "asset-shift-allocation_abc123",
"deleted": true
} /api/assets/asset-shift-allocation/{id}/submit Submit a asset shift allocation
Submits a draft asset shift allocation, transitioning its status from draft to submitted.
Path parameters
The identifier of the asset shift allocation to act on.
Returns
Returns the asset shift allocation object with updated status.
curl https://api.overplane.dev/api/assets/asset-shift-allocation/asset-shift-allocation_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "asset-shift-allocation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"asset": "asset_example",
"finance_book": "finance_book_example"
} /api/assets/asset-shift-allocation/{id}/cancel Cancel a asset shift allocation
Cancels a submitted asset shift allocation, transitioning its status to cancelled.
Path parameters
The identifier of the asset shift allocation to act on.
Returns
Returns the asset shift allocation object with updated status.
curl https://api.overplane.dev/api/assets/asset-shift-allocation/asset-shift-allocation_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "asset-shift-allocation_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"asset": "asset_example",
"finance_book": "finance_book_example"
}