TrackRecordPro API Documentation TrackRecordPro

externaltypes endpoint

Summary

API Endpoint Address

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

Minimum Supported API Version3.0
Supported Methods

GET
POST
PUT
DELETE

Access LevelEveryone
DescriptionExternal types are mappings between assets on TrackRecordPro and assets within an external system. For example if you had an ERP system where each asset in TrackRecordPro is also tracked through your planning system you would upload a reference to each of those mapped values here. The external_type_id field can be defined by you to match your external system's ID, but must be unique. These can then be mapped to new assets which have been requested for addition within the assetqueue table, so that users may add assets to TrackRecordPro and find them added either automatically, or with a review process, to your third party system.

GET externaltypes

GET /3.0/externaltypes HTTP/1.1

Details

Retrieve external types records, which are maintained by a remote system which the API is connected to. For items to be approved and added to TrackRecordPro, they must be added to the asset queue, and assigned an external type. Once an external type is assigned the external system attached to the API can choose to release the assets by adding them into the items table, and copying them into its own internal system if necessary.

{
    "request": {
        "url": "\/3.0\/externaltypes",
        "endpoint": "externaltypes",
        "requested_version": "3.0",
        "api_version": 3,
        "request_method": "Get",
        "timestamp": 1507554187,
        "session": null
    },
    "pagination": {
        "total_pages": 24,
        "total_records": 692
    },
    "response": [
        {
            "id": 1,
            "external_itemtype_id": 127,
            "company_id": null,
            "description": "Torque Wrench",
            "data": {
                "code": "TW-1",
                "cost": 50,
                "turnaround_low": 5,
                "turnaround_high": 7,
                "id": 127
            },
            "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
            }
        }
    ]
}

POST externaltypes

POST /3.0/externaltypes HTTP/1.1

Details

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

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

 

 

PUT externaltypes

PUT /3.0/externaltypes HTTP/1.1

Details

Describe the PUT method

Example here

DELETE externaltypes

DELETE /3.0/externaltypes 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.