List all (or one) hardware model
Endpoint URL
https://{{base_url}}/api/v2/hardware_model
Authentication and rate limits
Item | Details |
---|---|
Authentication method | OAuth 2.0 Bearer token |
Rate limit | Rate Limit |
Requests Example
curl --request GET \
--url 'https://{{base_url}}/api/v2/hardware_model/?company=1' \
--header 'Authorization: Bearer $BEARER_TOKEN'
curl --request GET \
--url 'https://dashboard-api.revnue.com/api/v2/category/$id/?company=1' \
--header 'Authorization: Bearer $BEARER_TOKEN'
Query Parameters
- company (integer) --
[REQUIRED]
The ID of the specific company your API is calling. For accounts with only one company, the default value is1
.
To lookup a specific company ID, see the List Company API. - id (integer) --
Optional if you want to list a hardware model ID. The id parameter is passed as part of the request url
/hardware_model/$id/
. - name (integer) --
Optional if you want to list a hardware model by name. The name parameter is passed as part of the request url
/usage-status/?company=1&name={{hardware_model_name}}
.
Response Syntax
{
"id": integer,
"asset_hardware_model": "string"
}
Response Fields
- id (integer) --
The ID of the usage status.
- name (string) --
The name of the hardware model.