TrackRecordPro API Documentation TrackRecordPro

assetqueue endpoint

Summary

API Endpoint Address

https://api.trackrecordpro.co.uk/3.0/assetqueue

Minimum Supported API Version3.0
Supported Methods

GET
POST
PUT
DELETE

Access LevelEveryone
DescriptionThe asset queue contains a list of assets awaiting approval. Assets must then be approved by whichever system is attached to the company via the api_assetqueue_manager_id value within the companies data. Once an asset is approved the external system can decide via the API wether or not to then copy that asset into its own database, and move it into the items table by using the items endpoint.

GET assetqueue

GET /3.0/assetqueue HTTP/1.1

Details

Retrieves the items in the asset queue

{
    "request": {
        "url": "\/3.0\/assetqueue",
        "endpoint": "assetqueue",
        "requested_version": "3.0",
        "api_version": 3,
        "request_method": "Get",
        "timestamp": 1507535675,
        "session": null
    },
    "pagination": {
        "total_pages": 24,
        "total_records": 692
    },
    "response": [
        {
            "id": 1,
            "company_id": 1,
            "external_type_id": null,
            "manufacturer": "Fluke",
            "model": "87",
            "asset_no": "FK1321",
            "serial_no": "807210389",
            "description": "Fluke 87 Multimeter",
            "next_date": "2018-06-05",
            "period": 12,
            "status": "Active",
            "date_added": "2017-10-09",
            "department_id": 1,
            "location_id": 1,
            "last_error": "",
            "requested_date": "2017-10-09 08:45:48",
            "released": 0,
            "data": null,
            "company": {
                "id": 1,
                "name": "TrackRecordPro",
                "created": "2017-10-09 08:42:37",
                "logo": "trp.png",
                "subdomain": "trackrecordpro",
                "styles": {
                    "test": {
                        "foo": "bar",
                        "baz": 1
                    },
                    "test2": 666.7
                },
                "data": null
            },
            "externaltype": {
                "id": null,
                "external_itemtype_id": null,
                "company_id": null,
                "description": null,
                "data": null
            },
            "department": {
                "id": 1,
                "company_id": 1,
                "description": "Department 1",
                "creationdate": "2017-10-04 00:00:00",
                "data": null
            },
            "location": {
                "id": 1,
                "company_id": 1,
                "description": "Location 1",
                "creationdate": "2017-10-04 00:00:00",
                "data": null
            }
        }
    ]
}

POST assetqueue

POST /3.0/assetqueue HTTP/1.1

Details

Update an entry in the assetqueue. You must include the fields and values to update as a JSON object in the POST data.

{
    "request": {
        "url": "\/3.0\/aseetqueue\/id=42",
        "endpoint": "password",
        "requested_version": "3.0",
        "api_version": 3,
        "request_method": "Post",
        "timestamp": 1507622071,
        "session": null
    },
    "response": {
        "records_updated": 1,
        "records_found": 1
    }
}

PUT assetqueue

PUT /3.0/assetqueue HTTP/1.1

Details

Describe the PUT method

Example here

DELETE assetqueue

DELETE /3.0/assetqueue HTTP/1.1

Details

Describe the DELETE method

Example here

Field Definitions

Expand

Invalid license

Your evaluation license of PocketQuery expired. Please contact an administrator to purchase a new license.