An asset type is a subset of an asset group. Use the API to retrieve a list of all asset types, add or update, or delete an asset type.
Learn more about assets in the OnLocation Help Center.
Returns a list of asset types.
List of asset types
Access denied to this resource
Resource not found
curl -i -X GET \ 'https://api.whosonlocation.com/v1/assettype?q=string&limit=0'
[- {
- "id": "10008",
- "name": "Laptop",
- "group_id": "20000",
- "description": "A portable device type"
}
]
Creates a new asset type that can be assigned to an asset.
Asset Type created
Access denied to this resource
Internal server error
{- "name": "Macbooks",
- "group_id": "10008",
- "description": "A portable device type"
}
{- "id": "10008",
- "name": "Laptop",
- "group_id": "20000",
- "description": "A portable device type"
}
Retrieves a single asset type, filtering with the provided ID.
Access denied to resource
Resource not found
Internal server error
curl -i -X GET \ https://api.whosonlocation.com/v1/assettype/:id
{- "id": "10008",
- "name": "Laptop",
- "group_id": "20000",
- "description": "A portable device type"
}
Updates the details of an asset type.
Information used to update the asset type record
Updated resource
Access denied to this resource
Resource not found
Internal server error
{- "name": "Macbooks",
- "group_id": "10008",
- "description": "A portable device type"
}
{- "id": "10008",
- "name": "Laptop",
- "group_id": "20000",
- "description": "A portable device type"
}