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