With the seventhings asset tracking manager you digitize your internal process in no time and boost creativity and structure.
username required | string Your login username for the web app. |
password required | string Your secret password. |
client_id required | string You can get the client_id on request. |
grant_type | string The |
username=your%20username&password=S3cR3tP4%C3%9FW0rD&client_id=hash456789012345678901234567890123456789&grant_type=password
{- "access_token": "e68f38c2dca2add6c5528e16d7a2b453371e5870",
- "expires_in": 3600,
- "token_type": "Bearer",
- "scope": null,
- "refresh_token": "2b57a8d37baf1ef3a436968da51149b2eddf7f0f",
- "itexia_clients": {
- "1": "ITEXIA GmbH"
}, - "user_id": 1
}
Get all asset field definition objects.
page | integer <int32> >= 1 Default: 1 Example: page=1 Page number |
pagesize | integer <int32> [ 0 .. 1000 ] Default: 0 Example: pagesize=100 Number of items per page (0 == all items) |
object or null Example: filter[id]=1&filter[updated_at]=2022-11-15+00:00:00 other examples:
|
[- {
- "id": 0,
- "field_key": "id",
- "label": "Identifier",
- "type": 1,
- "sort_index": 0,
- "readonly_on_scanner": 1,
- "visible_by_scanner": 1,
- "system_field": 0,
- "default_value": "example data",
- "mandatory": 0,
- "in_form": 0,
- "form_group": "ITEXIA",
- "part_of_name": 0,
- "is_actual": 1,
- "actual_target_field_id": 5,
- "is_target": 0,
- "editable": 1,
- "value": "example",
- "updated_at": "2018-08-17 12:15:57",
- "included_in_search_bar": 1
}
]
Asset field definition object that needs to be added.
label | string The label of this dataset. |
type | integer Enum: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 25 The type of this dataset.
|
sort_index | integer The position of the dataset in a list. |
readonly_on_scanner | boolean The flag to decide if the property is editable on the scanner. |
visible_by_scanner | boolean The flag to decide if the property is visible on the scanner. |
default_value | string or null The default value of the property. |
mandatory | boolean The flag to decide if the property is mandatory to save the dataset. |
in_form | boolean The flag to decide if the property is visible in the detail view of the dataset. |
form_group | string or null The form group of the property. |
editable | boolean The flag to decide if the property is editable. |
value | string or null Additional property of the field according to the type, e.g. currency symbol for type "currency", select options for type "selection". |
included_in_search_bar | boolean Should the field be included in asset free text search |
{- "label": "Identifier",
- "type": 1,
- "sort_index": 0,
- "readonly_on_scanner": 1,
- "visible_by_scanner": 1,
- "default_value": "example data",
- "mandatory": 0,
- "in_form": 0,
- "form_group": "ITEXIA",
- "editable": 1,
- "value": "example",
- "included_in_search_bar": 1
}
{- "id": 0,
- "field_key": "id",
- "label": "Identifier",
- "type": 1,
- "sort_index": 0,
- "readonly_on_scanner": 1,
- "visible_by_scanner": 1,
- "system_field": 0,
- "default_value": "example data",
- "mandatory": 0,
- "in_form": 0,
- "form_group": "ITEXIA",
- "part_of_name": 0,
- "is_actual": 1,
- "actual_target_field_id": 5,
- "is_target": 0,
- "editable": 1,
- "value": "example",
- "updated_at": "2018-08-17 12:15:57",
- "included_in_search_bar": 1
}
Updates an existing asset field definition by given identifier.
id required | integer Asset field definition id to update |
Asset field definition object that should be updated.
label | string The label of this dataset. |
type | integer Enum: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 25 The type of this dataset.
|
sort_index | integer The position of the dataset in a list. |
readonly_on_scanner | boolean The flag to decide if the property is editable on the scanner. |
visible_by_scanner | boolean The flag to decide if the property is visible on the scanner. |
default_value | string or null The default value of the property. |
mandatory | boolean The flag to decide if the property is mandatory to save the dataset. |
in_form | boolean The flag to decide if the property is visible in the detail view of the dataset. |
form_group | string or null The form group of the property. |
editable | boolean The flag to decide if the property is editable. |
value | string or null Additional property of the field according to the type, e.g. currency symbol for type "currency", select options for type "selection". |
included_in_search_bar | boolean Should the field be included in asset free text search |
{- "label": "Identifier",
- "type": 1,
- "sort_index": 0,
- "readonly_on_scanner": 1,
- "visible_by_scanner": 1,
- "default_value": "example data",
- "mandatory": 0,
- "in_form": 0,
- "form_group": "ITEXIA",
- "editable": 1,
- "value": "example",
- "included_in_search_bar": 1
}
{- "id": 0,
- "field_key": "id",
- "label": "Identifier",
- "type": 1,
- "sort_index": 0,
- "readonly_on_scanner": 1,
- "visible_by_scanner": 1,
- "system_field": 0,
- "default_value": "example data",
- "mandatory": 0,
- "in_form": 0,
- "form_group": "ITEXIA",
- "part_of_name": 0,
- "is_actual": 1,
- "actual_target_field_id": 5,
- "is_target": 0,
- "editable": 1,
- "value": "example",
- "updated_at": "2018-08-17 12:15:57",
- "included_in_search_bar": 1
}
Get a single asset field definition object.
id required | integer The asset field definition identifier. |
{- "id": 0,
- "field_key": "id",
- "label": "Identifier",
- "type": 1,
- "sort_index": 0,
- "readonly_on_scanner": 1,
- "visible_by_scanner": 1,
- "system_field": 0,
- "default_value": "example data",
- "mandatory": 0,
- "in_form": 0,
- "form_group": "ITEXIA",
- "part_of_name": 0,
- "is_actual": 1,
- "actual_target_field_id": 5,
- "is_target": 0,
- "editable": 1,
- "value": "example",
- "updated_at": "2018-08-17 12:15:57",
- "included_in_search_bar": 1
}
Get all room field definition objects.
page | integer <int32> >= 1 Default: 1 Example: page=1 Page number |
pagesize | integer <int32> [ 0 .. 1000 ] Default: 0 Example: pagesize=100 Number of items per page (0 == all items) |
object or null Example: filter[id]=1&filter[updated_at]=2022-11-15+00:00:00 other examples:
|
[- {
- "id": 0,
- "field_key": "id",
- "label": "Identifier",
- "type": 1,
- "sort_index": 0,
- "readonly_on_scanner": 1,
- "visible_by_scanner": 1,
- "system_field": 0,
- "default_value": "example data",
- "mandatory": 0,
- "in_form": 0,
- "form_group": "ITEXIA",
- "part_of_name": 0,
- "is_actual": 1,
- "actual_target_field_id": 5,
- "is_target": 0,
- "editable": 1,
- "value": "example",
- "updated_at": "2018-08-17 12:15:57",
- "included_in_search_bar": 1
}
]
Room field definition object that needs to be added.
label | string The label of this dataset. |
type | integer Enum: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 25 The type of this dataset.
|
sort_index | integer The position of the dataset in a list. |
readonly_on_scanner | boolean The flag to decide if the property is editable on the scanner. |
visible_by_scanner | boolean The flag to decide if the property is visible on the scanner. |
default_value | string or null The default value of the property. |
mandatory | boolean The flag to decide if the property is mandatory to save the dataset. |
in_form | boolean The flag to decide if the property is visible in the detail view of the dataset. |
form_group | string or null The form group of the property. |
editable | boolean The flag to decide if the property is editable. |
value | string or null Additional property of the field according to the type, e.g. currency symbol for type "currency", select options for type "selection". |
included_in_search_bar | boolean Should the field be included in asset free text search |
{- "label": "Identifier",
- "type": 1,
- "sort_index": 0,
- "readonly_on_scanner": 1,
- "visible_by_scanner": 1,
- "default_value": "example data",
- "mandatory": 0,
- "in_form": 0,
- "form_group": "ITEXIA",
- "editable": 1,
- "value": "example",
- "included_in_search_bar": 1
}
{- "id": 0,
- "field_key": "id",
- "label": "Identifier",
- "type": 1,
- "sort_index": 0,
- "readonly_on_scanner": 1,
- "visible_by_scanner": 1,
- "system_field": 0,
- "default_value": "example data",
- "mandatory": 0,
- "in_form": 0,
- "form_group": "ITEXIA",
- "part_of_name": 0,
- "is_actual": 1,
- "actual_target_field_id": 5,
- "is_target": 0,
- "editable": 1,
- "value": "example",
- "updated_at": "2018-08-17 12:15:57",
- "included_in_search_bar": 1
}
Updates an existing room field definition by given identifier.
id required | integer Room field definition id to update |
Room field definition object that should be updated.
label | string The label of this dataset. |
type | integer Enum: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 25 The type of this dataset.
|
sort_index | integer The position of the dataset in a list. |
readonly_on_scanner | boolean The flag to decide if the property is editable on the scanner. |
visible_by_scanner | boolean The flag to decide if the property is visible on the scanner. |
default_value | string or null The default value of the property. |
mandatory | boolean The flag to decide if the property is mandatory to save the dataset. |
in_form | boolean The flag to decide if the property is visible in the detail view of the dataset. |
form_group | string or null The form group of the property. |
editable | boolean The flag to decide if the property is editable. |
value | string or null Additional property of the field according to the type, e.g. currency symbol for type "currency", select options for type "selection". |
included_in_search_bar | boolean Should the field be included in asset free text search |
{- "label": "Identifier",
- "type": 1,
- "sort_index": 0,
- "readonly_on_scanner": 1,
- "visible_by_scanner": 1,
- "default_value": "example data",
- "mandatory": 0,
- "in_form": 0,
- "form_group": "ITEXIA",
- "editable": 1,
- "value": "example",
- "included_in_search_bar": 1
}
{- "id": 0,
- "field_key": "id",
- "label": "Identifier",
- "type": 1,
- "sort_index": 0,
- "readonly_on_scanner": 1,
- "visible_by_scanner": 1,
- "system_field": 0,
- "default_value": "example data",
- "mandatory": 0,
- "in_form": 0,
- "form_group": "ITEXIA",
- "part_of_name": 0,
- "is_actual": 1,
- "actual_target_field_id": 5,
- "is_target": 0,
- "editable": 1,
- "value": "example",
- "updated_at": "2018-08-17 12:15:57",
- "included_in_search_bar": 1
}
Get a single room field definition object.
id required | integer The room field definition identifier. |
{- "id": 0,
- "field_key": "id",
- "label": "Identifier",
- "type": 1,
- "sort_index": 0,
- "readonly_on_scanner": 1,
- "visible_by_scanner": 1,
- "system_field": 0,
- "default_value": "example data",
- "mandatory": 0,
- "in_form": 0,
- "form_group": "ITEXIA",
- "part_of_name": 0,
- "is_actual": 1,
- "actual_target_field_id": 5,
- "is_target": 0,
- "editable": 1,
- "value": "example",
- "updated_at": "2018-08-17 12:15:57",
- "included_in_search_bar": 1
}
Get all undeleted and soft deleted asset objects.
page | integer <int32> >= 1 Default: 1 Example: page=1 Page number |
pagesize | integer <int32> [ 0 .. 1000 ] Default: 0 Example: pagesize=100 Number of items per page (0 == all items) |
object or null Example: filter[id]=1&filter[updated_at]=2022-11-15+00:00:00 other examples:
|
[- {
- "id": 1,
- "asset_uuid": "eeb35ffa-0da4-4a44-b56c-b203b4778cc7",
- "status": 33,
- "barcode": "102020",
- "created_at": "2018-08-17 11:15:57",
- "updated_at": "2018-08-17 12:15:57",
- "updated_by_user_id": 1,
- "inventory_group": "inventory",
- "purchasing_date": "2018-08-17 11:15:57",
- "inventory_name": "Meeting chair",
- "purchasing_price": 287.5,
- "description": "All fields can be adjusted individually.",
- "manufacturer": "Vitra",
- "picture": [
- {
- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
], - "documents": [
- {
- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
], - "target_building": 1,
- "target_room": 3,
- "actual_building": 1,
- "actual_room": 3,
- "scan_time": "2018-08-17 12:15:57",
- "inventory_time": "2018-08-17 12:15:57",
- "locked_by": 1,
- "scanned_by_user_id": 1,
- "deleted": 0,
- "external": 123,
- "imported_by_user_id": 1,
- "imported_with_template_id": 1,
- "imported_at": "2018-08-17 12:15:57",
- "created_on_import_with_template_id": 1,
- "original_barcode": "0000000102020"
}
]
Asset object that needs to be added. Unsetable fields will be ignored, like the id
field.
id | integer The identifier of the asset. |
status | any Enum: 1 11 20 31 33 The status of this dataset.
|
barcode | string The unique identifier of the asset used by the scanners. |
created_at | string The creation date of this asset in timezone UTC. |
updated_at | string The update date of this asset in timezone UTC without the locking of the asset. |
updated_by_user_id | integer or null The identifier of the associated user who updated the asset last. |
inventory_group | string or null A user generated enum field with the possible inventory groups. |
purchasing_date | string or null The title of the asset. |
inventory_name | string The title of the asset. |
purchasing_price | number or null The purchasing price of the asset. |
description | string A description associated with the asset. |
manufacturer | string The name of the manufacturer of the asset. |
link | string or null A valid link associated with the asset. |
Array of objects or null (MediaItem) | |
Array of objects or null (MediaItem) | |
target_building | integer The identifier of the associated building where the asset should be located at. |
target_room | integer The identifier of the associated room where the asset should be located at. |
actual_building | integer or null The identifier of the associated building where the asset actually is located. |
actual_room | integer or null The identifier of the associated room where the asset actually is located. |
scan_time | string or null Saved while the asset is scanned and will be cleared while inventory reset process. |
inventory_time | string or null Saved by manual changes of the actual values and while scanning and within the inventory reset process. |
locked_by | integer Default: 0 The identifier of the associated user who locked the asset last. |
scanned_by_user_id | integer or null The identifier of the associated user who scanned the asset last. |
deleted | integer or null (SoftDelete) Enum: 0 1 2 The soft delete flag of object. 0 or null is undeleted, 1 is soft deleted and 2 is deleted. |
external | integer or null Actually not in use. |
imported_by_user_id | integer or null Default: null The identifier of the associated user who imported the asset last. |
imported_with_template_id | integer or null Default: null The identifier of the associated import template which affected this asset last. |
imported_at | string or null Default: null The date of the last import change which affected this asset last. |
created_on_import_with_template_id | integer or null Default: null The identifier of the associated import template which created this asset. |
original_barcode | string The unique identifier originally read by the scanners. |
{- "id": 1,
- "status": 33,
- "barcode": "102020",
- "created_at": "2018-08-17 11:15:57",
- "updated_at": "2018-08-17 12:15:57",
- "updated_by_user_id": 1,
- "inventory_group": "inventory",
- "purchasing_date": "2018-08-17 11:15:57",
- "inventory_name": "Meeting chair",
- "purchasing_price": 287.5,
- "description": "All fields can be adjusted individually.",
- "manufacturer": "Vitra",
- "picture": [
- {
- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
], - "documents": [
- {
- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
], - "target_building": 1,
- "target_room": 3,
- "actual_building": 1,
- "actual_room": 3,
- "scan_time": "2018-08-17 12:15:57",
- "inventory_time": "2018-08-17 12:15:57",
- "locked_by": 1,
- "scanned_by_user_id": 1,
- "deleted": 0,
- "external": 123,
- "imported_by_user_id": 1,
- "imported_with_template_id": 1,
- "imported_at": "2018-08-17 12:15:57",
- "created_on_import_with_template_id": 1,
- "original_barcode": "0000000102020"
}
{- "id": 1,
- "asset_uuid": "eeb35ffa-0da4-4a44-b56c-b203b4778cc7",
- "status": 33,
- "barcode": "102020",
- "created_at": "2018-08-17 11:15:57",
- "updated_at": "2018-08-17 12:15:57",
- "updated_by_user_id": 1,
- "inventory_group": "inventory",
- "purchasing_date": "2018-08-17 11:15:57",
- "inventory_name": "Meeting chair",
- "purchasing_price": 287.5,
- "description": "All fields can be adjusted individually.",
- "manufacturer": "Vitra",
- "picture": [
- {
- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
], - "documents": [
- {
- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
], - "target_building": 1,
- "target_room": 3,
- "actual_building": 1,
- "actual_room": 3,
- "scan_time": "2018-08-17 12:15:57",
- "inventory_time": "2018-08-17 12:15:57",
- "locked_by": 1,
- "scanned_by_user_id": 1,
- "deleted": 0,
- "external": 123,
- "imported_by_user_id": 1,
- "imported_with_template_id": 1,
- "imported_at": "2018-08-17 12:15:57",
- "created_on_import_with_template_id": 1,
- "original_barcode": "0000000102020"
}
Updates an existing asset by given identifier.
id required | integer Asset id to update |
Asset object that should be updated.
id | integer The identifier of the asset. |
status | any Enum: 1 11 20 31 33 The status of this dataset.
|
barcode | string The unique identifier of the asset used by the scanners. |
created_at | string The creation date of this asset in timezone UTC. |
updated_at | string The update date of this asset in timezone UTC without the locking of the asset. |
updated_by_user_id | integer or null The identifier of the associated user who updated the asset last. |
inventory_group | string or null A user generated enum field with the possible inventory groups. |
purchasing_date | string or null The title of the asset. |
inventory_name | string The title of the asset. |
purchasing_price | number or null The purchasing price of the asset. |
description | string A description associated with the asset. |
manufacturer | string The name of the manufacturer of the asset. |
link | string or null A valid link associated with the asset. |
Array of objects or null (MediaItem) | |
Array of objects or null (MediaItem) | |
target_building | integer The identifier of the associated building where the asset should be located at. |
target_room | integer The identifier of the associated room where the asset should be located at. |
actual_building | integer or null The identifier of the associated building where the asset actually is located. |
actual_room | integer or null The identifier of the associated room where the asset actually is located. |
scan_time | string or null Saved while the asset is scanned and will be cleared while inventory reset process. |
inventory_time | string or null Saved by manual changes of the actual values and while scanning and within the inventory reset process. |
locked_by | integer Default: 0 The identifier of the associated user who locked the asset last. |
scanned_by_user_id | integer or null The identifier of the associated user who scanned the asset last. |
deleted | integer or null (SoftDelete) Enum: 0 1 2 The soft delete flag of object. 0 or null is undeleted, 1 is soft deleted and 2 is deleted. |
external | integer or null Actually not in use. |
imported_by_user_id | integer or null Default: null The identifier of the associated user who imported the asset last. |
imported_with_template_id | integer or null Default: null The identifier of the associated import template which affected this asset last. |
imported_at | string or null Default: null The date of the last import change which affected this asset last. |
created_on_import_with_template_id | integer or null Default: null The identifier of the associated import template which created this asset. |
original_barcode | string The unique identifier originally read by the scanners. |
{- "id": 1,
- "status": 33,
- "barcode": "102020",
- "created_at": "2018-08-17 11:15:57",
- "updated_at": "2018-08-17 12:15:57",
- "updated_by_user_id": 1,
- "inventory_group": "inventory",
- "purchasing_date": "2018-08-17 11:15:57",
- "inventory_name": "Meeting chair",
- "purchasing_price": 287.5,
- "description": "All fields can be adjusted individually.",
- "manufacturer": "Vitra",
- "picture": [
- {
- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
], - "documents": [
- {
- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
], - "target_building": 1,
- "target_room": 3,
- "actual_building": 1,
- "actual_room": 3,
- "scan_time": "2018-08-17 12:15:57",
- "inventory_time": "2018-08-17 12:15:57",
- "locked_by": 1,
- "scanned_by_user_id": 1,
- "deleted": 0,
- "external": 123,
- "imported_by_user_id": 1,
- "imported_with_template_id": 1,
- "imported_at": "2018-08-17 12:15:57",
- "created_on_import_with_template_id": 1,
- "original_barcode": "0000000102020"
}
{- "id": 1,
- "asset_uuid": "eeb35ffa-0da4-4a44-b56c-b203b4778cc7",
- "status": 33,
- "barcode": "102020",
- "created_at": "2018-08-17 11:15:57",
- "updated_at": "2018-08-17 12:15:57",
- "updated_by_user_id": 1,
- "inventory_group": "inventory",
- "purchasing_date": "2018-08-17 11:15:57",
- "inventory_name": "Meeting chair",
- "purchasing_price": 287.5,
- "description": "All fields can be adjusted individually.",
- "manufacturer": "Vitra",
- "picture": [
- {
- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
], - "documents": [
- {
- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
], - "target_building": 1,
- "target_room": 3,
- "actual_building": 1,
- "actual_room": 3,
- "scan_time": "2018-08-17 12:15:57",
- "inventory_time": "2018-08-17 12:15:57",
- "locked_by": 1,
- "scanned_by_user_id": 1,
- "deleted": 0,
- "external": 123,
- "imported_by_user_id": 1,
- "imported_with_template_id": 1,
- "imported_at": "2018-08-17 12:15:57",
- "created_on_import_with_template_id": 1,
- "original_barcode": "0000000102020"
}
File and where to upload.
model_id | integer The identifier of the associated object. |
attribute | string The attribute where the file belongs to within the object. |
File | string <binary> The file content. |
{- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
model_id required | integer Example: model_id=1 The identifier of the associated asset |
attribute required | string Example: attribute=documents The field_key of the associated asset field definition which store the files. |
file_name required | string Example: file_name=assets_5c3cbd9f91b4f6.99342518.jpg The unique filename of the image on the server. |
"File successfully deleted!"
Get count of all undeleted and soft deleted assets.
object or null Example: filter[id]=1&filter[updated_at]=2022-11-15+00:00:00 other examples:
|
{- "total": 537
}
Also hard deleted objects can be found here.
id required | integer The asset identifier. |
{- "id": 1,
- "asset_uuid": "eeb35ffa-0da4-4a44-b56c-b203b4778cc7",
- "status": 33,
- "barcode": "102020",
- "created_at": "2018-08-17 11:15:57",
- "updated_at": "2018-08-17 12:15:57",
- "updated_by_user_id": 1,
- "inventory_group": "inventory",
- "purchasing_date": "2018-08-17 11:15:57",
- "inventory_name": "Meeting chair",
- "purchasing_price": 287.5,
- "description": "All fields can be adjusted individually.",
- "manufacturer": "Vitra",
- "picture": [
- {
- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
], - "documents": [
- {
- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
], - "target_building": 1,
- "target_room": 3,
- "actual_building": 1,
- "actual_room": 3,
- "scan_time": "2018-08-17 12:15:57",
- "inventory_time": "2018-08-17 12:15:57",
- "locked_by": 1,
- "scanned_by_user_id": 1,
- "deleted": 0,
- "external": 123,
- "imported_by_user_id": 1,
- "imported_with_template_id": 1,
- "imported_at": "2018-08-17 12:15:57",
- "created_on_import_with_template_id": 1,
- "original_barcode": "0000000102020"
}
Get all undeleted building objects.
page | integer <int32> >= 1 Default: 1 Example: page=1 Page number |
pagesize | integer <int32> [ 0 .. 1000 ] Default: 0 Example: pagesize=100 Number of items per page (0 == all items) |
object or null Example: filter[id]=1&filter[updated_at]=2022-11-15+00:00:00 other examples:
|
[- {
- "id": 1,
- "location_uuid": "eeb35ffa-0da4-4a44-b56c-b203b4778cc7",
- "name": "example building",
- "created_at": "2018-08-17 11:15:57",
- "updated_at": "2018-08-17 12:15:57",
- "updated_by_user_id": 1,
- "deleted": 0
}
]
Building object that needs to be added. Unsetable fields will be ignored, like the id
field.
id | integer The identifier of the building. |
name | string The name of the building. |
created_at | string The creation date of this building in timezone UTC. |
updated_at | string The update date of this building in timezone UTC. |
updated_by_user_id | integer or null The identifier of the associated user who updated the building last. |
deleted | integer or null (SoftDelete) Enum: 0 1 2 The soft delete flag of object. 0 or null is undeleted, 1 is soft deleted and 2 is deleted. |
{- "id": 1,
- "name": "example building",
- "created_at": "2018-08-17 11:15:57",
- "updated_at": "2018-08-17 12:15:57",
- "updated_by_user_id": 1,
- "deleted": 0
}
{- "id": 1,
- "location_uuid": "eeb35ffa-0da4-4a44-b56c-b203b4778cc7",
- "name": "example building",
- "created_at": "2018-08-17 11:15:57",
- "updated_at": "2018-08-17 12:15:57",
- "updated_by_user_id": 1,
- "deleted": 0
}
Updates an existing building by given identifier. Currently only the name
is updatable.
id required | integer Building id to update |
Building object that needs to be updated.
id | integer The identifier of the building. |
name | string The name of the building. |
created_at | string The creation date of this building in timezone UTC. |
updated_at | string The update date of this building in timezone UTC. |
updated_by_user_id | integer or null The identifier of the associated user who updated the building last. |
deleted | integer or null (SoftDelete) Enum: 0 1 2 The soft delete flag of object. 0 or null is undeleted, 1 is soft deleted and 2 is deleted. |
{- "id": 1,
- "name": "example building",
- "created_at": "2018-08-17 11:15:57",
- "updated_at": "2018-08-17 12:15:57",
- "updated_by_user_id": 1,
- "deleted": 0
}
{- "id": 1,
- "location_uuid": "eeb35ffa-0da4-4a44-b56c-b203b4778cc7",
- "name": "example building",
- "created_at": "2018-08-17 11:15:57",
- "updated_at": "2018-08-17 12:15:57",
- "updated_by_user_id": 1,
- "deleted": 0
}
Hard deleted objects can not be found here.
id required | integer the building identifier. |
{- "id": 1,
- "location_uuid": "eeb35ffa-0da4-4a44-b56c-b203b4778cc7",
- "name": "example building",
- "created_at": "2018-08-17 11:15:57",
- "updated_at": "2018-08-17 12:15:57",
- "updated_by_user_id": 1,
- "deleted": 0
}
Get all undeleted room objects.
page | integer <int32> >= 1 Default: 1 Example: page=1 Page number |
pagesize | integer <int32> [ 0 .. 1000 ] Default: 0 Example: pagesize=100 Number of items per page (0 == all items) |
object or null Example: filter[id]=1&filter[updated_at]=2022-11-15+00:00:00 other examples:
|
[- {
- "id": 1,
- "room_uuid": "eeb35ffa-0da4-4a44-b56c-b203b4778cc7",
- "building_id": 1,
- "name": "Meeting room",
- "number": "R102",
- "additional_information": "Some text in addition to the room.",
- "created_at": "2018-08-17 11:15:57",
- "updated_at": "2018-08-17 12:15:57",
- "updated_by_user_id": 1,
- "picture": [
- {
- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
], - "scan_time": "2018-08-17 12:15:57",
- "scanned_by_user_id": 1,
- "deleted": 0,
- "imported_by_user_id": 1,
- "imported_with_template_id": 1,
- "imported_at": "2018-08-17 12:15:57",
- "created_on_import_with_template_id": 1
}
]
Room object that needs to be added. Unsetable fields will be ignored, like the id
field.
id | integer The identifier of the room. |
building_id | integer The identifier of the associated building. |
name | string The name of the room. |
number | string The number of the room. |
additional_information | string Some additional information to the room. |
created_at | string The creation date of this room in timezone UTC. |
updated_at | string The update date of this room in timezone UTC. |
updated_by_user_id | integer or null The identifier of the associated user who updated the room last. |
Array of objects or null (MediaItem) | |
scan_time | string or null The last scan time of this room in timezone UTC. |
scanned_by_user_id | integer or null The identifier of the associated user who scanned the room last. |
deleted | integer or null (SoftDelete) Enum: 0 1 2 The soft delete flag of object. 0 or null is undeleted, 1 is soft deleted and 2 is deleted. |
imported_by_user_id | integer or null Default: null The identifier of the associated user who imported the room last. |
imported_with_template_id | integer or null Default: null The identifier of the associated import template which affected this room last. |
imported_at | string or null Default: null The date of the last import change which affected this room last. |
created_on_import_with_template_id | integer or null Default: null The identifier of the associated import template which created this room. |
{- "id": 1,
- "building_id": 1,
- "name": "Meeting room",
- "number": "R102",
- "additional_information": "Some text in addition to the room.",
- "created_at": "2018-08-17 11:15:57",
- "updated_at": "2018-08-17 12:15:57",
- "updated_by_user_id": 1,
- "picture": [
- {
- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
], - "scan_time": "2018-08-17 12:15:57",
- "scanned_by_user_id": 1,
- "deleted": 0,
- "imported_by_user_id": 1,
- "imported_with_template_id": 1,
- "imported_at": "2018-08-17 12:15:57",
- "created_on_import_with_template_id": 1
}
{- "id": 1,
- "room_uuid": "eeb35ffa-0da4-4a44-b56c-b203b4778cc7",
- "building_id": 1,
- "name": "Meeting room",
- "number": "R102",
- "additional_information": "Some text in addition to the room.",
- "created_at": "2018-08-17 11:15:57",
- "updated_at": "2018-08-17 12:15:57",
- "updated_by_user_id": 1,
- "picture": [
- {
- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
], - "scan_time": "2018-08-17 12:15:57",
- "scanned_by_user_id": 1,
- "deleted": 0,
- "imported_by_user_id": 1,
- "imported_with_template_id": 1,
- "imported_at": "2018-08-17 12:15:57",
- "created_on_import_with_template_id": 1
}
id required | integer Room id to update |
Room object that needs to be added.
id | integer The identifier of the room. |
building_id | integer The identifier of the associated building. |
name | string The name of the room. |
number | string The number of the room. |
additional_information | string Some additional information to the room. |
created_at | string The creation date of this room in timezone UTC. |
updated_at | string The update date of this room in timezone UTC. |
updated_by_user_id | integer or null The identifier of the associated user who updated the room last. |
Array of objects or null (MediaItem) | |
scan_time | string or null The last scan time of this room in timezone UTC. |
scanned_by_user_id | integer or null The identifier of the associated user who scanned the room last. |
deleted | integer or null (SoftDelete) Enum: 0 1 2 The soft delete flag of object. 0 or null is undeleted, 1 is soft deleted and 2 is deleted. |
imported_by_user_id | integer or null Default: null The identifier of the associated user who imported the room last. |
imported_with_template_id | integer or null Default: null The identifier of the associated import template which affected this room last. |
imported_at | string or null Default: null The date of the last import change which affected this room last. |
created_on_import_with_template_id | integer or null Default: null The identifier of the associated import template which created this room. |
{- "id": 1,
- "building_id": 1,
- "name": "Meeting room",
- "number": "R102",
- "additional_information": "Some text in addition to the room.",
- "created_at": "2018-08-17 11:15:57",
- "updated_at": "2018-08-17 12:15:57",
- "updated_by_user_id": 1,
- "picture": [
- {
- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
], - "scan_time": "2018-08-17 12:15:57",
- "scanned_by_user_id": 1,
- "deleted": 0,
- "imported_by_user_id": 1,
- "imported_with_template_id": 1,
- "imported_at": "2018-08-17 12:15:57",
- "created_on_import_with_template_id": 1
}
{- "id": 1,
- "room_uuid": "eeb35ffa-0da4-4a44-b56c-b203b4778cc7",
- "building_id": 1,
- "name": "Meeting room",
- "number": "R102",
- "additional_information": "Some text in addition to the room.",
- "created_at": "2018-08-17 11:15:57",
- "updated_at": "2018-08-17 12:15:57",
- "updated_by_user_id": 1,
- "picture": [
- {
- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
], - "scan_time": "2018-08-17 12:15:57",
- "scanned_by_user_id": 1,
- "deleted": 0,
- "imported_by_user_id": 1,
- "imported_with_template_id": 1,
- "imported_at": "2018-08-17 12:15:57",
- "created_on_import_with_template_id": 1
}
File and where to upload.
model_id | integer The identifier of the associated object. |
attribute | string The attribute where the file belongs to within the object. |
File | string <binary> The file content. |
{- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
Hard deleted objects can not be found here.
id required | integer The room identifier. |
{- "id": 1,
- "room_uuid": "eeb35ffa-0da4-4a44-b56c-b203b4778cc7",
- "building_id": 1,
- "name": "Meeting room",
- "number": "R102",
- "additional_information": "Some text in addition to the room.",
- "created_at": "2018-08-17 11:15:57",
- "updated_at": "2018-08-17 12:15:57",
- "updated_by_user_id": 1,
- "picture": [
- {
- "type": "image/jpeg",
- "name": "Koala.jpg",
- "name_on_server": "assets_5bf7d64eb1b432.69098394.jpg",
- "url": "api/v1/asset/get-file?fileName=assets_5bf7d64eb1b432.69098394.jpg&fileType=image%2Fjpeg",
- "size": 780831
}
], - "scan_time": "2018-08-17 12:15:57",
- "scanned_by_user_id": 1,
- "deleted": 0,
- "imported_by_user_id": 1,
- "imported_with_template_id": 1,
- "imported_at": "2018-08-17 12:15:57",
- "created_on_import_with_template_id": 1
}