Skip to main content

Farsight® Inventory Models

Updated over 2 weeks ago

Requirements

  • An active Farsight® admin account

  • Authorized API key

Limitations

GET a Paginated List of Inventory Models(GET /v1/inventorymodels)

This API allows you to get a list of inventory Models from your Farsight® organisation.

The following parameters are used to filter, sort, and paginate the list of assets returned in the response. All parameters are optional unless otherwise noted.

Input Parameter

Type

Required

Definition

Limit

integer

No

The number of items you want the API to return. It can range from 1 to 50 (Free) or 1 to 500 (Pro). The default value is set to 25.

Offset

integer

No

The index of the first item to return. Must be 0 or greater. It is set to 0 by default.

Create a new Inventory Model Manufacturers (POST /v1/inventorymodels)

You can use the API to create new inventory items programmatically

Input Parameter

Type

Required

Definition

name

string

Yes

The name of the new inventory model category

{  
"name": "string"
}

GET a Inventory Model Manufacturer (GET /v1/inventorymodels/{id})

This API allows you to get an inventory model from your Farsight® organisation.

The following parameters are used to filter, sort, and paginate the list of assets returned in the response. All parameters are optional unless otherwise noted.

Input Parameter

Type

Required

Definition

Id

integer

Yes

The ID of the inventory model

Update a Inventory Model Manufacturers (PUT /v1/inventorymodels/{id})

This API allows you to update an inventory model from your Farsight® organisation.

Input Parameter

Type

Required

Definition

Id

integer

Yes

The ID of the inventory model

{
"name": "string"
}

Delete a Inventory Model Manufacturers (DELETE /v1/inventorymodels/{id})

This API allows you to delete an inventory model from your Farsight® organisation.

Input Parameter

Type

Required

Definition

Id

integer

Yes

The ID of the inventory model

Did this answer your question?